/** * PHP5 constructor * * @global object $objTemplate * @global array $_ARRAYLANG */ function __construct() { global $objTemplate, $_ARRAYLANG, $objInit; $this->objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/Cache/View/Template/Backend'); $langData = $objInit->loadLanguageData('Cache'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTpl); $this->objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->arrSettings = $this->getSettings(); $this->objSettings = new \Cx\Core\Config\Controller\Config(); $cx = \Cx\Core\Core\Controller\Cx::instanciate(); if (is_dir($cx->getWebsiteCachePath())) { if (is_writable($cx->getWebsiteCachePath())) { $this->strCachePath = $cx->getWebsiteCachePath() . '/'; } else { $objTemplate->SetVariable('CONTENT_STATUS_MESSAGE', $_ARRAYLANG['TXT_CACHE_ERR_NOTWRITABLE'] . $cx->getWebsiteCachePath()); } } else { $objTemplate->SetVariable('CONTENT_STATUS_MESSAGE', $_ARRAYLANG['TXT_CACHE_ERR_NOTEXIST'] . $cx->getWebsiteCachePath()); } parent::__construct(); }
/** * Constructor * * @global array $_CONFIG */ public function __construct() { parent::__construct(); $this->initContrexxCaching(); }