GetConferenceStatusRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Service
  17. * @subpackage DeveloperGarden
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Service_DeveloperGarden_Request_RequestAbstract
  24. */
  25. require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @author Marco Kaiser
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
  35. extends Zend_Service_DeveloperGarden_Request_RequestAbstract
  36. {
  37. /**
  38. * the conference id
  39. *
  40. * @var string
  41. */
  42. public $conferenceId = null;
  43. /**
  44. * what
  45. *
  46. * @var integer
  47. */
  48. public $what = null;
  49. /**
  50. * possible what values
  51. *
  52. * @var array
  53. */
  54. private $_whatValues = array(
  55. 0 => 'all conferences',
  56. 1 => 'just detail, acc and startTime',
  57. 2 => 'just participants',
  58. 3 => 'just schedule',
  59. );
  60. /**
  61. * constructor
  62. *
  63. * @param integer $environment
  64. * @param string $conferenceId
  65. * @param integer $what
  66. */
  67. public function __construct($environment, $conferenceId, $what)
  68. {
  69. parent::__construct($environment);
  70. $this->setConferenceId($conferenceId)
  71. ->setWhat($what);
  72. }
  73. /**
  74. * set the conference id
  75. *
  76. * @param string $conferenceId
  77. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
  78. */
  79. public function setConferenceId($conferenceId)
  80. {
  81. $this->conferenceId = $conferenceId;
  82. return $this;
  83. }
  84. /**
  85. * sets $what
  86. *
  87. * @param integer $what
  88. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
  89. */
  90. public function setWhat($what)
  91. {
  92. if (!array_key_exists($what, $this->_whatValues)) {
  93. require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
  94. throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.');
  95. }
  96. $this->what = $what;
  97. return $this;
  98. }
  99. }