EkomiRequestGetProduct

Class GetProduct.

Defined (1)

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

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