EkomiRequestGetRated

Class GetRated.

Defined (1)

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

/includes/libraries/Ekomi/Request/GetRated.php  
  1. class GetRated extends AbstractRequest{ 
  2. private $days = 25; 
  3. /** 
  4. * Exclude parameters from SOAP Call 
  5. */ 
  6. protected $soapExcludeItems = array('type'); 
  7.  
  8. public function getName() { 
  9. return 'getRated'; 
  10.  
  11. /** 
  12. * Get API Query 
  13. * @param string $type 
  14. * @return array 
  15. */ 
  16. public function getQuery($type='CURL') { 
  17. $query = array( 
  18. 'auth' => '',  
  19. 'version' => $this->getVersion(),  
  20. 'type' => $this->getType(),  
  21. 'days' => $this->getDays(),  
  22. 'charset' => $this->getCharset(),  
  23. ); 
  24.  
  25. if($type==='SOAP') { 
  26. return $this->unsetItemsInArray($query); 
  27.  
  28. return $query; 
  29.  
  30. /** 
  31. * @return int 
  32. */ 
  33. public function getDays() 
  34. return $this->days; 
  35.  
  36. /** 
  37. * @param int $days 
  38. * @return GetRated 
  39. */ 
  40. public function setDays($days) 
  41. $this->days = $days; 
  42. return $this; 
  43.  
  44.