adding zend project folders into old campcaster.
This commit is contained in:
parent
56abfaf28e
commit
7ef0c18b26
4045 changed files with 1054952 additions and 0 deletions
399
library/Zend/Service/DeveloperGarden/BaseUserService.php
Normal file
399
library/Zend/Service/DeveloperGarden/BaseUserService.php
Normal file
|
@ -0,0 +1,399 @@
|
|||
<?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: BaseUserService.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/ChangeQuotaPoolResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_BaseUserService_AccountBalance
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/BaseUserService/AccountBalance.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/GetQuotaInformation.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/ChangeQuotaPool.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_BaseUserService_GetAccountBalance
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/GetAccountBalance.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_BaseUserService extends Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
{
|
||||
/**
|
||||
* wsdl file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-admin/services/ODGBaseUserService?wsdl';
|
||||
|
||||
/**
|
||||
* wsdl file local
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFileLocal = 'Wsdl/ODGBaseUserService.wsdl';
|
||||
|
||||
/**
|
||||
* Response, Request Classmapping
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
*/
|
||||
protected $_classMap = array(
|
||||
'getQuotaInformationResponse' =>
|
||||
'Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse',
|
||||
'changeQuotaPoolResponse' =>
|
||||
'Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse',
|
||||
'getAccountBalanceResponse' =>
|
||||
'Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse',
|
||||
'AccountBalance' =>
|
||||
'Zend_Service_DeveloperGarden_BaseUserService_AccountBalance',
|
||||
);
|
||||
|
||||
/**
|
||||
* array with all QuotaModuleIds
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_moduleIds = array(
|
||||
'SmsProduction' => 'SmsProduction',
|
||||
'SmsSandbox' => 'SmsSandbox',
|
||||
'VoiceCallProduction' => 'VoiceButlerProduction',
|
||||
'VoiceCallSandbox' => 'VoiceButlerSandbox',
|
||||
'ConferenceCallProduction' => 'CCSProduction',
|
||||
'ConferenceCallSandbox' => 'CCSSandbox',
|
||||
'LocalSearchProduction' => 'localsearchProduction',
|
||||
'LocalSearchSandbox' => 'localsearchSandbox',
|
||||
'IPLocationProduction' => 'IPLocationProduction',
|
||||
'IPLocationSandbox' => 'IPLocationSandbox'
|
||||
);
|
||||
|
||||
/**
|
||||
* returns an array with all possible ModuleIDs
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getModuleIds()
|
||||
{
|
||||
return $this->_moduleIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* checks the moduleId and throws exception if not valid
|
||||
*
|
||||
* @param string $moduleId
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return void
|
||||
*/
|
||||
protected function _checkModuleId($moduleId)
|
||||
{
|
||||
if (!in_array($moduleId, $this->_moduleIds)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('moduleId not valid');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the correct module string
|
||||
*
|
||||
* @param string $module
|
||||
* @param integer $environment
|
||||
* @return string
|
||||
*/
|
||||
protected function _buildModuleString($module, $environment)
|
||||
{
|
||||
$moduleString = $module;
|
||||
switch($environment) {
|
||||
case self::ENV_PRODUCTION :
|
||||
$moduleString .= 'Production';
|
||||
break;
|
||||
case self::ENV_SANDBOX :
|
||||
$moduleString .= 'Sandbox';
|
||||
break;
|
||||
default:
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception(
|
||||
'Not a valid environment supplied.'
|
||||
);
|
||||
}
|
||||
|
||||
if (!in_array($moduleString, $this->_moduleIds)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception(
|
||||
'Not a valid module name supplied.'
|
||||
);
|
||||
}
|
||||
|
||||
return $moduleString;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the request object with the specific moduleId
|
||||
*
|
||||
* @param string $moduleId
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
protected function _getRequestModule($moduleId)
|
||||
{
|
||||
return new Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation(
|
||||
$moduleId
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the request object with the specific moduleId and new quotaMax value
|
||||
*
|
||||
* @param string $moduleId
|
||||
* @param integer $quotaMax
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
protected function _getChangeRequestModule($moduleId, $quotaMax)
|
||||
{
|
||||
return new Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool(
|
||||
$moduleId,
|
||||
$quotaMax
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the Quota Information for SMS Service
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getSmsQuotaInformation($environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('Sms', $environment);
|
||||
$request = $this->_getRequestModule($moduleId);
|
||||
return $this->getQuotaInformation($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the Quota Information for VoiceCall Service
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getVoiceCallQuotaInformation($environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('VoiceButler', $environment);
|
||||
$request = $this->_getRequestModule($moduleId);
|
||||
return $this->getQuotaInformation($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the Quota Information for SMS ConferenceCall
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getConfernceCallQuotaInformation($environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('CCS', $environment);
|
||||
$request = $this->_getRequestModule($moduleId);
|
||||
return $this->getQuotaInformation($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the Quota Information for LocaleSearch Service
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getLocalSearchQuotaInformation($environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('localsearch', $environment);
|
||||
$request = $this->_getRequestModule($moduleId);
|
||||
return $this->getQuotaInformation($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the Quota Information for IPLocation Service
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getIPLocationQuotaInformation($environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('IPLocation', $environment);
|
||||
$request = $this->_getRequestModule($moduleId);
|
||||
return $this->getQuotaInformation($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the quota information
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Request_BaseUserService $request
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
|
||||
*/
|
||||
public function getQuotaInformation(
|
||||
Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation $request
|
||||
) {
|
||||
$this->_checkModuleId($request->getModuleId());
|
||||
return $this->getSoapClient()
|
||||
->getQuotaInformation($request)
|
||||
->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new user quota for the sms service
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeSmsQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('Sms', $environment);
|
||||
$request = $this->_getChangeRequestModule($moduleId, $quotaMax);
|
||||
return $this->changeQuotaPool($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new user quota for the voice call service
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeVoiceCallQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('VoiceButler', $environment);
|
||||
$request = $this->_getChangeRequestModule($moduleId, $quotaMax);
|
||||
return $this->changeQuotaPool($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new user quota for the IPLocation service
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeIPLocationQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('IPLocation', $environment);
|
||||
$request = $this->_getChangeRequestModule($moduleId, $quotaMax);
|
||||
return $this->changeQuotaPool($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new user quota for the Conference Call service
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeConferenceCallQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('CCS', $environment);
|
||||
$request = $this->_getChangeRequestModule($moduleId, $quotaMax);
|
||||
return $this->changeQuotaPool($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new user quota for the Local Search service
|
||||
*
|
||||
* @param integer $quotaMax
|
||||
* @param integer $environment
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeLocalSearchQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$moduleId = $this->_buildModuleString('localsearch', $environment);
|
||||
$request = $this->_getChangeRequestModule($moduleId, $quotaMax);
|
||||
return $this->changeQuotaPool($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* set new quota values for the defined module
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool $request
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
*/
|
||||
public function changeQuotaPool(
|
||||
Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool $request
|
||||
) {
|
||||
$this->_checkModuleId($request->getModuleId());
|
||||
return $this->getSoapClient()
|
||||
->changeQuotaPool($request)
|
||||
->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* get the result for a list of accounts
|
||||
*
|
||||
* @param array $accounts
|
||||
* @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse
|
||||
*/
|
||||
public function getAccountBalance(array $accounts = array())
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_BaseUserService_GetAccountBalance(
|
||||
$accounts
|
||||
);
|
||||
return $this->getSoapClient()
|
||||
->getAccountBalance($request)
|
||||
->parse();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: AccountBalance.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_BaseUserService_AccountBalance
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $Account = null;
|
||||
|
||||
/**
|
||||
* @var integer $Credits
|
||||
*/
|
||||
public $Credits = null;
|
||||
|
||||
/**
|
||||
* returns the account id
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->Account;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the credits
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCredits()
|
||||
{
|
||||
return $this->Credits;
|
||||
}
|
||||
}
|
430
library/Zend/Service/DeveloperGarden/Client/ClientAbstract.php
Normal file
430
library/Zend/Service/DeveloperGarden/Client/ClientAbstract.php
Normal file
|
@ -0,0 +1,430 @@
|
|||
<?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: ClientAbstract.php 20419 2010-01-19 13:20:12Z bate $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Soap.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Credential.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_SecurityTokenServer
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/SecurityTokenServer.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_Client_ClientAbstract
|
||||
{
|
||||
/**
|
||||
* constants for using with the odg api
|
||||
*/
|
||||
const ENV_PRODUCTION = 1; // Production Environment
|
||||
const ENV_SANDBOX = 2; // Sandbox Environment, limited access to the api
|
||||
const ENV_MOCK = 3; // Api calls are without any functionality
|
||||
|
||||
const PARTICIPANT_MUTE_OFF = 0; // removes mute from participant in a conference
|
||||
const PARTICIPANT_MUTE_ON = 1; // mute participant in a conference
|
||||
const PARTICIPANT_RECALL = 2; // recalls the participant in a conference
|
||||
|
||||
/**
|
||||
* array of all possible env types
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
static protected $_consts = null;
|
||||
|
||||
/**
|
||||
* Available options
|
||||
*
|
||||
* @var array available options
|
||||
*/
|
||||
protected $_options = array();
|
||||
|
||||
/**
|
||||
* The service id to generate the auth service token
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_serviceAuthId = 'https://odg.t-online.de';
|
||||
|
||||
/**
|
||||
* Variable that holds the Zend_Service_DeveloperGarden env value
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $_serviceEnvironment = Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTION;
|
||||
|
||||
/**
|
||||
* wsdl file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFile = null;
|
||||
|
||||
/**
|
||||
* the local wsdlFile
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFileLocal = null;
|
||||
|
||||
/**
|
||||
* should we use the local wsdl file?
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $_useLocalWsdl = true;
|
||||
|
||||
/**
|
||||
* class with credentials
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
protected $_credential = null;
|
||||
|
||||
/**
|
||||
* The internal Soap Client
|
||||
*
|
||||
* @var Zend_Soap_Client
|
||||
*/
|
||||
protected $_soapClient = null;
|
||||
|
||||
/**
|
||||
* array with options for classmapping
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_classMap = array();
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param array $options Associative array of options
|
||||
*/
|
||||
public function __construct(array $options = array())
|
||||
{
|
||||
$this->_credential = new Zend_Service_DeveloperGarden_Credential();
|
||||
|
||||
while (list($name, $value) = each($options)) {
|
||||
switch (ucfirst($name)) {
|
||||
case 'Username' :
|
||||
$this->_credential->setUsername($value);
|
||||
break;
|
||||
case 'Password' :
|
||||
$this->_credential->setPassword($value);
|
||||
break;
|
||||
case 'Realm' :
|
||||
$this->_credential->setRealm($value);
|
||||
break;
|
||||
case 'Environment' :
|
||||
$this->setEnvironment($value);
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($this->_wsdlFile)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('_wsdlFile not set for this service.');
|
||||
}
|
||||
|
||||
if (!empty($this->_wsdlFileLocal)) {
|
||||
$this->_wsdlFileLocal = realpath(dirname(__FILE__) . '/../' . $this->_wsdlFileLocal);
|
||||
}
|
||||
|
||||
if (empty($this->_wsdlFileLocal) || $this->_wsdlFileLocal === false) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('_wsdlFileLocal not set for this service.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set an option
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setOption($name, $value)
|
||||
{
|
||||
if (!is_string($name)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Incorrect option name: ' . $name);
|
||||
}
|
||||
$name = strtolower($name);
|
||||
if (array_key_exists($name, $this->_options)) {
|
||||
$this->_options[$name] = $value;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get an option value from the internal options object
|
||||
*
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function getOption($name)
|
||||
{
|
||||
$name = strtolower($name);
|
||||
if (array_key_exists($name, $this->_options)) {
|
||||
return $this->_options[$name];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the internal soap client
|
||||
* if not allready exists we create an instance of
|
||||
* Zend_Soap_Client
|
||||
*
|
||||
* @final
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
final public function getSoapClient()
|
||||
{
|
||||
if ($this->_soapClient === null) {
|
||||
/**
|
||||
* init the soapClient
|
||||
*/
|
||||
$this->_soapClient = new Zend_Service_DeveloperGarden_Client_Soap(
|
||||
$this->getWsdl(),
|
||||
$this->getClientOptions()
|
||||
);
|
||||
$this->_soapClient->setCredential($this->_credential);
|
||||
$tokenService = new Zend_Service_DeveloperGarden_SecurityTokenServer(
|
||||
array(
|
||||
'username' => $this->_credential->getUsername(),
|
||||
'password' => $this->_credential->getPassword(),
|
||||
'environment' => $this->getEnvironment(),
|
||||
'realm' => $this->_credential->getRealm(),
|
||||
)
|
||||
);
|
||||
$this->_soapClient->setTokenService($tokenService);
|
||||
}
|
||||
|
||||
return $this->_soapClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new environment
|
||||
*
|
||||
* @param int $environment
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setEnvironment($environment)
|
||||
{
|
||||
self::checkEnvironment($environment);
|
||||
$this->_serviceEnvironment = $environment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the current configured environemnt
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getEnvironment()
|
||||
{
|
||||
return $this->_serviceEnvironment;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the wsdl file path, a uri or the local path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWsdl()
|
||||
{
|
||||
if ($this->_useLocalWsdl) {
|
||||
$retVal = $this->_wsdlFileLocal;
|
||||
} else {
|
||||
$retVal = $this->_wsdlFile;
|
||||
}
|
||||
|
||||
return $retVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* switch to the local wsdl file usage
|
||||
*
|
||||
* @param boolen $use
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setUseLocalWsdl($use = true)
|
||||
{
|
||||
$this->_useLocalWsdl = (boolean) $use;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new wsdl file
|
||||
*
|
||||
* @param string $wsdlFile
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setWsdl($wsdlFile = null)
|
||||
{
|
||||
if (empty($wsdlFile)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('_wsdlFile not set for this service.');
|
||||
}
|
||||
$this->_wsdlFile = $wsdlFile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new local wsdl file
|
||||
*
|
||||
* @param string $wsdlFile
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setLocalWsdl($wsdlFile = null)
|
||||
{
|
||||
if (empty($wsdlFile)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('_wsdlFileLocal not set for this service.');
|
||||
}
|
||||
$this->_wsdlFileLocal = $wsdlFile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns an array with configured options for this client
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getClientOptions()
|
||||
{
|
||||
$options = array(
|
||||
'soap_version' => SOAP_1_1,
|
||||
);
|
||||
if (!empty($this->_classMap)) {
|
||||
$options['classmap'] = $this->_classMap;
|
||||
}
|
||||
$wsdlCache = Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache();
|
||||
if (!is_null($wsdlCache)) {
|
||||
$options['cache_wsdl'] = $wsdlCache;
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the internal credential object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
public function getCredential()
|
||||
{
|
||||
return $this->_credential;
|
||||
}
|
||||
|
||||
/**
|
||||
* helper method to create const arrays
|
||||
* @return null
|
||||
*/
|
||||
static protected function _buildConstArray()
|
||||
{
|
||||
$r = new ReflectionClass(__CLASS__);
|
||||
foreach ($r->getConstants() as $k => $v) {
|
||||
$s = explode('_', $k, 2);
|
||||
if (!isset(self::$_consts[$s[0]])) {
|
||||
self::$_consts[$s[0]] = array();
|
||||
}
|
||||
self::$_consts[$s[0]][$v] = $k;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns an array of all available environments
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function getParticipantActions()
|
||||
{
|
||||
if (empty(self::$_consts)) {
|
||||
self::_buildConstArray();
|
||||
}
|
||||
return self::$_consts['PARTICIPANT'];
|
||||
}
|
||||
|
||||
/**
|
||||
* checks if the given action is valid
|
||||
* otherwise it @throws Zend_Service_DeveloperGarden_Exception
|
||||
*
|
||||
* @param int $action
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return void
|
||||
*/
|
||||
static public function checkParticipantAction($action)
|
||||
{
|
||||
if (!array_key_exists($action, self::getParticipantActions())) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception(
|
||||
'Wrong Participant Action ' . $action . ' supplied.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns an array of all available environments
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function getEnvironments()
|
||||
{
|
||||
if (empty(self::$_consts)) {
|
||||
self::_buildConstArray();
|
||||
}
|
||||
return self::$_consts['ENV'];
|
||||
}
|
||||
|
||||
/**
|
||||
* checks if the given environemnt is valid
|
||||
* otherwise it @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
*
|
||||
* @param int $environment
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return void
|
||||
*/
|
||||
static public function checkEnvironment($environment)
|
||||
{
|
||||
if (!array_key_exists($environment, self::getEnvironments())) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception(
|
||||
'Wrong environment ' . $environment . ' supplied.'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
38
library/Zend/Service/DeveloperGarden/Client/Exception.php
Normal file
38
library/Zend/Service/DeveloperGarden/Client/Exception.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_Client_Exception extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
340
library/Zend/Service/DeveloperGarden/Client/Soap.php
Normal file
340
library/Zend/Service/DeveloperGarden/Client/Soap.php
Normal file
|
@ -0,0 +1,340 @@
|
|||
<?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: Soap.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Soap_Client
|
||||
*/
|
||||
require_once 'Zend/Soap/Client.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_Client_Soap extends Zend_Soap_Client
|
||||
{
|
||||
/**
|
||||
* class with credential interface
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
private $_credential = null;
|
||||
|
||||
/**
|
||||
* WSSE Security Ext Namespace
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_NAMESPACE_SECEXT = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
|
||||
|
||||
/**
|
||||
* WSSE Saml Namespace
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_NAMESPACE_SAML = 'urn:oasis:names:tc:SAML:2.0:assertion';
|
||||
|
||||
/**
|
||||
* Security Element
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_SECURITY_ELEMENT = 'Security';
|
||||
|
||||
/**
|
||||
* UsernameToken Element
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_ELEMENT_USERNAMETOKEN = 'UsernameToken';
|
||||
|
||||
/**
|
||||
* Usernae Element
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_ELEMENT_USERNAME = 'Username';
|
||||
|
||||
/**
|
||||
* Password Element
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const WSSE_ELEMENT_PASSWORD = 'Password';
|
||||
|
||||
/**
|
||||
* Password Element WSSE Type
|
||||
*
|
||||
*/
|
||||
const WSSE_ELEMENT_PASSWORD_TYPE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';
|
||||
|
||||
/**
|
||||
* is this client used by the token service
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_SecurityTokenServer
|
||||
*/
|
||||
protected $_tokenService = null;
|
||||
|
||||
/**
|
||||
* Perform a SOAP call but first check for adding STS Token or fetch one
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $arguments
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
/**
|
||||
* add WSSE Security header
|
||||
*/
|
||||
if (!is_null($this->_tokenService)) {
|
||||
// if login method we addWsseLoginHeader
|
||||
if (in_array('login', $arguments)) {
|
||||
$this->addWsseLoginHeader();
|
||||
} elseif ($name == 'getTokens') {
|
||||
$this->addWsseTokenHeader($this->_tokenService->getLoginToken());
|
||||
} else {
|
||||
$this->addWsseSecurityTokenHeader($this->_tokenService->getTokens());
|
||||
}
|
||||
}
|
||||
return parent::__call($name, $arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the internal handling for handle token service
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_SecurityTokenServer $isTokenService
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
public function setTokenService(Zend_Service_DeveloperGarden_SecurityTokenServer $tokenService)
|
||||
{
|
||||
$this->_tokenService = $tokenService;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the currently configured tokenService object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_SecurityTokenServer
|
||||
*/
|
||||
public function getTokenService()
|
||||
{
|
||||
return $this->_tokenService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets new credential callback object
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Credential $credential
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
public function setCredential(Zend_Service_DeveloperGarden_Credential $credential)
|
||||
{
|
||||
$this->_credential = $credential;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the internal credential callback object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
public function getCredential()
|
||||
{
|
||||
return $this->_credential;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates the login header and add
|
||||
*
|
||||
* @return SoapHeader
|
||||
*/
|
||||
public function getWsseLoginHeader()
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
|
||||
/**
|
||||
* Security Element
|
||||
*/
|
||||
$securityElement = $dom->createElementNS(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
'wsse:' . self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
$securityElement->setAttribute('mustUnderstand', true);
|
||||
|
||||
/**
|
||||
* Username Token Element
|
||||
*/
|
||||
$usernameTokenElement = $dom->createElementNS(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_ELEMENT_USERNAMETOKEN
|
||||
);
|
||||
|
||||
/**
|
||||
* Username Element
|
||||
*/
|
||||
$usernameElement = $dom->createElementNS(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_ELEMENT_USERNAME,
|
||||
$this->_credential->getUsername(true)
|
||||
);
|
||||
|
||||
/**
|
||||
* Password Element
|
||||
*/
|
||||
$passwordElement = $dom->createElementNS(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_ELEMENT_PASSWORD,
|
||||
$this->_credential->getPassword()
|
||||
);
|
||||
$passwordElement->setAttribute('Type', self::WSSE_ELEMENT_PASSWORD_TYPE);
|
||||
|
||||
$usernameTokenElement->appendChild($usernameElement);
|
||||
$usernameTokenElement->appendChild($passwordElement);
|
||||
|
||||
$securityElement->appendChild($usernameTokenElement);
|
||||
$dom->appendChild($securityElement);
|
||||
|
||||
$authSoapVar = new SoapVar(
|
||||
$dom->saveXML($securityElement),
|
||||
XSD_ANYXML,
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
|
||||
$authSoapHeader = new SoapHeader(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT,
|
||||
$authSoapVar,
|
||||
true
|
||||
);
|
||||
|
||||
return $authSoapHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates the token auth header for direct calls
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
* @return SoapHeader
|
||||
*/
|
||||
public function getWsseTokenHeader(
|
||||
Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
) {
|
||||
$format = '<wsse:%s xmlns:wsse="%s" SOAP-ENV:mustUnderstand="1">%s</wsse:%s>';
|
||||
$securityHeader = sprintf(
|
||||
$format,
|
||||
self::WSSE_SECURITY_ELEMENT,
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
$token->getTokenData(),
|
||||
self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
|
||||
$authSoapVar = new SoapVar(
|
||||
$securityHeader,
|
||||
XSD_ANYXML,
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
|
||||
$authSoapHeader = new SoapHeader(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT,
|
||||
$authSoapVar,
|
||||
true
|
||||
);
|
||||
|
||||
return $authSoapHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates the security token auth header for direct calls
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
* @return SoapHeader
|
||||
*/
|
||||
public function getWsseSecurityTokenHeader(
|
||||
Zend_Service_DeveloperGarden_Response_SecurityTokenServer_GetTokensResponse $token
|
||||
) {
|
||||
$format = '<wsse:%s xmlns:wsse="%s" SOAP-ENV:mustUnderstand="1">%s</wsse:%s>';
|
||||
$securityHeader = sprintf(
|
||||
$format,
|
||||
self::WSSE_SECURITY_ELEMENT,
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
$token->getTokenData(),
|
||||
self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
|
||||
$authSoapVar = new SoapVar(
|
||||
$securityHeader,
|
||||
XSD_ANYXML,
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT
|
||||
);
|
||||
|
||||
$authSoapHeader = new SoapHeader(
|
||||
self::WSSE_NAMESPACE_SECEXT,
|
||||
self::WSSE_SECURITY_ELEMENT,
|
||||
$authSoapVar,
|
||||
true
|
||||
);
|
||||
|
||||
return $authSoapHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* adds the login specific header to the client
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
public function addWsseLoginHeader()
|
||||
{
|
||||
return $this->addSoapInputHeader($this->getWsseLoginHeader());
|
||||
}
|
||||
|
||||
/**
|
||||
* adds the earlier fetched token to the header
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
public function addWsseTokenHeader(
|
||||
Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
) {
|
||||
return $this->addSoapInputHeader($this->getWsseTokenHeader($token));
|
||||
}
|
||||
|
||||
/**
|
||||
* adds the earlier fetched token to the header
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse $token
|
||||
* @return Zend_Service_DeveloperGarden_Client_Soap
|
||||
*/
|
||||
public function addWsseSecurityTokenHeader(
|
||||
Zend_Service_DeveloperGarden_Response_SecurityTokenServer_GetTokensResponse $token
|
||||
) {
|
||||
return $this->addSoapInputHeader($this->getWsseSecurityTokenHeader($token));
|
||||
}
|
||||
}
|
872
library/Zend/Service/DeveloperGarden/ConferenceCall.php
Normal file
872
library/Zend/Service/DeveloperGarden/ConferenceCall.php
Normal file
|
@ -0,0 +1,872 @@
|
|||
<?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: ConferenceCall.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_NewParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/NewParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetParticipantStatusRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetParticipantStatusRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceListRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CCSResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceStatusRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetRunningConferenceRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetRunningConferenceRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateListRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateListRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceTemplateRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceTemplateRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceTemplateResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceTemplateResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceTemplateParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceTemplateParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_AddConferenceTemplateParticipantRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/AddConferenceTemplateParticipantRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_CommitConferenceRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/CommitConferenceRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_CommitConferenceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/CommitConferenceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/ConferenceDetail.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/ConferenceSchedule.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/Participant.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/ParticipantDetail.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/ParticipantStatus.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/ConferenceAccount.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall
|
||||
extends Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
{
|
||||
/**
|
||||
* wsdl file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-ccs/services/ccsPort?wsdl';
|
||||
|
||||
/**
|
||||
* the local WSDL file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFileLocal = 'Wsdl/ccsPort.wsdl';
|
||||
|
||||
/**
|
||||
* Response, Request Classmapping
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
*/
|
||||
protected $_classMap = array(
|
||||
//Struct
|
||||
'ConferenceDetailStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail',
|
||||
'ConferenceAccStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount',
|
||||
'ScheduleStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule',
|
||||
'ParticipantStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_Participant',
|
||||
'ParticipantDetailStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail',
|
||||
'ParticipantStatusStruct' => 'Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus',
|
||||
|
||||
//Responses
|
||||
'CCSResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType',
|
||||
|
||||
//Conference
|
||||
'createConferenceResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponse',
|
||||
'createConferenceResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponseType',
|
||||
'removeConferenceResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceResponse',
|
||||
'commitConferenceResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CommitConferenceResponse',
|
||||
'updateConferenceResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceResponse',
|
||||
'getConferenceStatusResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponse',
|
||||
'getConferenceStatusResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponseType',
|
||||
'getRunningConferenceResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponse',
|
||||
'getRunningConferenceResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponseType',
|
||||
'getConferenceListResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponse',
|
||||
'getConferenceListResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponseType',
|
||||
|
||||
//Participant
|
||||
'newParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponse',
|
||||
'newParticipantResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponseType',
|
||||
'removeParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveParticipantResponse',
|
||||
'updateParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateParticipantResponse',
|
||||
'getParticipantStatusResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponse',
|
||||
'getParticipantStatusResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponseType',
|
||||
|
||||
//Templates
|
||||
'createConferenceTemplateResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponse',
|
||||
'createConferenceTemplateResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponseType',
|
||||
'getConferenceTemplateResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponse',
|
||||
'getConferenceTemplateResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponseType',
|
||||
'updateConferenceTemplateResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceTemplateResponse',
|
||||
'removeConferenceTemplateResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceTemplateResponse',
|
||||
'getConferenceTemplateListResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponse',
|
||||
'getConferenceTemplateListResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponseType',
|
||||
'addConferenceTemplateParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponse',
|
||||
'addConferenceTemplateParticipantResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponseType',
|
||||
'getConferenceTemplateParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponse',
|
||||
'getConferenceTemplateParticipantResponseType' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponseType',
|
||||
'updateConferenceTemplateParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_UpdateConferenceTemplateParticipantResponse',
|
||||
'removeConferenceTemplateParticipantResponse' => 'Zend_Service_DeveloperGarden_Response_ConferenceCall_RemoveConferenceTemplateParticipantResponse',
|
||||
);
|
||||
|
||||
/**
|
||||
* creates a new conference, ownerId should be between 3 and 39
|
||||
* chars
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule
|
||||
* @param integer $account
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponseType
|
||||
*/
|
||||
public function createConference($ownerId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule = null,
|
||||
$account = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest(
|
||||
$this->getEnvironment(),
|
||||
$ownerId,
|
||||
$conferenceDetails,
|
||||
$conferenceSchedule,
|
||||
$account
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->createConference(array(
|
||||
'createConferenceRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* commits the given conference
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CommitConferenceResponse
|
||||
*/
|
||||
public function commitConference($conferenceId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_CommitConferenceRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->commitConference(array(
|
||||
'commitConferenceRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* updates a conference with the given parameter
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule
|
||||
* @param string $account
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function updateConference(
|
||||
$conferenceId,
|
||||
$ownerId = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule = null,
|
||||
$account = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$ownerId,
|
||||
$conferenceDetails,
|
||||
$conferenceSchedule,
|
||||
$account
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->updateConference(array(
|
||||
'updateConferenceRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* get conference status details
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param integer $what
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponseType
|
||||
*/
|
||||
public function getConferenceStatus($conferenceId, $what = 0)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceStatusRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$what
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getConferenceStatus(array(
|
||||
'getConferenceStatusRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the conferenceId of the running conference instance for a planned
|
||||
* recurring conference or the current conferenceId
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponseType
|
||||
*/
|
||||
public function getRunningConference($conferenceId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetRunningConferenceRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getRunningConference(array(
|
||||
'getRunningConferenceRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* remove a conference
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function removeConference($conferenceId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->removeConference(array(
|
||||
'removeConferenceRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a list of conferences
|
||||
*
|
||||
* @param integer $what
|
||||
* @param string $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponseType
|
||||
*/
|
||||
public function getConferenceList($what = 0, $ownerId = null)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest(
|
||||
$this->getEnvironment(),
|
||||
$what,
|
||||
$ownerId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getConferenceList(array(
|
||||
'getConferenceListRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* adds a new participant to the given conference
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponseType
|
||||
*/
|
||||
public function newParticipant(
|
||||
$conferenceId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_NewParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$participant
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->newParticipant(array(
|
||||
'newParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* fetches the participant details for the given conferenceId
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponseType
|
||||
*/
|
||||
public function getParticipantStatus($conferenceId, $participantId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetParticipantStatusRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$participantId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getParticipantStatus(array(
|
||||
'getParticipantStatusRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* removes the given participant from the conference
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function removeParticipant($conferenceId, $participantId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$participantId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->removeParticipant(array(
|
||||
'removeParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* updates the participant in the given conference
|
||||
*
|
||||
* @param string $conferenceId
|
||||
* @param string $participantId
|
||||
* @param integer $action
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function updateParticipant(
|
||||
$conferenceId,
|
||||
$participantId,
|
||||
$action = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$conferenceId,
|
||||
$participantId,
|
||||
$action,
|
||||
$participant
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->updateParticipant(array(
|
||||
'updateParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new conference template
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @param array $participants
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponseType
|
||||
*/
|
||||
public function createConferenceTemplate(
|
||||
$ownerId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails,
|
||||
array $participants = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceTemplateRequest(
|
||||
$this->getEnvironment(),
|
||||
$ownerId,
|
||||
$conferenceDetails,
|
||||
$participants
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->createConferenceTemplate(array(
|
||||
'createConferenceTemplateRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* get a specific template
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponseType
|
||||
*/
|
||||
public function getConferenceTemplate($templateId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getConferenceTemplate(array(
|
||||
'getConferenceTemplateRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* updates a conference template
|
||||
*
|
||||
* @param string $templateId
|
||||
* @param string $initiatorId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function updateConferenceTemplate(
|
||||
$templateId,
|
||||
$initiatorId = null,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId,
|
||||
$initiatorId,
|
||||
$conferenceDetails
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->updateConferenceTemplate(array(
|
||||
'updateConferenceTemplateRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* remove a conference template
|
||||
*
|
||||
* @param string $templateId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function removeConferenceTemplate($templateId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->removeConferenceTemplate(array(
|
||||
'removeConferenceTemplateRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* lists all available conference templates for the given owner
|
||||
*
|
||||
* @param string $ownerId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponseType
|
||||
*/
|
||||
public function getConferenceTemplateList($ownerId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateListRequest(
|
||||
$this->getEnvironment(),
|
||||
$ownerId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getConferenceTemplateList(array(
|
||||
'getConferenceTemplateListRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* adds a new participants to the template
|
||||
*
|
||||
* @param string $templateId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
public function addConferenceTemplateParticipant(
|
||||
$templateId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_AddConferenceTemplateParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId,
|
||||
$participant
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->addConferenceTemplateParticipant(array(
|
||||
'addConferenceTemplateParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a praticipant for the given templateId
|
||||
*
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
public function getConferenceTemplateParticipant($templateId, $participantId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId,
|
||||
$participantId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->getConferenceTemplateParticipant(array(
|
||||
'getConferenceTemplateParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* updates the participants details
|
||||
*
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
* @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function updateConferenceTemplateParticipant(
|
||||
$templateId,
|
||||
$participantId,
|
||||
Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateConferenceTemplateParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId,
|
||||
$participantId,
|
||||
$participant
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->updateConferenceTemplateParticipant(array(
|
||||
'updateConferenceTemplateParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
* removes a praticipant from the given templateId
|
||||
*
|
||||
* @param string $templateId
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public function removeConferenceTemplateParticipant($templateId, $participantId)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_ConferenceCall_RemoveConferenceTemplateParticipantRequest(
|
||||
$this->getEnvironment(),
|
||||
$templateId,
|
||||
$participantId
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->removeConferenceTemplateParticipant(array(
|
||||
'removeConferenceTemplateParticipantRequest' => $request
|
||||
));
|
||||
|
||||
return $result->parse();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceAccount.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount
|
||||
{
|
||||
/**
|
||||
* type of billing
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $billingtype = null;
|
||||
|
||||
/**
|
||||
* account id
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $account = null;
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBillingType()
|
||||
{
|
||||
return $this->billingtype;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,129 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
{
|
||||
/**
|
||||
* name of this conference
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = null;
|
||||
|
||||
/**
|
||||
* description of this conference
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $description = null;
|
||||
|
||||
/**
|
||||
* duration in seconds of this conference
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $duration = null;
|
||||
|
||||
/**
|
||||
* create object
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $description
|
||||
* @param integer $duration
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function __construct($name, $description, $duration)
|
||||
{
|
||||
$this->setName($name);
|
||||
$this->setDescription($description);
|
||||
$this->setDuration($duration);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new duration for this conference in seconds
|
||||
*
|
||||
* @param integer $duration
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setDuration($duration)
|
||||
{
|
||||
$this->duration = $duration;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDuration()
|
||||
{
|
||||
return $this->duration;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the description of this conference
|
||||
*
|
||||
* @param $description the $description to set
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the name of this conference
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,262 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConferenceSchedule.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $minute = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $hour = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $dayOfMonth = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $month = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $year = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $recurring = 0;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $notify = 0;
|
||||
|
||||
/**
|
||||
* possible recurring values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_recurringValues = array(
|
||||
0 => 'no recurring',
|
||||
1 => 'hourly',
|
||||
2 => 'daily',
|
||||
3 => 'weekly',
|
||||
4 => 'monthly',
|
||||
);
|
||||
|
||||
/**
|
||||
* constructor for schedule object, all times are in UTC
|
||||
*
|
||||
* @param integer $minute
|
||||
* @param integer $hour
|
||||
* @param integer $dayOfMonth
|
||||
* @param integer $month
|
||||
* @param integer $year
|
||||
* @param integer $recurring
|
||||
* @param integer $notify
|
||||
*/
|
||||
public function __construct($minute, $hour, $dayOfMonth, $month, $year, $recurring = 0, $notify = 0)
|
||||
{
|
||||
$this->setMinute($minute)
|
||||
->setHour($hour)
|
||||
->setDayOfMonth($dayOfMonth)
|
||||
->setMonth($month)
|
||||
->setYear($year)
|
||||
->setRecurring($recurring)
|
||||
->setNotify($notify);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $minute
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMinute()
|
||||
{
|
||||
return $this->minute;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $minute
|
||||
*
|
||||
* @param integer $minute
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setMinute($minute)
|
||||
{
|
||||
$this->minute = $minute;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $hour
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getHour()
|
||||
{
|
||||
return $this->hour;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $hour
|
||||
*
|
||||
* @param integer $hour
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setHour($hour)
|
||||
{
|
||||
$this->hour = $hour;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $dayOfMonth
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getDayOfMonth()
|
||||
{
|
||||
return $this->dayOfMonth;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $dayOfMonth
|
||||
*
|
||||
* @param integer $dayOfMonth
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setDayOfMonth($dayOfMonth)
|
||||
{
|
||||
$this->dayOfMonth = $dayOfMonth;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $month
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $month
|
||||
*
|
||||
* @param integer $month
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setMonth($month)
|
||||
{
|
||||
$this->month = $month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $year
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getYear()
|
||||
{
|
||||
return $this->year;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $year
|
||||
*
|
||||
* @param integer $year
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setYear($year)
|
||||
{
|
||||
$this->year = $year;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $recurring
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRecurring()
|
||||
{
|
||||
return $this->recurring;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $recurring
|
||||
*
|
||||
* @param integer $recurring
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setRecurring($recurring)
|
||||
{
|
||||
if (!array_key_exists($recurring, $this->_recurringValues)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/ConferenceCall/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_ConferenceCall_Exception(
|
||||
'Unknown ConferenceCall recurring mode.'
|
||||
);
|
||||
}
|
||||
$this->recurring = $recurring;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $notify
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getNotify()
|
||||
{
|
||||
return $this->notify;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $notify
|
||||
*
|
||||
* @param integer $notify
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function setNotify($notify)
|
||||
{
|
||||
$this->notify = $notify;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_Exception extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Participant.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Validate_Ip
|
||||
*/
|
||||
require_once 'Zend/Validate/Ip.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
{
|
||||
/**
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $status = null;
|
||||
|
||||
/**
|
||||
* participant details
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getDetail()
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* participant id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParticipantId()
|
||||
{
|
||||
return $this->participantId;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the status
|
||||
* returns an
|
||||
* array of Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,195 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ParticipantDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
/**
|
||||
* @see Zend_Validate_EmailAddress
|
||||
*/
|
||||
require_once 'Zend/Validate/EmailAddress.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $firstName = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastName = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $number = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $email = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $flags = null;
|
||||
|
||||
/**
|
||||
* constructor for participant object
|
||||
*
|
||||
* @param string $firstName
|
||||
* @param string $lastName
|
||||
* @param string $number
|
||||
* @param string $email
|
||||
* @param integer $isInitiator
|
||||
*/
|
||||
public function __construct($firstName, $lastName, $number, $email, $isInitiator = false)
|
||||
{
|
||||
$this->setFirstName($firstName)
|
||||
->setLastName($lastName)
|
||||
->setNumber($number)
|
||||
->setEmail($email)
|
||||
->setFlags((int) $isInitiator);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $firstName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFirstName()
|
||||
{
|
||||
return $this->firstName;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $firstName
|
||||
*
|
||||
* @param string $firstName
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setFirstName($firstName)
|
||||
{
|
||||
$this->firstName = $firstName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $lastName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLastName()
|
||||
{
|
||||
return $this->lastName;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $lastName
|
||||
*
|
||||
* @param string $lastName
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setLastName($lastName)
|
||||
{
|
||||
$this->lastName = $lastName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $number
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $number
|
||||
*
|
||||
* @param string $number
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $email
|
||||
*
|
||||
* @param string email
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$validator = new Zend_Validate_EmailAddress();
|
||||
|
||||
if (!$validator->isValid($email)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('Not a valid e-mail address.');
|
||||
}
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $flags
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getFlags()
|
||||
{
|
||||
return $this->flags;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $flags (ie, initiator flag)
|
||||
*
|
||||
* @param integer $flags
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function setFlags($flags)
|
||||
{
|
||||
$this->flags = $flags;
|
||||
return $this;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ParticipantStatus.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Validate_Ip
|
||||
*/
|
||||
require_once 'Zend/Validate/Ip.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $value = null;
|
||||
|
||||
/**
|
||||
* constructor for participant status object
|
||||
*
|
||||
* @param string $vame
|
||||
* @param string $value
|
||||
*/
|
||||
public function __construct($name, $value = null)
|
||||
{
|
||||
$this->setName($name)
|
||||
->setValue($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $name
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the value of $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets $value
|
||||
*
|
||||
* @param string $value
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*/
|
||||
public function setValue($value = null)
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
}
|
||||
}
|
186
library/Zend/Service/DeveloperGarden/Credential.php
Normal file
186
library/Zend/Service/DeveloperGarden/Credential.php
Normal file
|
@ -0,0 +1,186 @@
|
|||
<?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: Credential.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_Credential
|
||||
{
|
||||
/**
|
||||
* Service Auth Username
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_username = null;
|
||||
|
||||
/**
|
||||
* Service Password
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_password = null;
|
||||
|
||||
/**
|
||||
* Service Realm - default t-online.de
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_realm = 't-online.de';
|
||||
|
||||
/**
|
||||
* constructor to init the internal data
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @param string $realm
|
||||
* @return Zend_Service_DeveloperGarden_Credential
|
||||
*/
|
||||
public function __construct($username = null, $password = null, $realm = null)
|
||||
{
|
||||
if (!empty($username)) {
|
||||
$this->setUsername($username);
|
||||
}
|
||||
if (!empty($password)) {
|
||||
$this->setPassword($password);
|
||||
}
|
||||
if (!empty($realm)) {
|
||||
$this->setRealm($realm);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* split the password into an array
|
||||
*
|
||||
* @param string $password
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setPassword($password = null)
|
||||
{
|
||||
if (empty($password)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Empty password not permitted.');
|
||||
}
|
||||
|
||||
if (!is_string($password)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Password must be a string.');
|
||||
}
|
||||
|
||||
$this->_password = $password;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the current configured password
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->_password;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the new login
|
||||
*
|
||||
* @param string $username
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setUsername($username = null)
|
||||
{
|
||||
if (empty($username)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Empty username not permitted.');
|
||||
}
|
||||
|
||||
if (!is_string($username)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Username must be a string.');
|
||||
}
|
||||
|
||||
$this->_username = $username;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the username
|
||||
*
|
||||
* if $withRealm == true we combine username and realm like
|
||||
* username@realm
|
||||
*
|
||||
* @param $boolean withRealm
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUsername($withRealm = false)
|
||||
{
|
||||
$retValue = $this->_username;
|
||||
if ($withRealm) {
|
||||
$retValue = sprintf(
|
||||
'%s@%s',
|
||||
$this->_username,
|
||||
$this->_realm
|
||||
);
|
||||
}
|
||||
return $retValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the new realm
|
||||
*
|
||||
* @param string $realm
|
||||
* @throws Zend_Service_DeveloperGarden_Client_Exception
|
||||
* @return Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
public function setRealm($realm = null)
|
||||
{
|
||||
if (empty($realm)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Empty realm not permitted.');
|
||||
}
|
||||
|
||||
if (!is_string($realm)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Client_Exception('Realm must be a string.');
|
||||
}
|
||||
|
||||
$this->_realm = $realm;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the realm
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getRealm()
|
||||
{
|
||||
return $this->_realm;
|
||||
}
|
||||
}
|
||||
|
38
library/Zend/Service/DeveloperGarden/Exception.php
Normal file
38
library/Zend/Service/DeveloperGarden/Exception.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/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_Exception extends Zend_Service_Exception
|
||||
{
|
||||
}
|
120
library/Zend/Service/DeveloperGarden/IpLocation.php
Normal file
120
library/Zend/Service/DeveloperGarden/IpLocation.php
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?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: IpLocation.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_IPAddressLocationType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/IPAddressLocationType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_RegionType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_IpLocation_CityType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_IpLocation_LocateIPRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/IpLocation/LocateIPRequest.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_IpLocation
|
||||
extends Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
{
|
||||
/**
|
||||
* wsdl file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-iplocation/services/IPLocation?wsdl';
|
||||
|
||||
/**
|
||||
* wsdl file local
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFileLocal = 'Wsdl/IPLocation.wsdl';
|
||||
|
||||
/**
|
||||
* Response, Request Classmapping
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
*/
|
||||
protected $_classMap = array(
|
||||
'LocateIPResponseType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponseType',
|
||||
'IPAddressLocationType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_IPAddressLocationType',
|
||||
'RegionType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_RegionType',
|
||||
'GeoCoordinatesType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType',
|
||||
'CityType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_CityType',
|
||||
);
|
||||
|
||||
/**
|
||||
* locate the given Ip address or array of addresses
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_IpLocation_IpAddress|string $ip
|
||||
* @return Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponse
|
||||
*/
|
||||
public function locateIP($ip)
|
||||
{
|
||||
$request = new Zend_Service_DeveloperGarden_Request_IpLocation_LocateIPRequest(
|
||||
$this->getEnvironment(),
|
||||
$ip
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->locateIP($request);
|
||||
|
||||
$response = new Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponse($result);
|
||||
return $response->parse();
|
||||
}
|
||||
}
|
130
library/Zend/Service/DeveloperGarden/IpLocation/IpAddress.php
Normal file
130
library/Zend/Service/DeveloperGarden/IpLocation/IpAddress.php
Normal file
|
@ -0,0 +1,130 @@
|
|||
<?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: IpAddress.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Validate_Ip
|
||||
*/
|
||||
require_once 'Zend/Validate/Ip.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_IpLocation_IpAddress
|
||||
{
|
||||
/**
|
||||
* the ip version
|
||||
* ip v4 = 4
|
||||
* ip v6 = 6
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
private $_version = 4;
|
||||
|
||||
/**
|
||||
* currently supported versions
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_versionSupported = array(
|
||||
4,
|
||||
//6, not supported yet
|
||||
);
|
||||
|
||||
private $_address = null;
|
||||
|
||||
/**
|
||||
* create ipaddress object
|
||||
*
|
||||
* @param string $ip
|
||||
* @param integer $version
|
||||
*
|
||||
* @return Zend_Service_Developergarde_IpLocation_IpAddress
|
||||
*/
|
||||
public function __construct($ip, $version = 4)
|
||||
{
|
||||
$this->setIp($ip)
|
||||
->setVersion($version);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new ip address
|
||||
*
|
||||
* @param string $ip
|
||||
* @throws Zend_Service_DeveloperGarden_Exception
|
||||
* @return Zend_Service_DeveloperGarden_IpLocation_IpAddress
|
||||
*/
|
||||
public function setIp($ip)
|
||||
{
|
||||
$validator = new Zend_Validate_Ip();
|
||||
|
||||
if (!$validator->isValid($ip)) {
|
||||
$message = $validator->getMessages();
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception($message['notIpAddress']);
|
||||
}
|
||||
$this->_address = $ip;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the current address
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIp()
|
||||
{
|
||||
return $this->_address;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets new ip version
|
||||
*
|
||||
* @param integer $version
|
||||
* @throws Zend_Service_DeveloperGarden_Exception
|
||||
* @return Zend_Service_DeveloperGarden_IpLocation_IpAddress
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
if (!in_array($version, $this->_versionSupported)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_Exception('Ip Version ' . (int)$version . ' is not supported.');
|
||||
}
|
||||
|
||||
$this->_version = $version;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the ip version
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->_version;
|
||||
}
|
||||
}
|
105
library/Zend/Service/DeveloperGarden/LocalSearch.php
Normal file
105
library/Zend/Service/DeveloperGarden/LocalSearch.php
Normal file
|
@ -0,0 +1,105 @@
|
|||
<?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: LocalSearch.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponseType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Request_LocalSearch_LocalSearchRequest
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Request/LocalSearch/LocalSearchRequest.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponse
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/SearchParameters.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_LocalSearch
|
||||
extends Zend_Service_DeveloperGarden_Client_ClientAbstract
|
||||
{
|
||||
/**
|
||||
* wsdl file
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-localsearch/services/localsearch?wsdl';
|
||||
|
||||
/**
|
||||
* wsdl file local
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_wsdlFileLocal = 'Wsdl/localsearch.wsdl';
|
||||
|
||||
/**
|
||||
* Response, Request Classmapping
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
*/
|
||||
protected $_classMap = array(
|
||||
'LocalSearchResponseType' => 'Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType'
|
||||
);
|
||||
|
||||
/**
|
||||
* localSearch with the given parameters
|
||||
*
|
||||
* @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
|
||||
* @param integer $account
|
||||
* @return Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType
|
||||
*/
|
||||
public function localSearch(
|
||||
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters,
|
||||
$account = null
|
||||
) {
|
||||
$request = new Zend_Service_DeveloperGarden_Request_LocalSearch_LocalSearchRequest(
|
||||
$this->getEnvironment(),
|
||||
$searchParameters,
|
||||
$account
|
||||
);
|
||||
|
||||
$result = $this->getSoapClient()->localSearch($request);
|
||||
|
||||
$response = new Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponse($result);
|
||||
return $response->parse();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Exception.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage DeveloperGarden
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @author Marco Kaiser
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_DeveloperGarden_LocalSearch_Exception extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
|
@ -0,0 +1,536 @@
|
|||
<?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: SearchParameters.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_LocalSearch_SearchParameters
|
||||
{
|
||||
/**
|
||||
* possible search parameters, incl. default values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_parameters = array(
|
||||
'what' => null,
|
||||
'dymwhat' => null,
|
||||
'dymrelated' => null,
|
||||
'hits' => null,
|
||||
'collapse' => null,
|
||||
'where' => null,
|
||||
'dywhere' => null,
|
||||
'radius' => null,
|
||||
'lx' => null,
|
||||
'ly' => null,
|
||||
'rx' => null,
|
||||
'ry' => null,
|
||||
'transformgeocode' => null,
|
||||
'sort' => null,
|
||||
'spatial' => null,
|
||||
'sepcomm' => null,
|
||||
'filter' => null, // can be ONLINER or OFFLINER
|
||||
'openingtime' => null, // can be now or HH::MM
|
||||
'kategorie' => null, // @see http://www.suchen.de/kategorie-katalog
|
||||
'site' => null,
|
||||
'typ' => null,
|
||||
'name' => null,
|
||||
'page' => null,
|
||||
'city' => null,
|
||||
'plz' => null,
|
||||
'strasse' => null,
|
||||
'bundesland' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* possible collapse values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $_possibleCollapseValues = array(
|
||||
true,
|
||||
false,
|
||||
'ADDRESS_COMPANY',
|
||||
'DOMAIN'
|
||||
);
|
||||
|
||||
/**
|
||||
* sets a new search word
|
||||
* alias for setWhat
|
||||
*
|
||||
* @param string $searchValue
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setSearchValue($searchValue)
|
||||
{
|
||||
return $this->setWhat($searchValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a new search word
|
||||
*
|
||||
* @param string $searchValue
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setWhat($searchValue)
|
||||
{
|
||||
$this->_parameters['what'] = $searchValue;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* enable the did you mean what feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function enableDidYouMeanWhat()
|
||||
{
|
||||
$this->_parameters['dymwhat'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* disable the did you mean what feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disableDidYouMeanWhat()
|
||||
{
|
||||
$this->_parameters['dymwhat'] = 'false';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* enable the did you mean where feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function enableDidYouMeanWhere()
|
||||
{
|
||||
$this->_parameters['dymwhere'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* disable the did you mean where feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disableDidYouMeanWhere()
|
||||
{
|
||||
$this->_parameters['dymwhere'] = 'false';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* enable did you mean related, if true Kihno will be corrected to Kino
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function enableDidYouMeanRelated()
|
||||
{
|
||||
$this->_parameters['dymrelated'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* diable did you mean related, if false Kihno will not be corrected to Kino
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disableDidYouMeanRelated()
|
||||
{
|
||||
$this->_parameters['dymrelated'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the max result hits for this search
|
||||
*
|
||||
* @param integer $hits
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setHits($hits = 10)
|
||||
{
|
||||
require_once 'Zend/Validate/Between.php';
|
||||
$validator = new Zend_Validate_Between(0, 1000);
|
||||
if (!$validator->isValid($hits)) {
|
||||
$message = $validator->getMessages();
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_LocalSearch_Exception(current($message));
|
||||
}
|
||||
$this->_parameters['hits'] = $hits;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, addresses will be collapsed for a single domain, common values
|
||||
* are:
|
||||
* ADDRESS_COMPANY – to collapse by address
|
||||
* DOMAIN – to collapse by domain (same like collapse=true)
|
||||
* false
|
||||
*
|
||||
* @param mixed $value
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setCollapse($value)
|
||||
{
|
||||
if (!in_array($value, $this->_possibleCollapseValues, true)) {
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_LocalSearch_Exception('Not a valid value provided.');
|
||||
}
|
||||
$this->_parameters['collapse'] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a specific search location
|
||||
* examples:
|
||||
* +47°54’53.10”, 11° 10’ 56.76”
|
||||
* 47°54’53.10;11°10’56.76”
|
||||
* 47.914750,11.182533
|
||||
* +47.914750 ; +11.1824
|
||||
* Darmstadt
|
||||
* Berlin
|
||||
*
|
||||
* @param string $where
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setWhere($where)
|
||||
{
|
||||
require_once 'Zend/Validate/NotEmpty.php';
|
||||
|
||||
$validator = new Zend_Validate_NotEmpty();
|
||||
if (!$validator->isValid($where)) {
|
||||
$message = $validator->getMessages();
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_LocalSearch_Exception(current($message));
|
||||
}
|
||||
$this->_parameters['where'] = $where;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the defined search location (ie city, country)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWhere()
|
||||
{
|
||||
return $this->_parameters['where'];
|
||||
}
|
||||
|
||||
/**
|
||||
* enable the spatial search feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function enableSpatial()
|
||||
{
|
||||
$this->_parameters['spatial'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* disable the spatial search feature
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disableSpatial()
|
||||
{
|
||||
$this->_parameters['spatial'] = 'false';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets spatial and the given radius for a circle search
|
||||
*
|
||||
* @param integer $radius
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setRadius($radius)
|
||||
{
|
||||
require_once 'Zend/Validate/Int.php';
|
||||
|
||||
$validator = new Zend_Validate_Int();
|
||||
if (!$validator->isValid($radius)) {
|
||||
$message = $validator->getMessages();
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_LocalSearch_Exception(current($message));
|
||||
}
|
||||
$this->_parameters['radius'] = $radius;
|
||||
$this->_parameters['transformgeocode'] = 'false';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the values for a rectangle search
|
||||
* lx = longitude left top
|
||||
* ly = latitude left top
|
||||
* rx = longitude right bottom
|
||||
* ry = latitude right bottom
|
||||
*
|
||||
* @param $lx
|
||||
* @param $ly
|
||||
* @param $rx
|
||||
* @param $ry
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setRectangle($lx, $ly, $rx, $ry)
|
||||
{
|
||||
$this->_parameters['lx'] = $lx;
|
||||
$this->_parameters['ly'] = $ly;
|
||||
$this->_parameters['rx'] = $rx;
|
||||
$this->_parameters['ry'] = $ry;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if set, the service returns the zipcode for the result
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setTransformGeoCode()
|
||||
{
|
||||
$this->_parameters['transformgeocode'] = 'true';
|
||||
$this->_parameters['radius'] = null;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the sort value
|
||||
* possible values are: 'relevance' and 'distance' (only with spatial enabled)
|
||||
*
|
||||
* @param string $sort
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setSort($sort)
|
||||
{
|
||||
if (!in_array($sort, array('relevance', 'distance'))) {
|
||||
require_once 'Zend/Service/DeveloperGarden/LocalSearch/Exception.php';
|
||||
throw new Zend_Service_DeveloperGarden_LocalSearch_Exception('Not a valid sort value provided.');
|
||||
}
|
||||
|
||||
$this->_parameters['sort'] = $sort;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* enable the separation of phone numbers
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function enablePhoneSeparation()
|
||||
{
|
||||
$this->_parameters['sepcomm'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* disable the separation of phone numbers
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disablePhoneSeparation()
|
||||
{
|
||||
$this->_parameters['sepcomm'] = 'true';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if this filter is set, only results with a website are returned
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setFilterOnliner()
|
||||
{
|
||||
$this->_parameters['filter'] = 'ONLINER';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if this filter is set, only results without a website are returned
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setFilterOffliner()
|
||||
{
|
||||
$this->_parameters['filter'] = 'OFFLINER';
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* removes the filter value
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function disableFilter()
|
||||
{
|
||||
$this->_parameters['filter'] = null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a filter to get just results who are open at the given time
|
||||
* possible values:
|
||||
* now = open right now
|
||||
* HH:MM = at the given time (ie 20:00)
|
||||
*
|
||||
* @param string $time
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setOpeningTime($time = null)
|
||||
{
|
||||
$this->_parameters['openingtime'] = $time;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a category filter
|
||||
*
|
||||
* @see http://www.suchen.de/kategorie-katalog
|
||||
* @param $category
|
||||
* @return unknown_type
|
||||
*/
|
||||
public function setCategory($category = null)
|
||||
{
|
||||
$this->_parameters['kategorie'] = $category;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the site filter
|
||||
* ie: www.developergarden.com
|
||||
*
|
||||
* @param string $site
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setSite($site)
|
||||
{
|
||||
$this->_parameters['site'] = $site;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a filter to the given document type
|
||||
* ie: pdf, html
|
||||
*
|
||||
* @param string $type
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setDocumentType($type)
|
||||
{
|
||||
$this->_parameters['typ'] = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a filter for the company name
|
||||
* ie: Deutsche Telekom
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->_parameters['name'] = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a filter for the zip code
|
||||
*
|
||||
* @param string $zip
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setZipCode($zip)
|
||||
{
|
||||
$this->_parameters['plz'] = $zip;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a filter for the street
|
||||
*
|
||||
* @param string $street
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setStreet($street)
|
||||
{
|
||||
$this->_parameters['strasse'] = $street;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a filter for the county
|
||||
*
|
||||
* @param string $county
|
||||
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
|
||||
*/
|
||||
public function setCounty($county)
|
||||
{
|
||||
$this->_parameters['bundesland'] = $county;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a raw parameter with the value
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @return unknown_type
|
||||
*/
|
||||
public function setRawParameter($key, $value)
|
||||
{
|
||||
$this->_parameters[$key] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the parameters as an array
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getSearchParameters()
|
||||
{
|
||||
$retVal = array();
|
||||
foreach ($this->_parameters as $key => $value) {
|
||||
if (is_null($value)) {
|
||||
continue;
|
||||
}
|
||||
$param = array(
|
||||
'parameter' => $key,
|
||||
'value' => $value
|
||||
);
|
||||
$retVal[] = $param;
|
||||
}
|
||||
return $retVal;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
39
library/Zend/Service/DeveloperGarden/Request/Exception.php
Normal file
39
library/Zend/Service/DeveloperGarden/Request/Exception.php
Normal file
|
@ -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
|
||||
{
|
||||
}
|
140
library/Zend/Service/DeveloperGarden/Response/BaseType.php
Normal file
140
library/Zend/Service/DeveloperGarden/Response/BaseType.php
Normal file
|
@ -0,0 +1,140 @@
|
|||
<?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: BaseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.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_Response_BaseType
|
||||
extends Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
{
|
||||
/**
|
||||
* the status code
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $statusCode = null;
|
||||
|
||||
/**
|
||||
* the status message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $statusMessage = null;
|
||||
|
||||
/**
|
||||
* parse the result
|
||||
*
|
||||
* @throws Zend_Service_DeveloperGarden_Response_Exception
|
||||
* @return Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
*/
|
||||
public function parse()
|
||||
{
|
||||
if ($this->hasError()) {
|
||||
throw new Zend_Service_DeveloperGarden_Response_Exception(
|
||||
$this->getStatusMessage(),
|
||||
$this->getStatusCode()
|
||||
);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the error code
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatusCode()
|
||||
{
|
||||
return $this->statusCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the error message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->statusMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns true if the errorCode is not null and not 0000
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isValid()
|
||||
{
|
||||
return ($this->statusCode === null
|
||||
|| $this->statusCode == '0000');
|
||||
}
|
||||
|
||||
/**
|
||||
* returns true if we have a error situation
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function hasError()
|
||||
{
|
||||
return ($this->statusCode !== null
|
||||
&& $this->statusCode != '0000');
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the error code (statusCode)
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getErrorCode()
|
||||
{
|
||||
if (empty($this->errorCode)) {
|
||||
return $this->statusCode;
|
||||
} else {
|
||||
return $this->errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the error message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getErrorMessage()
|
||||
{
|
||||
if (empty($this->errorMessage)) {
|
||||
return $this->statusMessage;
|
||||
} else {
|
||||
return $this->errorMessage;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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: ChangeQuotaPoolResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.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_Response_BaseUserService_ChangeQuotaPoolResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
{
|
||||
}
|
|
@ -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: GetAccountBalanceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.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_Response_BaseUserService_GetAccountBalanceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
{
|
||||
}
|
|
@ -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: GetQuotaInformationResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.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_Response_BaseUserService_GetQuotaInformationResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ResponseAbstract
|
||||
{
|
||||
/**
|
||||
* System defined limit of quota points per day
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $maxQuota = null;
|
||||
|
||||
/**
|
||||
* User specific limit of quota points per day
|
||||
* cant be more than $maxQuota
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $maxUserQuota = null;
|
||||
|
||||
/**
|
||||
* Used quota points for the current day
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $quotaLevel = null;
|
||||
|
||||
/**
|
||||
* returns the quotaLevel
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getQuotaLevel()
|
||||
{
|
||||
return $this->quotaLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the maxUserQuota
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMaxUserQuota()
|
||||
{
|
||||
return $this->maxUserQuota;
|
||||
}
|
||||
|
||||
/**
|
||||
* return the maxQuota
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getMaxQuota()
|
||||
{
|
||||
return $this->maxQuota;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: AddConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_AddConferenceTemplateParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_AddConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
public $addConferenceTemplateParticipantResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: AddConferenceTemplateParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_AddConferenceTemplateParticipantResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the participant Id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* return the participant id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParticipantId()
|
||||
{
|
||||
return $this->participantId;
|
||||
}
|
||||
}
|
|
@ -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: CCSResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_CCSResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
}
|
|
@ -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: CommitConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_CommitConferenceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
<?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: ConferenceCallAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_ConferenceCallAbstract
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* returns the response object or null
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getResponse()
|
||||
{
|
||||
$r = new ReflectionClass($this);
|
||||
foreach ($r->getProperties() as $p) {
|
||||
$name = $p->getName();
|
||||
if (strpos($name, 'Response') !== false) {
|
||||
return $p->getValue($this);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* parse the response data and throws exceptions
|
||||
*
|
||||
* @throws Zend_Service_DeveloperGarden_Response_Exception
|
||||
* @return mixed
|
||||
*/
|
||||
public function parse()
|
||||
{
|
||||
$retVal = $this->getResponse();
|
||||
if ($retVal === null) {
|
||||
$this->statusCode = 9999;
|
||||
$this->statusMessage = 'Internal response property not found.';
|
||||
} else {
|
||||
$this->statusCode = $retVal->getStatusCode();
|
||||
$this->statusMessage = $retVal->getStatusMessage();
|
||||
}
|
||||
parent::parse();
|
||||
return $retVal;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: CreateConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_CreateConferenceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceResponseType
|
||||
*/
|
||||
public $createConferenceResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: CreateConferenceResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_CreateConferenceResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the conference Id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* return the conference id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getConferenceId()
|
||||
{
|
||||
return $this->conferenceId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: CreateConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_CreateConferenceTemplateResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CreateConferenceTemplateResponseType
|
||||
*/
|
||||
public $createConferenceTemplateResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: CreateConferenceTemplateResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_CreateConferenceTemplateResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the template Id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $templateId = null;
|
||||
|
||||
/**
|
||||
* return the template id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTemplateId()
|
||||
{
|
||||
return $this->templateId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetConferenceListResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetConferenceListResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceListResponseType
|
||||
*/
|
||||
public $getConferenceListResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: GetConferenceListResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetConferenceListResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* array with conferences ids
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $conferenceIds = array();
|
||||
|
||||
/**
|
||||
* array with conference ids
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getConferenceIds()
|
||||
{
|
||||
return (array) $this->conferenceIds;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetConferenceStatusResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetConferenceStatusResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceStatusResponseType
|
||||
*/
|
||||
public $getConferenceStatusResponse = null;
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
<?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: GetConferenceStatusResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetConferenceStatusResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* details
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* conference starttime
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public $schedule = null;
|
||||
|
||||
/**
|
||||
* the starttime as longint
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $startTime = null;
|
||||
|
||||
/**
|
||||
* array of Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $participants = null;
|
||||
|
||||
/**
|
||||
* the account object
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount
|
||||
*/
|
||||
public $acc = null;
|
||||
|
||||
/**
|
||||
* returns the details object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function getDetail()
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the starttime
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the schedule object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
|
||||
*/
|
||||
public function getSchedule()
|
||||
{
|
||||
return $this->schedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns array with all participants
|
||||
* Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*
|
||||
* @return array of Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getParticipants()
|
||||
{
|
||||
if ($this->participants instanceof Zend_Service_DeveloperGarden_ConferenceCall_Participant) {
|
||||
$this->participants = array(
|
||||
$this->participants
|
||||
);
|
||||
}
|
||||
return $this->participants;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the participant object if found in the response
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getParticipantById($participantId)
|
||||
{
|
||||
$participants = $this->getParticipants();
|
||||
if ($participants !== null) {
|
||||
foreach ($participants as $participant) {
|
||||
if (strcmp($participant->getParticipantId(), $participantId) == 0) {
|
||||
return $participant;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the conference account details
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceAccount
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
return $this->acc;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetConferenceTemplateListResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetConferenceTemplateListResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateListResponseType
|
||||
*/
|
||||
public $getConferenceTemplateListResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: GetConferenceTemplateListResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetConferenceTemplateListResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* array with template ids
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $templateIds = array();
|
||||
|
||||
/**
|
||||
* array with template ids
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getTemplateIds()
|
||||
{
|
||||
return (array)$this->templateIds;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetConferenceTemplateParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateParticipantResponseType
|
||||
*/
|
||||
public $getConferenceTemplateParticipantResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: GetConferenceTemplateParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetConferenceTemplateParticipantResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the participant
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
*/
|
||||
public $participant = null;
|
||||
|
||||
/**
|
||||
* returns the participant details
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getParticipant()
|
||||
{
|
||||
return $this->participant;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetConferenceTemplateResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetConferenceTemplateResponseType
|
||||
*/
|
||||
public $getConferenceTemplateResponse = null;
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
<?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: GetConferenceTemplateResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetConferenceTemplateResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* details
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public $detail = null;
|
||||
|
||||
/**
|
||||
* array of Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $participants = null;
|
||||
|
||||
/**
|
||||
* returns the details object
|
||||
*
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
|
||||
*/
|
||||
public function getDetail()
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns array with all participants
|
||||
* Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*
|
||||
* @return array of Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
|
||||
*/
|
||||
public function getParticipants()
|
||||
{
|
||||
if ($this->participants instanceof Zend_Service_DeveloperGarden_ConferenceCall_Participant) {
|
||||
$this->participants = array(
|
||||
$this->participants
|
||||
);
|
||||
}
|
||||
return $this->participants;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the participant object if found in the response
|
||||
*
|
||||
* @param string $participantId
|
||||
* @return Zend_Service_DeveloperGarden_ConferenceCall_Participant
|
||||
*/
|
||||
public function getParticipantById($participantId)
|
||||
{
|
||||
$participants = $this->getParticipants();
|
||||
if ($participants !== null) {
|
||||
foreach ($participants as $participant) {
|
||||
if (strcmp($participant->getParticipantId(), $participantId) == 0) {
|
||||
return $participant;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetParticipantStatusResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetParticipantStatusResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetParticipantStatusResponseType
|
||||
*/
|
||||
public $getParticipantStatusResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: GetParticipantStatusResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetParticipantStatusResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $status = null;
|
||||
|
||||
/**
|
||||
* returns the status array
|
||||
* a array of
|
||||
* Zend_Service_DeveloperGarden_ConferenceCall_ParticipantStatus
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: GetRunningConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_GetRunningConferenceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_GetRunningConferenceResponseType
|
||||
*/
|
||||
public $getRunningConferenceResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: GetRunningConferenceResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_GetRunningConferenceResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the conference Id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $conferenceId = null;
|
||||
|
||||
/**
|
||||
* return the conference id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getConferenceId()
|
||||
{
|
||||
return $this->conferenceId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?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: NewParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_NewParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_NewParticipantResponseType
|
||||
*/
|
||||
public $newParticipantResponse = null;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?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: NewParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_ConferenceCall_NewParticipantResponseType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* the participant Id
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $participantId = null;
|
||||
|
||||
/**
|
||||
* return the participant id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParticipantId()
|
||||
{
|
||||
return $this->participantId;
|
||||
}
|
||||
}
|
|
@ -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: RemoveConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_RemoveConferenceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: RemoveConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_RemoveConferenceTemplateParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: RemoveConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_RemoveConferenceTemplateResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: RemoveParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_RemoveParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: UpdateConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_UpdateConferenceResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: UpdateConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_UpdateConferenceTemplateParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: UpdateConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_UpdateConferenceTemplateResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
|
@ -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: UpdateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.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_Response_ConferenceCall_UpdateParticipantResponse
|
||||
extends Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract
|
||||
{
|
||||
/**
|
||||
* response data
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
* @var Zend_Service_DeveloperGarden_Response_ConferenceCall_CCSResponseType
|
||||
*/
|
||||
public $CCSResponse = null;
|
||||
}
|
39
library/Zend/Service/DeveloperGarden/Response/Exception.php
Normal file
39
library/Zend/Service/DeveloperGarden/Response/Exception.php
Normal file
|
@ -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_Response_Exception
|
||||
extends Zend_Service_DeveloperGarden_Exception
|
||||
{
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
<?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: CityType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_IpLocation_CityType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $countryCode = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $cityCode = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $cityName = null;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCountryCode()
|
||||
{
|
||||
return $this->countryCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCityCode()
|
||||
{
|
||||
return $this->cityCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCityName()
|
||||
{
|
||||
return $this->cityName;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
<?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: GeoCoordinatesType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_IpLocation_GeoCoordinatesType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
public $geoLatitude = null;
|
||||
|
||||
/**
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
public $geoLongitude = null;
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getLatitude()
|
||||
{
|
||||
return $this->geoLatitude;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getLongitude()
|
||||
{
|
||||
return $this->geoLongitude;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
<?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: IPAddressLocationType.php 20166 2010-01-09 19:00:17Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_DeveloperGarden_Response_BaseType
|
||||
*/
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/BaseType.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_Response_IpLocation_IPAddressLocationType
|
||||
extends Zend_Service_DeveloperGarden_Response_BaseType
|
||||
{
|
||||
/**
|
||||
* @var Zend_Service_DeveloperGarden_Response_IpLocation_RegionType
|
||||
*/
|
||||
public $isInRegion = null;
|
||||
|
||||
/**
|
||||
* @var Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType
|
||||
*/
|
||||
public $isInGeo = null;
|
||||
|
||||
/**
|
||||
* @var Zend_Service_DeveloperGarden_Response_IpLocation_CityType
|
||||
*/
|
||||
public $isInCity = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $ipType = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $ipAddress = null;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
public $radius = 0;
|
||||
|
||||
/**
|
||||
* @return Zend_Service_DeveloperGarden_Response_IpLocation_RegionType
|
||||
*/
|
||||
public function getRegion()
|
||||
{
|
||||
return $this->isInRegion;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType
|
||||
*/
|
||||
public function getGeoCoordinates()
|
||||
{
|
||||
return $this->isInGeo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Zend_Service_DeveloperGarden_Response_IpLocation_CityType
|
||||
*/
|
||||
public function getCity()
|
||||
{
|
||||
return $this->isInCity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getIpType()
|
||||
{
|
||||
return $this->ipType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIpAddress()
|
||||
{
|
||||
return $this->ipAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getRadius()
|
||||
{
|
||||
return $this->radius;
|
||||
}
|
||||
|
||||
/**
|
||||
* implement parsing
|
||||
*
|
||||
*/
|
||||
public function parse()
|
||||
{
|
||||
parent::parse();
|
||||
if ($this->isInCity === null) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php';
|
||||
$this->isInCity = new Zend_Service_DeveloperGarden_Response_IpLocation_CityType();
|
||||
}
|
||||
|
||||
if ($this->isInRegion === null) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php';
|
||||
$this->isInRegion = new Zend_Service_DeveloperGarden_Response_IpLocation_RegionType();
|
||||
}
|
||||
|
||||
if ($this->isInGeo === null) {
|
||||
require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php';
|
||||
$this->isInGeo = new Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType();
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue