Method |
Description |
|
callFunction ( string $func, array &$params = [] ) : mixed |
Calls a function. |
|
clear ( string $name = null ) |
Clears an event. If no name is given,
all events are removed. |
|
execute ( callback $callback, array &$params = [] ) : mixed |
Executes a callback function. |
|
filter ( array $filters, array &$params, mixed &$output ) |
Executes a chain of method filters. |
|
get ( string $name ) : callback |
Gets an assigned callback. |
|
has ( string $name ) : boolean |
Checks if an event has been set. |
|
hook ( string $name, string $type, callback $callback ) |
Hooks a callback to an event. |
|
invokeMethod ( mixed $func, array &$params = [] ) : mixed |
Invokes a method. |
|
reset ( ) |
Resets the object to the initial state. |
|
run ( string $name, array $params = [] ) : string |
Dispatches an event. |
|
set ( string $name, callback $callback ) |
Assigns a callback to an event. |
|