* on results of handlers.
*/
- public static function handle($name, $args=array()) {
+ public static function handle($name, array $args=array()) {
$result = null;
if (array_key_exists($name, Event::$_handlers)) {
foreach (Event::$_handlers[$name] as $handler) {
return false;
}
+ public static function getHandlers($name)
+ {
+ return Event::$_handlers[$name];
+ }
+
/**
* Disables any and all handlers that have been set up so far;
* use only if you know it's safe to reinitialize all plugins.