コード例 #1
0
ファイル: Model.php プロジェクト: andelux/landingpages
 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();
     }
 }
コード例 #2
0
ファイル: Block.php プロジェクト: andelux/landingpages
 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));
     }
 }
コード例 #3
0
ファイル: Backend.php プロジェクト: andelux/landingpages
 public function __construct($config, $variables)
 {
     $this->_config = $config;
     parent::__construct($variables);
     $this->exec();
 }
コード例 #4
0
ファイル: Config.php プロジェクト: andelux/landingpages
 public function __construct($file)
 {
     parent::__construct();
     $this->loadIni($file);
 }
コード例 #5
0
ファイル: Request.php プロジェクト: andelux/landingpages
 public function __construct()
 {
     parent::__construct();
 }