Exemplo n.º 1
0
 public static function call($event, array &$args = array())
 {
     $objects = Hooks::getObjects();
     $hooks = array();
     foreach ($objects as $module => $obj) {
         if (method_exists($obj, $event)) {
             $hooks[$module] = $obj;
         }
     }
     if ($event != 'ordering_hooks') {
         $infos = array(&$event, &$hooks);
         Hooks::call('ordering_hooks', $infos);
     }
     foreach ($hooks as $obj) {
         $obj->{$event}($args);
     }
 }