EkomiRequestGetFeedback

Class GetFeedback.

Defined (1)

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

/includes/libraries/Ekomi/Request/GetFeedback.php  
  1. class GetFeedback extends AbstractRequest{ 
  2. private $filter = 'all'; 
  3. private $caching = 'none'; 
  4. private $range = 'all'; 
  5.  
  6. /** 
  7. * List of the fields in the response 
  8. * Additional fields 
  9. * shop_review_title, order_day, firstname, lastname, screenname, client_id 
  10. * @var string 
  11. */ 
  12. private $fields = 'date, order_id, rating, feedback, comment'; 
  13.  
  14. /** 
  15. * Exclude parameters from SOAP Call 
  16. * @var array 
  17. */ 
  18. protected $soapExcludeItems = array('version', 'type'); 
  19.  
  20. public function getName() { 
  21. return 'getFeedback'; 
  22.  
  23. public function getQuery($type='CURL') { 
  24. $query = array( 
  25. 'auth' => '',  
  26. 'version' => $this->getVersion(),  
  27. 'type' => $this->getType(),  
  28. 'filter' => $this->getFilter(),  
  29. 'range' => $this->getRange(),  
  30. 'caching' => $this->getCaching(),  
  31. 'fields' => $this->getFields(),  
  32. 'mode' => '',  
  33. 'charset' => $this->getCharset() 
  34. ); 
  35.  
  36. if($type==='SOAP') { 
  37. return $this->unsetItemsInArray($query); 
  38.  
  39. return $query; 
  40.  
  41. /** 
  42. * @return string 
  43. */ 
  44. public function getFilter() 
  45. return $this->filter; 
  46.  
  47. /** 
  48. * @param string $filter 
  49. */ 
  50. public function setFilter($filter) 
  51. $this->filter = $filter; 
  52.  
  53. /** 
  54. * @return string 
  55. */ 
  56. public function getCaching() 
  57. return $this->caching; 
  58.  
  59. /** 
  60. * @param string $caching 
  61. */ 
  62. public function setCaching($caching) 
  63. $this->caching = $caching; 
  64.  
  65. /** 
  66. * @return string 
  67. */ 
  68. public function getRange() 
  69. return $this->range; 
  70.  
  71. /** 
  72. * @param string $range 
  73. */ 
  74. public function setRange($range) 
  75. $this->range = $range; 
  76.  
  77. /** 
  78. * @return string 
  79. */ 
  80. public function getFields() 
  81. return $this->fields; 
  82.  
  83. /** 
  84. * @param string $fields 
  85. */ 
  86. public function setFields($fields) 
  87. $this->fields = $fields;