Service/DeveloperGarden/Client/ClientAbstract.php

Show: PublicProtectedPrivateinherited
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 license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
DeveloperGarden  
Version
$Id$  

\Zend_Service_DeveloperGarden_Client_ClientAbstract

Package: Zend_Service\DeveloperGarden
Children
\Zend_Service_DeveloperGarden_LocalSearch
\Zend_Service_DeveloperGarden_SendSms
\Zend_Service_DeveloperGarden_VoiceCall
\Zend_Service_DeveloperGarden_SecurityTokenServer
\Zend_Service_DeveloperGarden_SmsValidation
\Zend_Service_DeveloperGarden_ConferenceCall
\Zend_Service_DeveloperGarden_IpLocation
\Zend_Service_DeveloperGarden_BaseUserService
Author
Marco Kaiser  
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  ENV_PRODUCTION = 1
constants for using with the odg api
>VConstant  ENV_SANDBOX = 2
>VConstant  ENV_MOCK = 3
>VConstant  PARTICIPANT_MUTE_OFF = 0
>VConstant  PARTICIPANT_MUTE_ON = 1
>VConstant  PARTICIPANT_RECALL = 2

Properties

>VPropertyprotectedarray $_classMap = array()
array with options for classmapping
Default valuearray()Details
Type
array
>VPropertyprotectedint $_consts = null
static
array of all possible env types
Default valuenullDetails
Type
int
>VPropertyprotected\Zend_Service_DeveloperGarden_Credential $_credential = null
class with credentials
Default valuenullDetails
Type
\Zend_Service_DeveloperGarden_Credential
>VPropertyprotectedarray $_options = array()
Available options
Default valuearray()Details
Type
array
>VPropertyprotectedstring $_serviceAuthId = 'https://odg.t-online.de'
The service id to generate the auth service token
Default value'https://odg.t-online.de'Details
Type
string
>VPropertyprotectedint $_serviceEnvironment = \Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTION
Variable that holds the Zend_Service_DeveloperGarden env value
Default value\Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTIONDetails
Type
int
>VPropertyprotected\Zend_Soap_Client $_soapClient = null
The internal Soap Client
Default valuenullDetails
Type
\Zend_Soap_Client
>VPropertyprotectedboolean $_useLocalWsdl = true
should we use the local wsdl file?
Default valuetrueDetails
Type
boolean
>VPropertyprotectedstring $_wsdlFile = null
wsdl file
Default valuenullDetails
Type
string
>VPropertyprotectedstring $_wsdlFileLocal = null
the local wsdlFile
Default valuenullDetails
Type
string

Methods

methodpublic__construct(array $options = array()) : void

constructor

Parameters
NameTypeDescription
$optionsarray

Associative array of options

methodprotected_buildConstArray() : null
static

helper method to create const arrays

Returns
TypeDescription
null
methodpubliccheckEnvironment(int $environment) : void
static

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

Parameters
NameTypeDescription
$environmentint
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
methodpubliccheckParticipantAction(int $action) : void
static

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

Parameters
NameTypeDescription
$actionint
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicgetClientOptions() : array

returns an array with configured options for this client

Returns
TypeDescription
array
methodpublicgetCredential() : \Zend_Service_DeveloperGarden_Credential

returns the internal credential object

methodpublicgetEnvironment() : int

returns the current configured environemnt

Returns
TypeDescription
int
methodpublicgetEnvironments() : array
static

returns an array of all available environments

Returns
TypeDescription
array
methodpublicgetOption(string $name) : mixed

get an option value from the internal options object

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
mixed
methodpublicgetParticipantActions() : array
static

returns an array of all available environments

Returns
TypeDescription
array
methodpublicgetSoapClient() : \Zend_Service_DeveloperGarden_Client_Soap
final

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

Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_Soap
Details
Final
 
methodpublicgetWsdl() : string

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

Returns
TypeDescription
string
methodpublicsetEnvironment(int $environment) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

sets new environment

Parameters
NameTypeDescription
$environmentint
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetLocalWsdl(string $wsdlFile = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

sets a new local wsdl file

Parameters
NameTypeDescription
$wsdlFilestring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetOption(string $name, mixed $value) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

Set an option

Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicsetUseLocalWsdl(\boolen $use = true) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

switch to the local wsdl file usage

Parameters
NameTypeDescription
$use\boolen
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
methodpublicsetWsdl(string $wsdlFile = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

sets a new wsdl file

Parameters
NameTypeDescription
$wsdlFilestring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Documentation was generated by phpDocumentor 2.2.0 .