Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/DeveloperGarden/ConferenceCall/ParticipantDetail.php
Go to the documentation of this file.
00001 <?php
00025 require_once 'Zend/Validate/EmailAddress.php';
00026 
00035 class Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
00036 {
00040     public $firstName = null;
00041 
00045     public $lastName = null;
00046 
00050     public $number = null;
00051 
00055     public $email = null;
00056 
00060     public $flags = null;
00061 
00071     public function __construct($firstName, $lastName, $number, $email, $isInitiator = false)
00072     {
00073         $this->setFirstName($firstName)
00074              ->setLastName($lastName)
00075              ->setNumber($number)
00076              ->setEmail($email)
00077              ->setFlags((int) $isInitiator);
00078     }
00079 
00085     public function getFirstName()
00086     {
00087         return $this->firstName;
00088     }
00089 
00096     public function setFirstName($firstName)
00097     {
00098         $this->firstName = $firstName;
00099         return $this;
00100     }
00101 
00107     public function getLastName()
00108     {
00109         return $this->lastName;
00110     }
00111 
00118     public function setLastName($lastName)
00119     {
00120         $this->lastName = $lastName;
00121         return $this;
00122     }
00123 
00129     public function getNumber()
00130     {
00131         return $this->number;
00132     }
00133 
00140     public function setNumber($number)
00141     {
00142         $this->number = $number;
00143         return $this;
00144     }
00145 
00151     public function getEmail()
00152     {
00153         return $this->email;
00154     }
00155 
00162     public function setEmail($email)
00163     {
00164         $validator = new Zend_Validate_EmailAddress();
00165 
00166         if (!$validator->isValid($email)) {
00167             require_once 'Zend/Service/DeveloperGarden/Exception.php';
00168             throw new Zend_Service_DeveloperGarden_Exception('Not a valid e-mail address.');
00169         }
00170         $this->email = $email;
00171         return $this;
00172     }
00173 
00179     public function getFlags()
00180     {
00181         return $this->flags;
00182     }
00183 
00190     public function setFlags($flags)
00191     {
00192         $this->flags = $flags;
00193         return $this;
00194     }
00195 }
 All Data Structures Namespaces Files Functions Variables Enumerations