[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
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 [email protected] 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$ 21 */ 22 23 /** 24 * @category Zend 25 * @package Zend_Service 26 * @subpackage DeveloperGarden 27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 28 * @author Marco Kaiser 29 * @license http://framework.zend.com/license/new-bsd New BSD License 30 */ 31 class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 32 { 33 /** 34 * @var integer 35 */ 36 public $minute = null; 37 38 /** 39 * @var integer 40 */ 41 public $hour = null; 42 43 /** 44 * @var integer 45 */ 46 public $dayOfMonth = null; 47 48 /** 49 * @var integer 50 */ 51 public $month = null; 52 53 /** 54 * @var integer 55 */ 56 public $year = null; 57 58 /** 59 * @var integer 60 */ 61 public $recurring = 0; 62 63 /** 64 * @var integer 65 */ 66 public $notify = 0; 67 68 /** 69 * possible recurring values 70 * 71 * @var array 72 */ 73 private $_recurringValues = array( 74 0 => 'no recurring', 75 1 => 'hourly', 76 2 => 'daily', 77 3 => 'weekly', 78 4 => 'monthly', 79 ); 80 81 /** 82 * constructor for schedule object, all times are in UTC 83 * 84 * @param integer $minute 85 * @param integer $hour 86 * @param integer $dayOfMonth 87 * @param integer $month 88 * @param integer $year 89 * @param integer $recurring 90 * @param integer $notify 91 */ 92 public function __construct($minute, $hour, $dayOfMonth, $month, $year, $recurring = 0, $notify = 0) 93 { 94 $this->setMinute($minute) 95 ->setHour($hour) 96 ->setDayOfMonth($dayOfMonth) 97 ->setMonth($month) 98 ->setYear($year) 99 ->setRecurring($recurring) 100 ->setNotify($notify); 101 } 102 103 /** 104 * returns the value of $minute 105 * 106 * @return integer 107 */ 108 public function getMinute() 109 { 110 return $this->minute; 111 } 112 113 /** 114 * sets $minute 115 * 116 * @param integer $minute 117 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 118 */ 119 public function setMinute($minute) 120 { 121 $this->minute = $minute; 122 return $this; 123 } 124 125 /** 126 * returns the value of $hour 127 * 128 * @return integer 129 */ 130 public function getHour() 131 { 132 return $this->hour; 133 } 134 135 /** 136 * sets $hour 137 * 138 * @param integer $hour 139 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 140 */ 141 public function setHour($hour) 142 { 143 $this->hour = $hour; 144 return $this; 145 } 146 147 /** 148 * returns the value of $dayOfMonth 149 * 150 * @return integer 151 */ 152 public function getDayOfMonth() 153 { 154 return $this->dayOfMonth; 155 } 156 157 /** 158 * sets $dayOfMonth 159 * 160 * @param integer $dayOfMonth 161 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 162 */ 163 public function setDayOfMonth($dayOfMonth) 164 { 165 $this->dayOfMonth = $dayOfMonth; 166 return $this; 167 } 168 169 /** 170 * returns the value of $month 171 * 172 * @return integer 173 */ 174 public function getMonth() 175 { 176 return $this->month; 177 } 178 179 /** 180 * sets $month 181 * 182 * @param integer $month 183 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 184 */ 185 public function setMonth($month) 186 { 187 $this->month = $month; 188 return $this; 189 } 190 191 /** 192 * returns the value of $year 193 * 194 * @return integer 195 */ 196 public function getYear() 197 { 198 return $this->year; 199 } 200 201 /** 202 * sets $year 203 * 204 * @param integer $year 205 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 206 */ 207 public function setYear($year) 208 { 209 $this->year = $year; 210 return $this; 211 } 212 213 /** 214 * returns the value of $recurring 215 * 216 * @return integer 217 */ 218 public function getRecurring() 219 { 220 return $this->recurring; 221 } 222 223 /** 224 * sets $recurring 225 * 226 * @param integer $recurring 227 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 228 */ 229 public function setRecurring($recurring) 230 { 231 if (!array_key_exists($recurring, $this->_recurringValues)) { 232 require_once 'Zend/Service/DeveloperGarden/ConferenceCall/Exception.php'; 233 throw new Zend_Service_DeveloperGarden_ConferenceCall_Exception( 234 'Unknown ConferenceCall recurring mode.' 235 ); 236 } 237 $this->recurring = $recurring; 238 return $this; 239 } 240 241 /** 242 * returns the value of $notify 243 * 244 * @return integer 245 */ 246 public function getNotify() 247 { 248 return $this->notify; 249 } 250 251 /** 252 * sets $notify 253 * 254 * @param integer $notify 255 * @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule 256 */ 257 public function setNotify($notify) 258 { 259 $this->notify = $notify; 260 return $this; 261 } 262 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |