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