Beispiel #1
0
 /**
  * 
  * @return array;
  */
 public static function GetAllHandler()
 {
     $res = self::$handler;
     if ($res == null) {
         if (Cache::contains("eventmanager", "handler")) {
             $res = Cache::getData("eventmanager", "handler");
         } else {
             $rows = DataBase::Current()->ReadRows("SELECT * FROM {'dbprefix'}events");
             foreach ($rows as $handler) {
                 if (!isset($item[$handler->event])) {
                     $res[$handler->event] = array();
                 }
                 $res[$handler->event][] = $handler->file;
             }
             Cache::setData("eventmanager", "handler", $res);
             self::$handler = $res;
         }
     }
     return $res;
 }