Service/DeveloperGarden/VoiceCall.php

Show: inherited
Table of Contents

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 [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
DeveloperGarden  
Version
$Id: VoiceCall.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Service_DeveloperGarden_VoiceCall

Package: Zend\Service\DeveloperGarden

Parent(s)
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Author
Marco Kaiser  
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  ENV_PRODUCTION = 1
inherited

constants for using with the odg api

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTION

Properties

Propertyprotectedarray $_classMap = array('newCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse', 'newCallSequencedResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse', 'tearDownCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse', 'callStatusResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse', 'callStatus2Response' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatus2Response')

Response, Request Classmapping

Default valuearray('newCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse', 'newCallSequencedResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse', 'tearDownCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse', 'callStatusResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse', 'callStatus2Response' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatus2Response')Details
Type
array
Propertyprotectedint $_consts = null
staticinherited

array of all possible env types

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_consts
Default valuenullDetails
Type
int
Inherited_from
\Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_consts  
Propertyprotected\Zend_Service_DeveloperGarden_Credential $_credential = null
inherited

class with credentials

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_credential
Propertyprotectedarray $_options = array()
inherited

Available options

<p>available options</p>Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_options
Default valuearray()Details
Type
array
Inherited_from
\Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_options  
Propertyprotectedstring $_serviceAuthId = 'https://odg.t-online.de'
inherited

The service id to generate the auth service token

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_serviceAuthId
Default value'https://odg.t-online.de'Details
Type
string
Inherited_from
\Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_serviceAuthId  
Propertyprotectedint $_serviceEnvironment = \Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTION
inherited

Variable that holds the Zend_Service_DeveloperGarden env value

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_serviceEnvironment
Default value\Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTIONDetails
Type
int
Inherited_from
\Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_serviceEnvironment  
Propertyprotected\Zend_Soap_Client $_soapClient = null
inherited

The internal Soap Client

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_soapClient
Propertyprotectedboolean $_useLocalWsdl = true
inherited

should we use the local wsdl file?

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_useLocalWsdl
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Service_DeveloperGarden_Client_ClientAbstract::$$_useLocalWsdl  
Propertyprotectedstring $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-voicebutler/services/VoiceButlerService?wsdl'

wsdl file

Default value'https://gateway.developer.telekom.com/p3gw-mod-odg-voicebutler/services/VoiceButlerService?wsdl'Details
Type
string
Propertyprotectedstring $_wsdlFileLocal = 'Wsdl/VoiceButlerService.wsdl'

wsdl file local

Default value'Wsdl/VoiceButlerService.wsdl'Details
Type
string

Methods

methodpublic__construct(array $options = array()) : void
Parameters
Name Type Description
$options array

Associative array of options

methodprotected_buildConstArray() : null
staticinherited

helper method to create const arrays

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::_buildConstArray()
Returns
Type Description
null
methodpubliccallStatus(string $sessionId, integer $keepAlive = null) : \Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse

checks the callStatus and updates the keepAlive if provided

Parameters
Name Type Description
$sessionId string
$keepAlive integer
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
methodpubliccheckEnvironment(int $environment) : void
staticinherited

checks if the given environemnt is valid otherwise it @throws Zend_Service_DeveloperGarden_Client_Exception

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::checkEnvironment()
Parameters
Name Type Description
$environment int
Throws
Exception Description
\Zend_Service_DeveloperGarden_Client_Exception
methodpubliccheckParticipantAction(int $action) : void
staticinherited

checks if the given action is valid otherwise it @throws Zend_Service_DeveloperGarden_Exception

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::checkParticipantAction()
Parameters
Name Type Description
$action int
Throws
Exception Description
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicgetClientOptions() : array
inherited

returns an array with configured options for this client

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getClientOptions()
Returns
Type Description
array
methodpublicgetCredential() : \Zend_Service_DeveloperGarden_Credential
inherited

returns the internal credential object

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getCredential()
Returns
Type Description
\Zend_Service_DeveloperGarden_Credential
methodpublicgetEnvironment() : int
inherited

returns the current configured environemnt

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getEnvironment()
Returns
Type Description
int
methodpublicgetEnvironments() : array
staticinherited

returns an array of all available environments

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getEnvironments()
Returns
Type Description
array
methodpublicgetOption(string $name) : mixed
inherited

get an option value from the internal options object

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getOption()
Parameters
Name Type Description
$name string
Returns
Type Description
mixed
methodpublicgetParticipantActions() : array
staticinherited

returns an array of all available environments

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getParticipantActions()
Returns
Type Description
array
methodpublicgetSoapClient() : \Zend_Service_DeveloperGarden_Client_Soap
finalinherited

returns the internal soap client if not allready exists we create an instance of Zend_Soap_Client

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getSoapClient()
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_Soap
Details
Final
 
methodpublicgetWsdl() : string
inherited

returns the wsdl file path, a uri or the local path

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::getWsdl()
Returns
Type Description
string
methodpublicnewCall(string $aNumber, string $bNumber, integer $expiration, integer $maxDuration, integer $account = null, boolean $privacyA = null, boolean $privacyB = null, string $greeter = null) : \Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse

init a new call with the given params

Parameters
Name Type Description
$aNumber string
$bNumber string
$expiration integer
$maxDuration integer
$account integer
$privacyA boolean
$privacyB boolean
$greeter string
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse
methodpublicnewCallSequenced(string $aNumber, array $bNumber, integer $expiration, integer $maxDuration, integer $maxWait, integer $account = null, boolean $privacyA = null, boolean $privacyB = null, string $greeter = null) : \Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse

init a new call with the given params but specially here, you can define a set of numbers to be called if the first number isnt reachable (ie: bNumber = +4930-111111,+4930-222222,+4930-333333)

Parameters
Name Type Description
$aNumber string
$bNumber array
$expiration integer
$maxDuration integer
$maxWait integer
$account integer
$privacyA boolean
$privacyB boolean
$greeter string
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse
Throws
Exception Description
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicsetEnvironment(int $environment) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
inherited

sets new environment

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::setEnvironment()
Parameters
Name Type Description
$environment int
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetLocalWsdl(string $wsdlFile = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
inherited

sets a new local wsdl file

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::setLocalWsdl()
Parameters
Name Type Description
$wsdlFile string
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetOption(string $name, mixed $value) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
Parameters
Name Type Description
$name string
$value mixed
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Throws
Exception Description
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicsetUseLocalWsdl(\boolen $use = true) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
inherited

switch to the local wsdl file usage

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::setUseLocalWsdl()
Parameters
Name Type Description
$use \boolen
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetWsdl(string $wsdlFile = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
inherited

sets a new wsdl file

Inherited from: \Zend_Service_DeveloperGarden_Client_ClientAbstract::setWsdl()
Parameters
Name Type Description
$wsdlFile string
Returns
Type Description
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublictearDownCall(string $sessionId) : \Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse

This tear down the call with the given sessionId

Parameters
Name Type Description
$sessionId string
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse
Documentation was generated by phpDocumentor 2.0.0a8.