/** * 加载模块列表缓存 */ private function _loadCacheModules() { $dalDir = defined('DAL_DIR') ? DAL_DIR : dirname(__FILE__); self::$cacheModulesListFile = $dalDir . '/modules.lst'; if (file_exists(self::$cacheModulesListFile)) { $this->cacheModules = unserialize(file_get_contents(self::$cacheModulesListFile)); } else { $this->cacheModules = array(); //throw new ZOL_Exception('Cache Modules List File "' . self::$cacheModulesListFile . '" does not exist!'); } }
public function __construct() { self::$moduleManager = ZOL_DAL_CacheModuleManager::getInstance(); }