Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $this->_conn = Connection::getInstance();
     if (class_exists('MarkerHook', true)) {
         $this->_hook = new \MarkerHook();
     }
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     $this->IS_AUTH = true;
     $this->_conn = Connection::getInstance();
     $cfg = new Config();
     $this->filesettings = $cfg->getFileSettings();
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $this->_conn = Connection::getInstance();
     $this->_page = new Page();
     if (class_exists('ElementHook', true)) {
         $this->_hook = new \ElementHook();
     }
 }
Esempio n. 4
0
 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();
     }
 }
Esempio n. 5
0
 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);
         }
     }
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
     $this->_conn = Connection::getInstance();
 }