Example #1
0
 public function GetCampaignList()
 {
     // cache this bitch
     $campaignlist = $this->GetCachedVersion('GetCampaignList');
     if ($campaignlist) {
         return $campaignlist;
     }
     $soap_url = $this->GetClientWSDL();
     $parms = array();
     $parms[] = new SoapVar($this->userName, XSD_STRING, null, null, 'ns1:userName');
     $parms[] = new SoapVar($this->password, XSD_STRING, null, null, 'ns1:password');
     $soap = new SoapClient($soap_url, $this->GetSoapOptions());
     try {
         $call = $soap->GetCampaignList(new SoapVar($parms, SOAP_ENC_OBJECT));
         if (isset($call->GetCampaignListResult)) {
             $this->SetCachedVersion(__FUNCTION__, 1, 1, $call);
         }
         return $call->GetCampaignListResult;
     } catch (SoapFault $fault) {
         return false;
         //error
     }
 }