|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php'; 00027 00036 class Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest 00037 extends Zend_Service_DeveloperGarden_Request_RequestAbstract 00038 { 00044 public $conferenceId = null; 00045 00051 public $what = null; 00052 00058 private $_whatValues = array( 00059 0 => 'all conferences', 00060 1 => 'just detail, acc and startTime', 00061 2 => 'just participants', 00062 3 => 'just schedule', 00063 ); 00064 00072 public function __construct($environment, $conferenceId, $what) 00073 { 00074 parent::__construct($environment); 00075 $this->setConferenceId($conferenceId) 00076 ->setWhat($what); 00077 } 00078 00085 public function setConferenceId($conferenceId) 00086 { 00087 $this->conferenceId = $conferenceId; 00088 return $this; 00089 } 00090 00097 public function setWhat($what) 00098 { 00099 if (!array_key_exists($what, $this->_whatValues)) { 00100 require_once 'Zend/Service/DeveloperGarden/Request/Exception.php'; 00101 throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.'); 00102 } 00103 $this->what = $what; 00104 return $this; 00105 } 00106 }