EkomiRequestGetAverage

Class GetAverage.

Defined (1)

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

/includes/libraries/Ekomi/Request/GetAverage.php  
  1. class GetAverage extends AbstractRequest{ 
  2. private $days = ''; 
  3. /** 
  4. * Exclude parameters from SOAP Call 
  5. */ 
  6. protected $soapExcludeItems = array('type'); 
  7.  
  8. public function getName() { 
  9. return 'getAverage'; 
  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. ); 
  23.  
  24. if($type==='SOAP') { 
  25. return $this->unsetItemsInArray($query); 
  26.  
  27. return $query; 
  28.  
  29. /** 
  30. * @return string 
  31. */ 
  32. public function getDays() 
  33. return $this->days; 
  34.  
  35. /** 
  36. * @param string $days 
  37. * @return GetAverage 
  38. */ 
  39. public function setDays($days) 
  40. $this->days = $days; 
  41. return $this;