コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->before_create[] = 'created_at';
     $this->before_create[] = 'updated_at';
     $this->before_update[] = 'updated_at';
 }
コード例 #2
0
ファイル: Autologin.php プロジェクト: patilstar/HMVC-WITH-CI
 /**
  * Get the settings from config.
  */
 public function __construct()
 {
     parent::__construct();
     $this->before_create[] = 'created_at';
     $this->before_create[] = 'updated_at';
     $this->before_update[] = 'updated_at';
     $enabled = $this->config->item('autologin_enabled');
     $this->enabled = !empty($enabled) && !is_cli();
     $database_table_name = $this->config->item('autologin_database_table_name');
     if ($database_table_name != '') {
         $this->_table = $database_table_name;
     }
     $cookie_name = $this->config->item('autologin_cookie_name');
     if ($cookie_name != '') {
         $this->cookie_name = $cookie_name;
     }
     $expiration_time = (int) $this->config->item('autologin_expiration_time');
     if ($expiration_time > 0) {
         $this->expiration_time = $expiration_time;
     }
     $hash_algorithm = $this->config->item('autologin_hash_algorithm');
     if ($hash_algorithm != '') {
         $this->hash_algorithm = $hash_algorithm;
     }
     // Make sure that $this->encryption_key is not empty!
     // Set in your configuration the corresponding encryption keys!
     $this->encryption_key = $this->config->item('encryption_key_for_autologin');
     if ($this->encryption_key == '') {
         $this->encryption_key = $this->config->item('encryption_key');
     }
     $automatic_purge = $this->config->item('autologin_automatic_purge');
     $this->automatic_purge = !empty($automatic_purge);
 }
コード例 #3
0
ファイル: Users.php プロジェクト: patilstar/HMVC-WITH-CI
 public function __construct()
 {
     parent::__construct();
     $this->load->config('users');
     $this->load->helper('current_user');
     $this->user_id_getter = 'user_id_getter_for_models';
     $this->before_create[] = 'created_at';
     $this->before_create[] = 'created_by';
     $this->before_create[] = 'updated_at';
     $this->before_create[] = 'updated_by';
     $this->before_update[] = 'updated_at';
     $this->before_update[] = 'updated_by';
     $this->before_delete[] = 'deleted_at';
     $this->before_delete[] = 'deleted_by';
     $this->before_create[] = 'store_password';
     $this->before_update[] = 'store_password';
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->clear_cache();
 }
コード例 #5
0
ファイル: Subsidiary.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableSubsidiary = new Application_Model_DbTable_Subsidiary();
 }
コード例 #6
0
ファイル: Company.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableCompany = new Application_Model_DbTable_Company();
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #8
0
ファイル: Chain.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableChain = new Application_Model_DbTable_Chain();
 }
コード例 #9
0
ファイル: Genre.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableGenre = new Application_Model_DbTable_Genre();
 }
コード例 #10
0
ファイル: Billboard.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableBillboard = new Application_Model_DbTable_Billboard();
 }
コード例 #11
0
 public function __construct()
 {
     parent::__construct();
     if (empty($this->translations)) {
         // Autodetect fields containing translations.
         $this->translations = array_keys(array_except(array_flip($this->fields()), array($this->primary_key, $this->external_key_field, $this->lang_field)));
     }
 }
コード例 #12
0
ファイル: Ubigeo.php プロジェクト: josmel/HosPot
 public function __construct()
 {
     parent::__construct();
     $this->_tableUbigeo = new Application_Model_DbTable_Ubigeo();
 }
コード例 #13
0
 /**
  * Constructor.
  * Establishes connection to database.
  */
 public function __construct()
 {
     parent::__construct();
     $this->db = new Mysqli_Component();
 }