CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceAccount.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount
|
||||
{
|
||||
/**
|
||||
* type of billing
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $billingtype = null;
|
||||
|
||||
/**
|
||||
* account id
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBillingType()
|
||||
{
|
||||
return $this->billingtype;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,129 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
{
|
||||
/**
|
||||
* name of this conference
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = null;
|
||||
|
||||
/**
|
||||
* description of this conference
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $description = null;
|
||||
|
||||
/**
|
||||
* duration in seconds of this conference
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $duration = null;
|
||||
|
||||
/**
|
||||
* create object
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $description
|
||||
* @param integer $duration
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function __construct($name, $description, $duration)
|
||||
{
|
||||
$this->setName($name);
|
||||
$this->setDescription($description);
|
||||
$this->setDuration($duration);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new duration for this conference in seconds
|
||||
*
|
||||
* @param integer $duration
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setDuration($duration)
|
||||
{
|
||||
$this->duration = $duration;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDuration()
|
||||
{
|
||||
return $this->duration;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the description of this conference
|
||||
*
|
||||
* @param $description the $description to set
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the name of this conference
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,262 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceSchedule.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $minute = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $hour = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $dayOfMonth = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $month = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $year = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $recurring = 0;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $notify = 0;
|
||||
|
||||
/**
|
||||
* possible recurring values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_recurringValues = array(
|
||||
0 => 'no recurring',
|
||||
1 => 'hourly',
|
||||
2 => 'daily',
|
||||
3 => 'weekly',
|
||||
4 => 'monthly',
|
||||
);
|
||||
|
||||
/**
|
||||
* constructor for schedule object, all times are in UTC
|
||||
*
|
||||
* @param integer $minute
|
||||
* @param integer $hour
|
||||
* @param integer $dayOfMonth
|
||||
* @param integer $month
|
||||
* @param integer $year
|
||||
* @param integer $recurring
|
||||
* @param integer $notify
|
||||
*/
|
||||
public function __construct($minute, $hour, $dayOfMonth, $month, $year, $recurring = 0, $notify = 0)
|
||||
{
|
||||
$this->setMinute($minute)
|
||||
->setHour($hour)
|
||||
->setDayOfMonth($dayOfMonth)
|
||||
->setMonth($month)
|
||||
->setYear($year)
|
||||
->setRecurring($recurring)
|
||||
->setNotify($notify);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $minute
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMinute()
|
||||
{
|
||||
return $this->minute;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $minute
|
||||
*
|
||||
* @param integer $minute
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setMinute($minute)
|
||||
{
|
||||
$this->minute = $minute;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $hour
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getHour()
|
||||
{
|
||||
return $this->hour;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $hour
|
||||
*
|
||||
* @param integer $hour
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setHour($hour)
|
||||
{
|
||||
$this->hour = $hour;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $dayOfMonth
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getDayOfMonth()
|
||||
{
|
||||
return $this->dayOfMonth;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $dayOfMonth
|
||||
*
|
||||
* @param integer $dayOfMonth
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setDayOfMonth($dayOfMonth)
|
||||
{
|
||||
$this->dayOfMonth = $dayOfMonth;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $month
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $month
|
||||
*
|
||||
* @param integer $month
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setMonth($month)
|
||||
{
|
||||
$this->month = $month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $year
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getYear()
|
||||
{
|
||||
return $this->year;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $year
|
||||
*
|
||||
* @param integer $year
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setYear($year)
|
||||
{
|
||||
$this->year = $year;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $recurring
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRecurring()
|
||||
{
|
||||
return $this->recurring;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $recurring
|
||||
*
|
||||
* @param integer $recurring
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setRecurring($recurring)
|
||||
{
|
||||
if (!array_key_exists($recurring, $this->_recurringValues)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_ConferenceCall_Exception(
|
||||
'Unknown ConferenceCall recurring mode.'
|
||||
);
|
||||
}
|
||||
$this->recurring = $recurring;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $notify
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getNotify()
|
||||
{
|
||||
return $this->notify;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $notify
|
||||
*
|
||||
* @param integer $notify
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setNotify($notify)
|
||||
{
|
||||
$this->notify = $notify;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_Exception extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Participant.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Validate_Ip
|
||||
*/
|
||||
require_once 'Zend/Validate/Ip.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
{
|
||||
/**
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $status = null;
|
||||
|
||||
/**
|
||||
* participant details
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getDetail()
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* participant id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParticipantId()
|
||||
{
|
||||
return $this->participantId;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the status
|
||||
* returns an
|
||||
* array of Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,195 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ParticipantDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
/**
|
||||
* @see Zend_Validate_EmailAddress
|
||||
*/
|
||||
require_once 'Zend/Validate/EmailAddress.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $firstName = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastName = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $number = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $email = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $flags = null;
|
||||
|
||||
/**
|
||||
* constructor for participant object
|
||||
*
|
||||
* @param string $firstName
|
||||
* @param string $lastName
|
||||
* @param string $number
|
||||
* @param string $email
|
||||
* @param integer $isInitiator
|
||||
*/
|
||||
public function __construct($firstName, $lastName, $number, $email, $isInitiator = false)
|
||||
{
|
||||
$this->setFirstName($firstName)
|
||||
->setLastName($lastName)
|
||||
->setNumber($number)
|
||||
->setEmail($email)
|
||||
->setFlags((int) $isInitiator);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $firstName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFirstName()
|
||||
{
|
||||
return $this->firstName;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $firstName
|
||||
*
|
||||
* @param string $firstName
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setFirstName($firstName)
|
||||
{
|
||||
$this->firstName = $firstName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $lastName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLastName()
|
||||
{
|
||||
return $this->lastName;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $lastName
|
||||
*
|
||||
* @param string $lastName
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setLastName($lastName)
|
||||
{
|
||||
$this->lastName = $lastName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $number
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $number
|
||||
*
|
||||
* @param string $number
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $email
|
||||
*
|
||||
* @param string email
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$validator = new Zend_Validate_EmailAddress();
|
||||
|
||||
if (!$validator->isValid($email)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('Not a valid e-mail address.');
|
||||
}
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $flags
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getFlags()
|
||||
{
|
||||
return $this->flags;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $flags (ie, initiator flag)
|
||||
*
|
||||
* @param integer $flags
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setFlags($flags)
|
||||
{
|
||||
$this->flags = $flags;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ParticipantStatus.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Validate_Ip
|
||||
*/
|
||||
require_once 'Zend/Validate/Ip.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $value = null;
|
||||
|
||||
/**
|
||||
* constructor for participant status object
|
||||
*
|
||||
* @param string $vame
|
||||
* @param string $value
|
||||
*/
|
||||
public function __construct($name, $value = null)
|
||||
{
|
||||
$this->setName($name)
|
||||
->setValue($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $name
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $value
|
||||
*
|
||||
* @param string $value
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*/
|
||||
public function setValue($value = null)
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue