|
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-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: GetConferenceStatusRequest.php 20166 2010-01-09 19:00:17Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * @see Zend_Service_DeveloperGarden_Request_RequestAbstract |
|
25 */ |
|
26 require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php'; |
|
27 |
|
28 /** |
|
29 * @category Zend |
|
30 * @package Zend_Service |
|
31 * @subpackage DeveloperGarden |
|
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
33 * @author Marco Kaiser |
|
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
35 */ |
|
36 class Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest |
|
37 extends Zend_Service_DeveloperGarden_Request_RequestAbstract |
|
38 { |
|
39 /** |
|
40 * the conference id |
|
41 * |
|
42 * @var string |
|
43 */ |
|
44 public $conferenceId = null; |
|
45 |
|
46 /** |
|
47 * what |
|
48 * |
|
49 * @var integer |
|
50 */ |
|
51 public $what = null; |
|
52 |
|
53 /** |
|
54 * possible what values |
|
55 * |
|
56 * @var array |
|
57 */ |
|
58 private $_whatValues = array( |
|
59 0 => 'all conferences', |
|
60 1 => 'just detail, acc and startTime', |
|
61 2 => 'just participants', |
|
62 3 => 'just schedule', |
|
63 ); |
|
64 |
|
65 /** |
|
66 * constructor |
|
67 * |
|
68 * @param integer $environment |
|
69 * @param string $conferenceId |
|
70 * @param integer $what |
|
71 */ |
|
72 public function __construct($environment, $conferenceId, $what) |
|
73 { |
|
74 parent::__construct($environment); |
|
75 $this->setConferenceId($conferenceId) |
|
76 ->setWhat($what); |
|
77 } |
|
78 |
|
79 /** |
|
80 * set the conference id |
|
81 * |
|
82 * @param string $conferenceId |
|
83 * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest |
|
84 */ |
|
85 public function setConferenceId($conferenceId) |
|
86 { |
|
87 $this->conferenceId = $conferenceId; |
|
88 return $this; |
|
89 } |
|
90 |
|
91 /** |
|
92 * sets $what |
|
93 * |
|
94 * @param integer $what |
|
95 * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest |
|
96 */ |
|
97 public function setWhat($what) |
|
98 { |
|
99 if (!array_key_exists($what, $this->_whatValues)) { |
|
100 require_once 'Zend/Service/DeveloperGarden/Request/Exception.php'; |
|
101 throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.'); |
|
102 } |
|
103 $this->what = $what; |
|
104 return $this; |
|
105 } |
|
106 } |