Пример #1
0
 public function setOption($option, $value)
 {
     switch ($option) {
         case 'soapVersion':
             $this->SoapVersion = $value;
             return true;
         default:
             return parent::setOption($option, $value);
     }
 }
Пример #2
0
 public function setOption($option, $value)
 {
     switch ($option) {
         case 'nameVariable':
             $this->NameVar = $value;
             return true;
         case 'responseType':
             $this->ResponseType = $value;
             return true;
         case 'requestType':
             $this->RequestType = $value;
             return true;
         case 'accept':
             $this->Accept = $value;
             return true;
         case 'requestHeaders':
             $this->RequestHeaders = $value;
             return true;
         default:
             return parent::setOption($option, $value);
     }
 }
Пример #3
0
 public function setOption($option, $value)
 {
     if ($option == 'soapVersion') {
         $this->SoapVersion = $value;
     } else {
         if ($option == 'cacheWSDL') {
             $this->CacheWSDL = $value;
         } else {
             if ($option == 'returnArrays') {
                 $this->returnArrays = $value;
             } else {
                 return parent::setOption($option, $value);
             }
         }
     }
 }