EkomiRequestGetMarketResearch

Class GetMarketResearch.

Defined (1)

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

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