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,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: ChangeQuotaPool.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_Request_BaseUserService_ChangeQuotaPool
|
||||
{
|
||||
/**
|
||||
* string module id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $moduleId = null;
|
||||
|
||||
/**
|
||||
* integer >= 0 to set new user quota
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $quotaMax = 0;
|
||||
|
||||
/**
|
||||
* constructor give them the module id
|
||||
*
|
||||
* @param string $moduleId
|
||||
* @param integer $quotaMax
|
||||
* @return Zend_Service_Developergarde_Request_ChangeQuotaPool
|
||||
*/
|
||||
public function __construct($moduleId = null, $quotaMax = 0)
|
||||
{
|
||||
$this->setModuleId($moduleId)
|
||||
->setQuotaMax($quotaMax);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new moduleId
|
||||
*
|
||||
* @param integer $moduleId
|
||||
* @return Zend_Service_Developergarde_Request_ChangeQuotaPool
|
||||
*/
|
||||
public function setModuleId($moduleId = null)
|
||||
{
|
||||
$this->moduleId = $moduleId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the moduleId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModuleId()
|
||||
{
|
||||
return $this->moduleId;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new QuotaMax value
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @return Zend_Service_Developergarde_Request_ChangeQuotaPool
|
||||
*/
|
||||
public function setQuotaMax($quotaMax = 0)
|
||||
{
|
||||
$this->quotaMax = $quotaMax;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the quotaMax value
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getQuotaMax()
|
||||
{
|
||||
return $this->quotaMax;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
<?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: GetAccountBalance.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_Request_BaseUserService_GetAccountBalance
|
||||
{
|
||||
/**
|
||||
* array of accounts
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $Account = array();
|
||||
|
||||
/**
|
||||
* constructor give them the account ids or an empty array
|
||||
*
|
||||
* @param array $Account
|
||||
* @return Zend_Service_DeveloperGarden_Request_GetAccountBalance
|
||||
*/
|
||||
public function __construct(array $Account = array())
|
||||
{
|
||||
$this->setAccount($Account);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new Account array
|
||||
*
|
||||
* @param array $Account
|
||||
* @return Zend_Service_DeveloperGarden_Request_BaseUserService
|
||||
*/
|
||||
public function setAccount(array $Account = array())
|
||||
{
|
||||
$this->Account = $Account;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the moduleId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->Account;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
<?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: GetQuotaInformation.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_Request_BaseUserService_GetQuotaInformation
|
||||
{
|
||||
/**
|
||||
* string module id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $moduleId = null;
|
||||
|
||||
/**
|
||||
* constructor give them the module id
|
||||
*
|
||||
* @param string $moduleId
|
||||
* @return Zend_Service_DeveloperGarden_Request_BaseUserService
|
||||
*/
|
||||
public function __construct($moduleId = null)
|
||||
{
|
||||
$this->setModuleId($moduleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new moduleId
|
||||
*
|
||||
* @param integer $moduleId
|
||||
* @return Zend_Service_DeveloperGarden_Request_BaseUserService
|
||||
*/
|
||||
public function setModuleId($moduleId = null)
|
||||
{
|
||||
$this->moduleId = $moduleId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the moduleId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModuleId()
|
||||
{
|
||||
return $this->moduleId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
<?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: AddConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_AddConferenceTemplateParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* the participant details
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $participant = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
*/
|
||||
public function __construct($environment, $templateId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId)
|
||||
->setParticipant($participant);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_AddConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new participant
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_AddConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setParticipant(Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant)
|
||||
{
|
||||
$this->participant = $participant;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: CommitConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_CommitConferenceRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
*/
|
||||
public function __construct($environment, $conferenceId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CommitConferenceRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,136 @@
|
|||
<?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: CreateConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_CreateConferenceRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* account to be used for this conference
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* unique owner id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $ownerId = null;
|
||||
|
||||
/**
|
||||
* object with details for this conference
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* object with schedule for this conference
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public $schedule = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule
|
||||
* @param integer $account
|
||||
*/
|
||||
public function __construct($environment, $ownerId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule = null,
|
||||
$account = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setOwnerId($ownerId)
|
||||
->setDetail($conferenceDetails)
|
||||
->setSchedule($conferenceSchedule)
|
||||
->setAccount($account);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $schedule
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setSchedule(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule = null
|
||||
) {
|
||||
$this->schedule = $schedule;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $detail
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setDetail(Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail)
|
||||
{
|
||||
$this->detail = $detail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $ownerId
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setOwnerId($ownerId)
|
||||
{
|
||||
$this->ownerId = $ownerId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $account
|
||||
*
|
||||
* @param $account
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setAccount($account = null)
|
||||
{
|
||||
$this->account = $account;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
<?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: CreateConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_CreateConferenceTemplateRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* unique owner id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $ownerId = null;
|
||||
|
||||
/**
|
||||
* object with details for this conference
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* array with Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail elements
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $participants = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param array $conferenceParticipants
|
||||
*/
|
||||
public function __construct($environment, $ownerId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails,
|
||||
array $conferenceParticipants = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setOwnerId($ownerId)
|
||||
->setDetail($conferenceDetails)
|
||||
->setParticipants($conferenceParticipants);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $participants
|
||||
*
|
||||
* @param array $participants
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceTemplateRequest
|
||||
*/
|
||||
public function setParticipants(array $participants = null)
|
||||
{
|
||||
$this->participants = $participants;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $detail
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceTemplateRequest
|
||||
*/
|
||||
public function setDetail(Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail)
|
||||
{
|
||||
$this->detail = $detail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $ownerId
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceTemplateRequest
|
||||
*/
|
||||
public function setOwnerId($ownerId)
|
||||
{
|
||||
$this->ownerId = $ownerId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,104 @@
|
|||
<?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: GetConferenceListRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetConferenceListRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $what = null;
|
||||
|
||||
/**
|
||||
* possible what values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_whatValues = array(
|
||||
0 => 'all conferences',
|
||||
1 => 'just ad-hoc conferences',
|
||||
2 => 'just planned conferences',
|
||||
3 => 'just failed conferences',
|
||||
);
|
||||
|
||||
/**
|
||||
* unique owner id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $ownerId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param integer $what
|
||||
* @param string $ownerId
|
||||
*/
|
||||
public function __construct($environment, $what = 0, $ownerId = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setWhat($what)
|
||||
->setOwnerId($ownerId);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $what
|
||||
*
|
||||
* @param integer $what
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
|
||||
*/
|
||||
public function setWhat($what)
|
||||
{
|
||||
if (!array_key_exists($what, $this->_whatValues)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.');
|
||||
}
|
||||
$this->what = $what;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $ownerId
|
||||
*
|
||||
* @param $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
|
||||
*/
|
||||
public function setOwnerId($ownerId)
|
||||
{
|
||||
$this->ownerId = $ownerId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
<?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: GetConferenceStatusRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetConferenceStatusRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* what
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $what = null;
|
||||
|
||||
/**
|
||||
* possible what values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_whatValues = array(
|
||||
0 => 'all conferences',
|
||||
1 => 'just detail, acc and startTime',
|
||||
2 => 'just participants',
|
||||
3 => 'just schedule',
|
||||
);
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param integer $what
|
||||
*/
|
||||
public function __construct($environment, $conferenceId, $what)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setWhat($what);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $what
|
||||
*
|
||||
* @param integer $what
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
|
||||
*/
|
||||
public function setWhat($what)
|
||||
{
|
||||
if (!array_key_exists($what, $this->_whatValues)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.');
|
||||
}
|
||||
$this->what = $what;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: GetConferenceTemplateListRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetConferenceTemplateListRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* unique owner id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $ownerId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $ownerId
|
||||
*/
|
||||
public function __construct($environment, $ownerId = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setOwnerId($ownerId);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $ownerId
|
||||
*
|
||||
* @param $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateListRequest
|
||||
*/
|
||||
public function setOwnerId($ownerId)
|
||||
{
|
||||
$this->ownerId = $ownerId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
<?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: GetConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetConferenceTemplateParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
*/
|
||||
public function __construct($environment, $templateId, $participantId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId)
|
||||
->setParticipantId($participantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: GetConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetConferenceTemplateRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
*/
|
||||
public function __construct($environment, $templateId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
<?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: GetParticipantStatusRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetParticipantStatusRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
*/
|
||||
public function __construct($environment, $conferenceId, $participantId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setParticipantId($participantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetParticipantStatusRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetParticipantStatusRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: GetRunningConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_GetRunningConferenceRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
*/
|
||||
public function __construct($environment, $conferenceId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetRunningConferenceRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
<?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: NewParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_NewParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* conference participant
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $participant = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
*/
|
||||
public function __construct($environment, $conferenceId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setParticipant($participant);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_NewParticipantRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new participant
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_NewParticipantRequest
|
||||
*/
|
||||
public function setParticipant(Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant)
|
||||
{
|
||||
$this->participant = $participant;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: RemoveConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_RemoveConferenceRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
*/
|
||||
public function __construct($environment, $conferenceId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
<?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: RemoveConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_RemoveConferenceTemplateParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
*/
|
||||
public function __construct($environment, $templateId, $participantId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId)
|
||||
->setParticipantId($participantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?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: RemoveConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_RemoveConferenceTemplateRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
*/
|
||||
public function __construct($environment, $templateId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
<?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: RemoveParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_RemoveParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
*/
|
||||
public function __construct($environment, $conferenceId, $participantId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setParticipantId($participantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveParticipantRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveParticipantRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,158 @@
|
|||
<?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: UpdateConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_UpdateConferenceRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* account to be used for this conference
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* unique owner id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $ownerId = null;
|
||||
|
||||
/**
|
||||
* object with details for this conference
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* object with schedule for this conference
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public $schedule = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule
|
||||
* @param integer $account
|
||||
*/
|
||||
public function __construct($environment, $conferenceId, $ownerId = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule = null,
|
||||
$account = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setOwnerId($ownerId)
|
||||
->setDetail($conferenceDetails)
|
||||
->setSchedule($conferenceSchedule)
|
||||
->setAccount($account);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $conferenceId
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId= $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $schedule
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setSchedule(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule = null
|
||||
) {
|
||||
$this->schedule = $schedule;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $detail
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setDetail(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail = null
|
||||
) {
|
||||
$this->detail = $detail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $ownerId
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setOwnerId($ownerId = null)
|
||||
{
|
||||
$this->ownerId = $ownerId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $account
|
||||
*
|
||||
* @param $account
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
public function setAccount($account = null)
|
||||
{
|
||||
$this->account = $account;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
<?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: UpdateConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* the participant details
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $participant = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
*/
|
||||
public function __construct($environment, $templateId, $participantId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId)
|
||||
->setParticipantId($participantId)
|
||||
->setParticipant($participant);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new participant
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest
|
||||
*/
|
||||
public function setParticipant(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
) {
|
||||
$this->participant = $participant;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
<?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: UpdateConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_UpdateConferenceTemplateRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the template id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* the initiator id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $initiatorId = null;
|
||||
|
||||
/**
|
||||
* the details
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $templateId
|
||||
* @param string $initiatorId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
*/
|
||||
public function __construct($environment, $templateId, $initiatorId = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setTemplateId($templateId)
|
||||
->setInitiatorId($initiatorId)
|
||||
->setDetail($conferenceDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the template id
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateRequest
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the initiator id
|
||||
*
|
||||
* @param string $initiatorId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateRequest
|
||||
*/
|
||||
public function setInitiatorId($initiatorId)
|
||||
{
|
||||
$this->initiatorId = $initiatorId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $detail
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateRequest
|
||||
*/
|
||||
public function setDetail(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail = null
|
||||
) {
|
||||
$this->detail = $detail;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,138 @@
|
|||
<?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: UpdateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_ConferenceCall_UpdateParticipantRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the conference id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* the participant id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* conference participant
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $participant = null;
|
||||
|
||||
/**
|
||||
* possible action
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $action = null;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
* @param integer $action
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
*/
|
||||
public function __construct($environment, $conferenceId, $participantId,
|
||||
$action = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setConferenceId($conferenceId)
|
||||
->setParticipantId($participantId)
|
||||
->setAction($action)
|
||||
->setParticipant($participant);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the conference id
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
|
||||
*/
|
||||
public function setConferenceId($conferenceId)
|
||||
{
|
||||
$this->conferenceId = $conferenceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the participant id
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
|
||||
*/
|
||||
public function setParticipantId($participantId)
|
||||
{
|
||||
$this->participantId = $participantId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new action
|
||||
*
|
||||
* @param integer $action
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
|
||||
*/
|
||||
public function setAction($action = null)
|
||||
{
|
||||
if ($action !== null) {
|
||||
Zend_Service_DeveloperGarden_ConferenceCall::checkParticipantAction($action);
|
||||
}
|
||||
$this->action = $action;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new participant
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
|
||||
*/
|
||||
public function setParticipant(
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
|
||||
) {
|
||||
$this->participant = $participant;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<?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_DeveloperGarden_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_Request_Exception
|
||||
extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
<?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: LocateIPRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_IpLocation_IpAddress
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/IpLocation/IpAddress.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_Request_IpLocation_LocateIPRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the ip addresses to lookup for
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Request_IpLocation_IpAddress
|
||||
*/
|
||||
public $address = null;
|
||||
|
||||
/**
|
||||
* the account
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* constructor give them the environment
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param Zend_Service_DeveloperGarden_IpLocation_IpAddress|array $ip
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function __construct($environment, $ip = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
|
||||
if ($ip !== null) {
|
||||
$this->setIp($ip);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new ip or array of ips
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_IpLocation_IpAddress|array $ip
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Request_IpLocation_LocateIPRequest
|
||||
*/
|
||||
public function setIp($ip)
|
||||
{
|
||||
if ($ip instanceof Zend_Service_DeveloperGarden_IpLocation_IpAddress) {
|
||||
$this->address[] = array(
|
||||
'ipType' => $ip->getVersion(),
|
||||
'ipAddress' => $ip->getIp(),
|
||||
);
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (is_array($ip)) {
|
||||
foreach ($ip as $ipObject) {
|
||||
if (!$ipObject instanceof Zend_Service_DeveloperGarden_IpLocation_IpAddress
|
||||
&& !is_string($ipObject)
|
||||
) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception(
|
||||
'Not a valid Ip Address object found.'
|
||||
);
|
||||
}
|
||||
$this->setIp($ipObject);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!is_string($ip)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception('Not a valid Ip Address object found.');
|
||||
}
|
||||
|
||||
return $this->setIp(new Zend_Service_DeveloperGarden_IpLocation_IpAddress($ip));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
<?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: LocalSearchRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_LocalSearch_LocalSearchRequest
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* array of search parameters
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $searchParameters = null;
|
||||
|
||||
/**
|
||||
* original object
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
private $_searchParameters = null;
|
||||
|
||||
/**
|
||||
* account id
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* constructor give them the environment and the sessionId
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
|
||||
* @param integer $account
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function __construct($environment,
|
||||
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters,
|
||||
$account = null
|
||||
) {
|
||||
parent::__construct($environment);
|
||||
$this->setSearchParameters($searchParameters)
|
||||
->setAccount($account);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $account
|
||||
*/
|
||||
public function setAccount($account = null)
|
||||
{
|
||||
$this->account = $account;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
|
||||
*/
|
||||
public function setSearchParameters(
|
||||
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
|
||||
) {
|
||||
$this->searchParameters = $searchParameters->getSearchParameters();
|
||||
$this->_searchParameters = $searchParameters;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function getSearchParameters()
|
||||
{
|
||||
return $this->_searchParameters;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
<?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: RequestAbstract.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
|
||||
*/
|
||||
abstract class Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* environment value
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $environment = null;
|
||||
|
||||
/**
|
||||
* constructor give them the environment
|
||||
*
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function __construct($environment)
|
||||
{
|
||||
$this->setEnvironment($environment);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new moduleId
|
||||
*
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function setEnvironment($environment)
|
||||
{
|
||||
$this->environment = $environment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the current configured environment value
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getEnvironment()
|
||||
{
|
||||
return $this->environment;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
<?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: SendFlashSMS.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.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_Request_SendSms_SendFlashSMS
|
||||
extends Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
{
|
||||
/**
|
||||
* this is the sms type
|
||||
* 2 = FlashSMS
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_smsType = 2;
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
<?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: SendSMS.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.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_Request_SendSms_SendSMS
|
||||
extends Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
{
|
||||
/**
|
||||
* this is the sms type
|
||||
* 1 = normal SMS
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_smsType = 1;
|
||||
}
|
|
@ -0,0 +1,281 @@
|
|||
<?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: SendSmsAbstract.php 20419 2010-01-19 13:20:12Z bate $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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
|
||||
*/
|
||||
abstract class Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the number or numbers to receive this sms
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $number = null;
|
||||
|
||||
/**
|
||||
* the message of this sms
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $message = null;
|
||||
|
||||
/**
|
||||
* name of the sender
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $originator = null;
|
||||
|
||||
/**
|
||||
* account
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* array of special chars that are used for counting
|
||||
* message length
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_specialChars = array(
|
||||
'|',
|
||||
'^',
|
||||
'{',
|
||||
'}',
|
||||
'[',
|
||||
']',
|
||||
'~',
|
||||
'\\',
|
||||
"\n",
|
||||
// '€', removed because its counted in utf8 correctly
|
||||
);
|
||||
|
||||
/**
|
||||
* what SMS type is it
|
||||
*
|
||||
* 1 = SMS
|
||||
* 2 = FlashSMS
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_smsType = 1;
|
||||
|
||||
/**
|
||||
* the counter for increasing message count
|
||||
* if more than this 160 chars we send a 2nd or counting
|
||||
* sms message
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_smsLength = 153;
|
||||
|
||||
/**
|
||||
* maximum length of an sms message
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_maxLength = 765;
|
||||
|
||||
/**
|
||||
* the maximum numbers to send an sms
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_maxNumbers = 10;
|
||||
|
||||
/**
|
||||
* returns the assigned numbers
|
||||
*
|
||||
* @return string $number
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a new number(s)
|
||||
*
|
||||
* @param string $number
|
||||
* @throws Zend_Service_DeveloperGarden_Request_Exception
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
if ($this->getNumberCount() > $this->_maxNumbers) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception('The message is too long.');
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the current message
|
||||
*
|
||||
* @return string $message
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new message
|
||||
*
|
||||
* @param string $message
|
||||
* @throws Zend_Service_DeveloperGarden_Request_Exception
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
if ($this->getMessageLength() > $this->_maxLength) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Request_Exception('The message is too long.');
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the originator
|
||||
*
|
||||
* @return the $originator
|
||||
*/
|
||||
public function getOriginator()
|
||||
{
|
||||
return $this->originator;
|
||||
}
|
||||
|
||||
/**
|
||||
* the originator name
|
||||
*
|
||||
* @param string $originator
|
||||
* @return Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
public function setOriginator($originator)
|
||||
{
|
||||
$this->originator = $originator;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the account
|
||||
* @return integer $account
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new accounts
|
||||
*
|
||||
* @param $account the $account to set
|
||||
* @return Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
public function setAccount($account)
|
||||
{
|
||||
$this->account = $account;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the calculated message length
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMessageLength()
|
||||
{
|
||||
$message = $this->getMessage();
|
||||
$length = strlen($message);
|
||||
|
||||
foreach ($this->_specialChars as $char) {
|
||||
$c = (substr_count($message, $char) * 2) - 1;
|
||||
if ($c > 0) {
|
||||
$length += $c;
|
||||
}
|
||||
}
|
||||
|
||||
return $length;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the count of sms messages that would be send
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMessageCount()
|
||||
{
|
||||
$smsLength = $this->getMessageLength();
|
||||
$retValue = 1;
|
||||
if ($smsLength > 160) {
|
||||
$retValue = ceil($smsLength / $this->_smsLength);
|
||||
}
|
||||
return $retValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the count of numbers in this sms
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getNumberCount()
|
||||
{
|
||||
$number = $this->getNumber();
|
||||
$retValue = 0;
|
||||
if (!empty($number)) {
|
||||
$retValue = count(explode(',', $number));
|
||||
}
|
||||
return $retValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the sms type
|
||||
* currently we have
|
||||
* 1 = Sms
|
||||
* 2 = FlashSms
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getSmsType()
|
||||
{
|
||||
return $this->_smsType;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<?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: GetValidatedNumbers.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_SmsValidation_GetValidatedNumbers
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
<?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: Invalidate.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_SmsValidation_Invalidate
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the number
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $number = null;
|
||||
|
||||
/**
|
||||
* create the class for validation a sms keyword
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $keyword
|
||||
* @param string $number
|
||||
*/
|
||||
public function __construct($environment, $number = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setNumber($number);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the number
|
||||
*
|
||||
* @return string $number
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a new number
|
||||
*
|
||||
* @param string $number
|
||||
* @return Zend_Service_DeveloperGarden_Request_SmsValidation_Validate
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<?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: SendValidationKeyword.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.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_Request_SmsValidation_SendValidationKeyword
|
||||
extends Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
|
||||
{
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
<?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: Validate.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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_Request_SmsValidation_Validate
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
/**
|
||||
* the keyword to be used for validation
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $keyword = null;
|
||||
|
||||
/**
|
||||
* the number
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $number = null;
|
||||
|
||||
/**
|
||||
* returns the keyword
|
||||
*
|
||||
* @return string $keyword
|
||||
*/
|
||||
public function getKeyword ()
|
||||
{
|
||||
return $this->keyword;
|
||||
}
|
||||
|
||||
/**
|
||||
* create the class for validation a sms keyword
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $keyword
|
||||
* @param string $number
|
||||
*/
|
||||
public function __construct($environment, $keyword = null, $number = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setKeyword($keyword)
|
||||
->setNumber($number);
|
||||
}
|
||||
|
||||
/**
|
||||
* set a new keyword
|
||||
*
|
||||
* @param string $keyword
|
||||
* @return Zend_Service_DeveloperGarden_Request_SmsValidation_Validate
|
||||
*/
|
||||
public function setKeyword($keyword)
|
||||
{
|
||||
$this->keyword = $keyword;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the number
|
||||
*
|
||||
* @return string $number
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a new number
|
||||
*
|
||||
* @param string $number
|
||||
* @return Zend_Service_DeveloperGarden_Request_SmsValidation_Validate
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
<?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: CallStatus.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_VoiceButler_VoiceButlerAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.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_Request_VoiceButler_CallStatus
|
||||
extends Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
|
||||
{
|
||||
/**
|
||||
* extend the keep alive for this call
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $keepAlive = null;
|
||||
|
||||
/**
|
||||
* constructor give them the environment and the sessionId
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $sessionId
|
||||
* @param integer $keepAlive
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function __construct($environment, $sessionId, $keepAlive = null)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setSessionId($sessionId)
|
||||
->setKeepAlive($keepAlive);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSessionId()
|
||||
{
|
||||
return $this->sessionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new sessionId
|
||||
*
|
||||
* @param string $sessionId
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
|
||||
*/
|
||||
public function setSessionId($sessionId)
|
||||
{
|
||||
$this->sessionId = $sessionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getKeepAlive()
|
||||
{
|
||||
return $this->keepAlive;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new keepAlive flag
|
||||
*
|
||||
* @param integer $keepAlive
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
|
||||
*/
|
||||
public function setKeepAlive($keepAlive)
|
||||
{
|
||||
$this->keepAlive = $keepAlive;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,238 @@
|
|||
<?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: NewCall.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_VoiceButler_VoiceButlerAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.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_Request_VoiceButler_NewCall
|
||||
extends Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
|
||||
{
|
||||
/**
|
||||
* the first number to be called
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $aNumber = null;
|
||||
|
||||
/**
|
||||
* the second number to be called
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $bNumber = null;
|
||||
|
||||
/**
|
||||
* Calling Line Identity Restriction (CLIR) disabled for $aNumber
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $privacyA = null;
|
||||
|
||||
/**
|
||||
* Calling Line Identity Restriction (CLIR) disabled for $bNumber
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $privacyB = null;
|
||||
|
||||
/**
|
||||
* time in seconds to wait for $aNumber
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $expiration = null;
|
||||
|
||||
/**
|
||||
* max duration for this call in seconds
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $maxDuration = null;
|
||||
|
||||
/**
|
||||
* param not used right now
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $greeter = null;
|
||||
|
||||
/**
|
||||
* Account Id which will be pay for this call
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getANumber()
|
||||
{
|
||||
return $this->aNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $aNumber
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setANumber($aNumber)
|
||||
{
|
||||
$this->aNumber = $aNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBNumber()
|
||||
{
|
||||
return $this->bNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $bNumber
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setBNumber($bNumber)
|
||||
{
|
||||
$this->bNumber = $bNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
public function getPrivacyA()
|
||||
{
|
||||
return $this->privacyA;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $privacyA
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setPrivacyA($privacyA)
|
||||
{
|
||||
$this->privacyA = $privacyA;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
public function getPrivacyB()
|
||||
{
|
||||
return $this->privacyB;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $privacyB
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setPrivacyB($privacyB)
|
||||
{
|
||||
$this->privacyB = $privacyB;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getExpiration()
|
||||
{
|
||||
return $this->expiration;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $expiration
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setExpiration($expiration)
|
||||
{
|
||||
$this->expiration = $expiration;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getMaxDuration()
|
||||
{
|
||||
return $this->maxDuration;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $maxDuration
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setMaxDuration($maxDuration)
|
||||
{
|
||||
$this->maxDuration = $maxDuration;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getGreeter()
|
||||
{
|
||||
return $this->greeter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $greeter
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setGreeter($greeter)
|
||||
{
|
||||
$this->greeter = $greeter;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $account
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
public function setAccount($account)
|
||||
{
|
||||
$this->account = $account;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
<?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: NewCallSequenced.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_VoiceButler_NewCall
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/NewCall.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_Request_VoiceButler_NewCallSequenced
|
||||
extends Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
{
|
||||
/**
|
||||
* array of second numbers to be called sequenced
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $bNumber = null;
|
||||
|
||||
/**
|
||||
* max wait value to wait for new number to be called
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $maxWait = null;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getBNumber()
|
||||
{
|
||||
return $this->bNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $bNumber
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCall
|
||||
*/
|
||||
/*public function setBNumber(array $bNumber)
|
||||
{
|
||||
$this->bNumber = $bNumber;
|
||||
return $this;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* returns the max wait value
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMaxWait()
|
||||
{
|
||||
return $this->maxWait;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new max wait value for next number call
|
||||
*
|
||||
* @param integer $maxWait
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_NewCallSequenced
|
||||
*/
|
||||
public function setMaxWait($maxWait)
|
||||
{
|
||||
$this->maxWait = $maxWait;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
<?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: TearDownCall.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_VoiceButler_VoiceButlerAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.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_Request_VoiceButler_TearDownCall
|
||||
extends Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
|
||||
{
|
||||
/**
|
||||
* the session id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $sessionId = null;
|
||||
|
||||
/**
|
||||
* constructor give them the environment and the sessionId
|
||||
*
|
||||
* @param integer $environment
|
||||
* @param string $sessionId
|
||||
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
public function __construct($environment, $sessionId)
|
||||
{
|
||||
parent::__construct($environment);
|
||||
$this->setSessionId($sessionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSessionId()
|
||||
{
|
||||
return $this->sessionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new sessionId
|
||||
*
|
||||
* @param string $sessionId
|
||||
* @return Zend_Service_DeveloperGarden_Request_VoiceButler_TearDownCall
|
||||
*/
|
||||
public function setSessionId($sessionId)
|
||||
{
|
||||
$this->sessionId = $sessionId;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<?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: VoiceButlerAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.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
|
||||
*/
|
||||
abstract class Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
|
||||
extends Zend_Service_DeveloperGarden_Request_RequestAbstract
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue