Ejemplo n.º 1
0
 /**
  * Get Webforms
  * @return array
  */
 public function getWebForms()
 {
     $response = parent::getWebForms();
     $webForms = array();
     // Loop through the webforms, and get the campaign data for this form
     foreach ($response as $webFormId => $form) {
         $formArray = array();
         $formArray['webform_id'] = $webFormId;
         $formArray['data'] = $form;
         $campaignId = $form->campaign;
         $campaignResponse = $this->getCampaignByID($campaignId);
         $formArray['campaign'] = array('campaign_id' => $campaignId, 'data' => $campaignResponse->{$campaignId});
         array_push($webForms, $formArray);
     }
     return $webForms;
 }