/** * Load data from DB. */ public static function _loadDB() { self::$actions = array(); self::$enabled = array(); $mdl = new Modele('mod_list'); $mdl->find(); while ($mdl->next()) { self::$actions[$mdl->mod_action] = $mdl->mod_dir; if (!in_array($mdl->mod_dir, self::$enabled)) { self::$enabled[] = $mdl->mod_dir; } } }