Elgg
Version 1.11
|
Public Member Functions | |
setLogger (\Elgg\Logger $logger=null) | |
Set a logger instance, e.g. More... | |
registerHandler ($name, $type, $callback, $priority=500) | |
Registers a handler. More... | |
unregisterHandler ($name, $type, $callback) | |
Unregister a handler. More... | |
getAllHandlers () | |
Returns all registered handlers as array( $name => array( $type => array( $priority => callback, ... More... | |
hasHandler ($name, $type) | |
Does the hook have a handler? More... | |
getOrderedHandlers ($name, $type) | |
Returns an ordered array of handlers registered for $name and $type. More... | |
Protected Attributes | |
$logger | |
Definition at line 15 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::getAllHandlers | ( | ) |
Returns all registered handlers as array( $name => array( $type => array( $priority => callback, ...
) )
private
Definition at line 103 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::getOrderedHandlers | ( | $name, | |
$type | |||
) |
Returns an ordered array of handlers registered for $name and $type.
string | $name | The name of the hook |
string | $type | The type of the hook |
private
Definition at line 128 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::hasHandler | ( | $name, | |
$type | |||
) |
Does the hook have a handler?
string | $name | The name of the hook |
string | $type | The type of the hook |
Definition at line 114 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::registerHandler | ( | $name, | |
$type, | |||
$callback, | |||
$priority = 500 |
|||
) |
Registers a handler.
private
Definition at line 43 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::setLogger | ( | \Elgg\Logger | $logger = null | ) |
Set a logger instance, e.g.
for reporting uncallable handlers
\Elgg\Logger | $logger | The logger |
Definition at line 30 of file HooksRegistrationService.php.
Elgg\HooksRegistrationService::unregisterHandler | ( | $name, | |
$type, | |||
$callback | |||
) |
Unregister a handler.
string | $name | |
string | $type | |
callable | $callback |
Definition at line 79 of file HooksRegistrationService.php.
|
protected |
Definition at line 22 of file HooksRegistrationService.php.