Beispiel #1
0
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->db = Database::db();
     $this->_collection_filters = array();
     $this->_order_by = null;
     if (!isset(self::$_create_flags[__CLASS__]) || !self::$_create_flags[__CLASS__]++) {
         $this->_create();
     }
 }
Beispiel #2
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->_template = $this->getData('template');
     $this->_cache = $this->getData('cache', false);
     if ($this->isCacheEnabled()) {
         $this->_hash = array($this->_template);
         foreach (explode(',', $this->getData('hash', '')) as $hash_code) {
             switch (trim($hash_code)) {
                 case 'host':
                     $this->_hash[] = $_SERVER['SERVER_NAME'];
                     break;
                 case 'locale':
                     $this->_hash[] = LP_LOCALE;
                     break;
             }
         }
         $this->_hash = md5(implode('|', $this->_hash));
     }
 }
Beispiel #3
0
 public function __construct($config, $variables)
 {
     $this->_config = $config;
     parent::__construct($variables);
     $this->exec();
 }
Beispiel #4
0
 public function __construct($file)
 {
     parent::__construct();
     $this->loadIni($file);
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct();
 }