/** * Check if proxy classes are already generated * * @return boolean */ protected function areProxiesExist() { return \Includes\Utils\FileManager::isDirReadable(LC_DIR_CACHE_PROXY); }
/** * Return list of module directories which contain templates * * @return array */ protected function getSkinDirs() { $result = array(); foreach (\XLite\Core\Layout::getInstance()->getSkinsAll() as $interface => $tmp) { $result = array_merge($result, \XLite\Core\Layout::getInstance()->getSkinPaths($interface)); } foreach ($result as $key => &$data) { $path = \Includes\Utils\ModulesManager::getRelativeDir($this->module->getAuthor(), $this->module->getName()); $path = $data['fs'] . LC_DS . 'modules' . LC_DS . $path; if (\Includes\Utils\FileManager::isDirReadable($path)) { $data = $path; } else { unset($result[$key]); } } return array_values(array_unique($result)); }
/** * Check if proxy classes are already generated * * @return boolean */ protected function areProxiesExist() { return \Includes\Utils\FileManager::isDirReadable(\Includes\Decorator\ADecorator::getCacheModelProxiesDir()); }