|
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_GetConferenceListRequest 00037 extends Zend_Service_DeveloperGarden_Request_RequestAbstract 00038 { 00042 public $what = null; 00043 00049 private $_whatValues = array( 00050 0 => 'all conferences', 00051 1 => 'just ad-hoc conferences', 00052 2 => 'just planned conferences', 00053 3 => 'just failed conferences', 00054 ); 00055 00061 public $ownerId = null; 00062 00070 public function __construct($environment, $what = 0, $ownerId = null) 00071 { 00072 parent::__construct($environment); 00073 $this->setWhat($what) 00074 ->setOwnerId($ownerId); 00075 } 00076 00083 public function setWhat($what) 00084 { 00085 if (!array_key_exists($what, $this->_whatValues)) { 00086 require_once 'Zend/Service/DeveloperGarden/Request/Exception.php'; 00087 throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.'); 00088 } 00089 $this->what = $what; 00090 return $this; 00091 } 00092 00099 public function setOwnerId($ownerId) 00100 { 00101 $this->ownerId = $ownerId; 00102 return $this; 00103 } 00104 }