public function __construct() { parent::__construct(); $this->before_create[] = 'created_at'; $this->before_create[] = 'updated_at'; $this->before_update[] = 'updated_at'; }
/** * 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); }
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'; }
public function __construct() { parent::__construct(); $this->clear_cache(); }
public function __construct() { parent::__construct(); $this->_tableSubsidiary = new Application_Model_DbTable_Subsidiary(); }
public function __construct() { parent::__construct(); $this->_tableCompany = new Application_Model_DbTable_Company(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->_tableChain = new Application_Model_DbTable_Chain(); }
public function __construct() { parent::__construct(); $this->_tableGenre = new Application_Model_DbTable_Genre(); }
public function __construct() { parent::__construct(); $this->_tableBillboard = new Application_Model_DbTable_Billboard(); }
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))); } }
public function __construct() { parent::__construct(); $this->_tableUbigeo = new Application_Model_DbTable_Ubigeo(); }
/** * Constructor. * Establishes connection to database. */ public function __construct() { parent::__construct(); $this->db = new Mysqli_Component(); }