X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fevent.php;h=e6bb41091e1d6f9f104c0b5f50adfb94b1c0092c;hb=0463d96392abd1976486c1ae53ece8466e930e29;hp=41fb53ffe9afe91312c3d2fa4799bede44ea6091;hpb=ec145b73fc91dd54695dd374c8a71a11e233b8c0;p=quix0rs-gnu-social.git diff --git a/lib/event.php b/lib/event.php index 41fb53ffe9..e6bb41091e 100644 --- a/lib/event.php +++ b/lib/event.php @@ -98,7 +98,7 @@ class Event { * 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) { @@ -139,6 +139,11 @@ class Event { 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.