diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceListRequest.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceListRequest.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,104 @@ + 'all conferences', + 1 => 'just ad-hoc conferences', + 2 => 'just planned conferences', + 3 => 'just failed conferences', + ); + + /** + * unique owner id + * + * @var string + */ + public $ownerId = null; + + /** + * constructor + * + * @param integer $environment + * @param integer $what + * @param string $ownerId + */ + public function __construct($environment, $what = 0, $ownerId = null) + { + parent::__construct($environment); + $this->setWhat($what) + ->setOwnerId($ownerId); + } + + /** + * sets $what + * + * @param integer $what + * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest + */ + public function setWhat($what) + { + if (!array_key_exists($what, $this->_whatValues)) { + require_once 'Zend/Service/DeveloperGarden/Request/Exception.php'; + throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.'); + } + $this->what = $what; + return $this; + } + + /** + * sets $ownerId + * + * @param $ownerId + * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest + */ + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + return $this; + } +}