Esempio n. 1
0
 function __construct($config)
 {
     if (!$config["USERID"] || !$config["PASSWORD"] || !$config["ENDPOINTID"]) {
         die("Traction Credential is Missing!");
     } else {
         self::$CONFIG = $config;
     }
 }
Esempio n. 2
0
 function __construct($config = null)
 {
     $this->CI =& get_instance();
     $this->CI->load->model('setting_m');
     $traction = array('USERID' => $this->CI->setting_m->get('TRAC_USERID'), 'PASSWORD' => $this->CI->setting_m->get('TRAC_PASSWORD'), 'ENDPOINTID' => $this->CI->setting_m->get('TRAC_ENDPOINTID'));
     $config = $config ? $config : $traction;
     if (!$config["USERID"] || !$config["PASSWORD"] || !$config["ENDPOINTID"]) {
         die("Traction Credential is Missing!");
     } else {
         self::$CONFIG = $config;
     }
 }