EkomiRequestGetProductFeedback

Class GetProductFeedback.

Defined (1)

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

/includes/libraries/Ekomi/Request/GetProductFeedback.php  
  1. class GetProductFeedback extends AbstractRequest{ 
  2. private $product = ''; 
  3. private $caching = 'none'; 
  4. private $range = 'all'; 
  5.  
  6. /** 
  7. * List of the fields in the response 
  8. * Additional fields 
  9. * product_review_title, order_day, firstname, lastname, screenname, client_id 
  10. * @var string 
  11. */ 
  12. private $fields = 'date, order_id, product_id, rating, feedback'; 
  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 'getProductfeedback'; 
  22.  
  23. public function getQuery($type='CURL') { 
  24. $query = array( 
  25. 'auth' => '',  
  26. 'version' => $this->getVersion(),  
  27. 'type' => $this->getType(),  
  28. 'product' => $this->getProduct(),  
  29. 'range' => $this->getRange(),  
  30. 'caching' => $this->getCaching(),  
  31. 'fields' => $this->getFields(),  
  32. 'charset' => $this->getCharset() 
  33. ); 
  34.  
  35. if($type==='SOAP') { 
  36. return $this->unsetItemsInArray($query); 
  37.  
  38. return $query; 
  39.  
  40. /** 
  41. * @return string 
  42. */ 
  43. public function getProduct() 
  44. return $this->product; 
  45.  
  46. /** 
  47. * @param string $product 
  48. * @return GetProductFeedback 
  49. */ 
  50. public function setProduct($product) 
  51. $this->product = $product; 
  52. return $this; 
  53.  
  54. /** 
  55. * @return string 
  56. */ 
  57. public function getCaching() 
  58. return $this->caching; 
  59.  
  60. /** 
  61. * @param string $caching 
  62. * @return GetProductFeedback 
  63. */ 
  64. public function setCaching($caching) 
  65. $this->caching = $caching; 
  66. return $this; 
  67.  
  68. /** 
  69. * @return string 
  70. */ 
  71. public function getRange() 
  72. return $this->range; 
  73.  
  74. /** 
  75. * @param string $range 
  76. * @return GetProductFeedback 
  77. */ 
  78. public function setRange($range) 
  79. $this->range = $range; 
  80. return $this; 
  81.  
  82. /** 
  83. * @return string 
  84. */ 
  85. public function getFields() 
  86. return $this->fields; 
  87.  
  88. /** 
  89. * @param string $fields 
  90. * @return GetProductFeedback 
  91. */ 
  92. public function setFields($fields) 
  93. $this->fields = $fields; 
  94. return $this; 
  95.