예제 #1
0
 function __construct($config)
 {
     if (!$config["USERID"] || !$config["PASSWORD"] || !$config["ENDPOINTID"]) {
         die("Traction Credential is Missing!");
     } else {
         self::$CONFIG = $config;
     }
 }
예제 #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;
     }
 }