public function __construct($config = array()) { parent::__construct(); foreach ($config as $item => $value) { $this->{$item} = $value; } }
public function __construct($config = array()) { parent::__construct(); $this->config = $config; $this->config['driver'] = 'recaptcha'; loader::library('captcha', $this->config); }
public function __construct($config = array()) { parent::__construct(); if (!empty($config['public_key']) && !empty($config['private_key'])) { $this->_public_key = $config['public_key']; $this->_private_key = $config['private_key']; } }
public function __construct() { parent::__construct(); $this->load->dao('configuracoes/modulosDao'); $this->load->model('configuracoes/modulos/modulosModel'); $this->load->model('configuracoes/modulos/paginasModel'); $this->load->model('configuracoes/modulos/actionsModel'); $this->load->model('configuracoes/modulos/niveisAcessoModel'); $this->load->model('configuracoes/modulos/permissoesAcessoModel'); if (isset($_SESSION['user'])) { $this->_usuario = unserialize($_SESSION['user']); } }
public function __construct($config) { parent::__construct(); $this->_itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; $this->_salt = $config['salt']; $iteration_count_log2 = $config['iteration_count_log2']; if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31) { $iteration_count_log2 = 8; } $this->_iteration_count_log2 = $iteration_count_log2; $this->_portable_hashes = $config['portable_hashes']; $this->_random_state = microtime(); if (function_exists('getmypid')) { $this->_random_state .= getmypid(); } }
public function __construct() { parent::__construct(); }
public function __construct($config = array()) { parent::__construct(); $this->config = $config; }
public function __construct() { parent::__construct(); $this->_from = '"' . $this->config->nf_name . '" <' . $this->config->nf_contact . '>'; }
/** * Object constructor. * * @param array $config * * @throws Exception\RequiresMemoryGetUsage */ public function __construct($config = []) { // Merge the received config with the defaults $this->config = array_merge($config, $this->config); parent::__construct($config); }