Ejemplo n.º 1
0
 public function toNVPString($prefix = '')
 {
     $str = parent::toNVPString($prefix);
     if (strlen($str) > 0) {
         $delim = '&';
     } else {
         $delim = '';
     }
     if ($this->useCredentials != null) {
         $str .= $delim . $prefix . 'useCredentials=' . urlencode($this->useCredentials);
         $delim = '&';
     }
     if ($this->taxIdDetails != null) {
         $newPrefix = $prefix . 'taxIdDetails.';
         $str .= $delim . call_user_func(array($this->taxIdDetails, 'toNVPString'), $newPrefix);
         $delim = '&';
     }
     return $str;
 }
Ejemplo n.º 2
0
 public function toNVPString($prefix = '')
 {
     $str = '';
     $delim = '';
     parent::toNVPString($prefix = '');
     if ($this->useCredentials != null) {
         $str .= $delim . $prefix . 'useCredentials=' . urlencode($this->useCredentials);
         $delim = '&';
     }
     return $str;
 }