Esempio n. 1
0
 public function __construct($config = array())
 {
     parent::__construct();
     foreach ($config as $item => $value) {
         $this->{$item} = $value;
     }
 }
Esempio n. 2
0
 public function __construct($config = array())
 {
     parent::__construct();
     $this->config = $config;
     $this->config['driver'] = 'recaptcha';
     loader::library('captcha', $this->config);
 }
Esempio n. 3
0
 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'];
     }
 }
Esempio n. 4
0
 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']);
     }
 }
Esempio n. 5
0
 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();
     }
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 7
0
 public function __construct($config = array())
 {
     parent::__construct();
     $this->config = $config;
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->_from = '"' . $this->config->nf_name . '" <' . $this->config->nf_contact . '>';
 }
Esempio n. 9
0
 /**
  * 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);
 }