function __construct() { parent::__construct(); $this->_conn = Connection::getInstance(); if (class_exists('MarkerHook', true)) { $this->_hook = new \MarkerHook(); } }
function __construct() { parent::__construct(); $this->IS_AUTH = true; $this->_conn = Connection::getInstance(); $cfg = new Config(); $this->filesettings = $cfg->getFileSettings(); }
function __construct() { parent::__construct(); $this->_conn = Connection::getInstance(); $this->_page = new Page(); if (class_exists('ElementHook', true)) { $this->_hook = new \ElementHook(); } }
function __construct($forceCache = false) { parent::__construct(); $this->_forceCache = $forceCache; if (CACHE_MODE == Constants::CACHE_MODE_APC) { $this->cache = new APCCache(); } else { $this->cache = new FileCache(); } }
function __construct($forceCache = false) { parent::__construct(); $this->_forceCache = $forceCache; if (!is_dir(BASEPATH . 'bright/cache')) { if (!@mkdir(BASEPATH . 'bright/cache', 0777, true)) { throw new FilesException("Cannot create cache directory (bright/cache/)", FilesException::FOLDER_CREATE_FAILED); } } if (!file_exists(BASEPATH . 'bright/cache/.htaccess')) { if (!@file_put_contents(BASEPATH . 'bright/cache/.htaccess', 'deny from all')) { throw new FilesException("Cache directory is not writable", FilesException::FILE_NOT_WRITABLE); } } }
function __construct() { parent::__construct(); $this->_conn = Connection::getInstance(); }