__construct() публичный Метод

Hybrid_Auth constructor will require either a valid config array or a path for a configuration file as parameter. To know more please refer to the Configuration section: http://hybridauth.sourceforge.net/userguide/Configuration.html
public __construct ( array $config )
$config array Configuration array or path to a configratuion file
Пример #1
0
 function __construct($config = array())
 {
     $ci =& get_instance();
     $ci->load->helper('url_helper');
     $config['base_url'] = site_url((config_item('index_page') == '' ? SELF : '') . $config['base_url']);
     parent::__construct($config);
     log_message('debug', 'HybridAuthLib Class Initalized');
 }
Пример #2
0
 function __construct($config = array())
 {
     $ci =& get_instance();
     $ci->load->helper('url_helper');
     $config = config_item('oauth_config');
     parent::__construct($config);
     // log_message('debug', 'HybridAuthLib Class Initalized');
 }
 function __construct($config = array())
 {
     $this->ci =& get_instance();
     $this->ci->load->helper('url_helper');
     $this->ci->load->model('users/user_model');
     $loc_config = module_config('users');
     $config = $this->ci->user_model->get_config();
     //TODO:introduce debug mode
     //        $config['debug_mode'] = $loc_config['debug_mode'];
     //        $config['debug_file'] = $loc_config['debug_file'];
     $config['base_url'] = site_url() . $loc_config['base_url'];
     parent::__construct($config);
     log_message('debug', 'HybridAuthLib Class Initalized');
 }