EkomiRequestGetDialog

Class GetDialog.

Defined (1)

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

/includes/libraries/Ekomi/Request/GetDialog.php  
  1. class GetDialog extends AbstractRequest{ 
  2. private $content; 
  3. private $range; 
  4. private $filter; 
  5. private $caching = 'none'; 
  6.  
  7. /** 
  8. * Exclude parameters from SOAP Call 
  9. */ 
  10. protected $soapExcludeItems = array('type'); 
  11.  
  12. public function getName() { 
  13. return 'getDialog'; 
  14.  
  15. /** 
  16. * Get API Query 
  17. * @param string $type 
  18. * @return array 
  19. */ 
  20. public function getQuery($type='CURL') { 
  21. $query = array( 
  22. 'auth' => '',  
  23. 'version' => $this->getVersion(),  
  24. 'type' => $this->getType(),  
  25. 'content' => $this->getContent(),  
  26. 'range' => $this->getRange(),  
  27. 'filter' => $this->getFilter(),  
  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 getContent() 
  41. return $this->content; 
  42.  
  43. /** 
  44. * @param mixed $content 
  45. * @return GetDialog 
  46. */ 
  47. public function setContent($content) 
  48. $this->content = $content; 
  49. return $this; 
  50.  
  51. /** 
  52. * @return mixed 
  53. */ 
  54. public function getRange() 
  55. return $this->range; 
  56.  
  57. /** 
  58. * @param mixed $range 
  59. * @return GetDialog 
  60. */ 
  61. public function setRange($range) 
  62. $this->range = $range; 
  63. return $this; 
  64.  
  65. /** 
  66. * @return mixed 
  67. */ 
  68. public function getFilter() 
  69. return $this->filter; 
  70.  
  71. /** 
  72. * @param mixed $filter 
  73. * @return GetDialog 
  74. */ 
  75. public function setFilter($filter) 
  76. $this->filter = $filter; 
  77. return $this; 
  78.  
  79. /** 
  80. * @return string 
  81. */ 
  82. public function getCaching() 
  83. return $this->caching; 
  84.  
  85. /** 
  86. * @param string $caching 
  87. * @return GetDialog 
  88. */ 
  89. public function setCaching($caching) 
  90. $this->caching = $caching; 
  91. return $this; 
  92.  
  93.