Handles adding and dispatching events
package | Requests |
---|---|
subpackage | Utilities |
__construct()
dispatch(string $hook, array $parameters = array()
) : boolean
inherited_from | \Requests_Hooker::dispatch() |
---|
string
Hook name
array
Parameters to pass to callbacks
boolean
Successfulnessregister(string $hook, callback $callback, integer $priority = 0
)
inherited_from | \Requests_Hooker::register() |
---|
string
Hook name
callback
Function/method to call on event
integer
Priority number. <0 is executed earlier, >0 is executed later
$hooks : array
array()