Elgg
Version 1.9
|
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... | |
Protected Member Functions | |
getOrderedHandlers ($name, $type) | |
Returns an ordered array of handlers registered for $name and $type. More... | |
describeCallable ($callable) | |
Get a string description of a callback. More... | |
Protected Attributes | |
$logger | |
Definition at line 14 of file HooksRegistrationService.php.
|
protected |
Get a string description of a callback.
E.g. "function_name", "Static::method", "(ClassName)->method", "(Closure path/to/file.php:23)"
mixed | $callable | The callable value to describe |
Definition at line 158 of file HooksRegistrationService.php.
Elgg_HooksRegistrationService::getAllHandlers | ( | ) |
Returns all registered handlers as array( $name => array( $type => array( $priority => callback, ...
) )
private
Definition at line 102 of file HooksRegistrationService.php.
|
protected |
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 |
Definition at line 125 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 113 of file HooksRegistrationService.php.
Elgg_HooksRegistrationService::registerHandler | ( | $name, | |
$type, | |||
$callback, | |||
$priority = 500 |
|||
) |
Registers a handler.
private
Definition at line 42 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 29 of file HooksRegistrationService.php.
Elgg_HooksRegistrationService::unregisterHandler | ( | $name, | |
$type, | |||
$callback | |||
) |
Unregister a handler.
string | $name | |
string | $type | |
callable | $callback |
Definition at line 78 of file HooksRegistrationService.php.
|
protected |
Definition at line 21 of file HooksRegistrationService.php.