EkomiRequestGetResearch

Class GetResearch.

Defined (1)

The class is defined in the following location(s).

/includes/libraries/Ekomi/Request/GetResearch.php  
  1. class GetResearch extends AbstractRequest{ 
  2. private $content; 
  3. private $range; 
  4. private $campaignId; 
  5.  
  6. /** 
  7. * Exclude parameters from SOAP Call 
  8. */ 
  9. protected $soapExcludeItems = array('version', 'type'); 
  10.  
  11. public function getName() { 
  12. return 'getResearch'; 
  13.  
  14. /** 
  15. * Get API Query 
  16. * @param string $type 
  17. * @return array 
  18. */ 
  19. public function getQuery($type='CURL') { 
  20.  
  21. $query = array( 
  22. 'auth' => '',  
  23. 'version' => $this->getVersion(),  
  24. 'type' => $this->getType(),  
  25. 'content' => $this->getContent(),  
  26. 'range' => $this->getRange(),  
  27. 'campaign_id' => $this->getCampaignId(),  
  28. 'charset' => $this->getCharset(),  
  29. ); 
  30.  
  31. if($type==='SOAP') { 
  32. return $this->unsetItemsInArray($query); 
  33.  
  34. return $query; 
  35.  
  36. /** 
  37. * @return mixed 
  38. */ 
  39. public function getContent() 
  40. return $this->content; 
  41.  
  42. /** 
  43. * @param mixed $content 
  44. * @return GetResearch 
  45. */ 
  46. public function setContent($content) 
  47. $this->content = $content; 
  48. return $this; 
  49.  
  50. /** 
  51. * @return mixed 
  52. */ 
  53. public function getRange() 
  54. return $this->range; 
  55.  
  56. /** 
  57. * @param mixed $range 
  58. * @return GetResearch 
  59. */ 
  60. public function setRange($range) 
  61. $this->range = $range; 
  62. return $this; 
  63.  
  64. /** 
  65. * @return mixed 
  66. */ 
  67. public function getCampaignId() 
  68. return $this->campaignId; 
  69.  
  70. /** 
  71. * @param mixed $campaignId 
  72. * @return GetResearch 
  73. */ 
  74. public function setCampaignId($campaignId) 
  75. $this->campaignId = $campaignId; 
  76. return $this; 
  77.