Метод |
Описание |
|
backup ( ) : void |
Temporarily remove all event/hook registrations (before tests) |
|
clearHandlers ( string $name, string $type ) : void |
Clears all handlers for a specific hook |
|
getAllHandlers ( ) : array |
Returns all registered handlers as array(
$name => array(
$type => array(
$priority => array(
callback,
callback,
)
)
) |
|
getOrderedHandlers ( string $name, string $type ) : callable[] |
Returns an ordered array of handlers registered for $name and $type. |
|
hasHandler ( string $name, string $type ) : boolean |
Is a handler registered for this specific name and type? "all" handlers are not considered. |
|
registerHandler ( $name, $type, $callback, $priority = 500 ) |
Registers a handler. |
|
restore ( ) : void |
Restore backed up event/hook registrations (after tests) |
|
setLogger ( Logger $logger = null ) : self |
Set a logger instance, e.g. for reporting uncallable handlers |
|
unregisterHandler ( string $name, string $type, callable $callback ) : boolean |
Unregister a handler |
|