コード例 #1
0
ファイル: soap.php プロジェクト: indigophp/erp-stock-extra
 protected function request($url, array $options = array())
 {
     $options['driver'] = 'soap';
     $options['trace'] = true;
     $options['features'] = SOAP_SINGLE_ELEMENT_ARRAYS;
     return parent::request($url, $options);
 }
コード例 #2
0
ファイル: curl.php プロジェクト: indigophp/erp-stock-extra
 protected function request($url, array $options = array())
 {
     $options['driver'] = 'curl';
     $return = parent::request($url, $options);
     $user_field = empty($this->model->user_field) ? 'user' : $this->model->user_field;
     $pass_field = empty($this->model->pass_field) ? 'pass' : $this->model->pass_field;
     $this->request->add_param(array($user_field => $this->model->user, $pass_field => $this->model->pass));
     return $return;
 }