6 * @subpackage Utilities
13 * @subpackage Utilities
15 interface Requests_Hooker {
17 * Register a callback for a hook
19 * @param string $hook Hook name
20 * @param callback $callback Function/method to call on event
21 * @param int $priority Priority number. <0 is executed earlier, >0 is executed later
23 public function register($hook, $callback, $priority = 0);
28 * @param string $hook Hook name
29 * @param array $parameters Parameters to pass to callbacks
30 * @return boolean Successfulness
32 public function dispatch($hook, $parameters = array());