Service/DeveloperGarden/SmsValidation.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: SmsValidation.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Service_DeveloperGarden_SmsValidation

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('getValidatedNumbersResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_GetValidatedNumbersResponse', 'ValidatedNumber' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_ValidatedNumber', 'sendValidationKeywordResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_SendValidationKeywordResponse', 'validateResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_ValidateResponse', 'invalidateResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_InvalidateResponse')

Response, Request Classmapping

Default valuearray('getValidatedNumbersResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_GetValidatedNumbersResponse', 'ValidatedNumber' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_ValidatedNumber', 'sendValidationKeywordResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_SendValidationKeywordResponse', 'validateResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_ValidateResponse', 'invalidateResponse' => 'Zend_Service_DeveloperGarden_Response_SmsValidation_InvalidateResponse')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-sms-validation/services/SmsValidationUserService?wsdl'

wsdl file

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

wsdl file local

Default value'Wsdl/SmsValidationUserService.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
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
methodpublicinValidate(string $number = null) : \Zend_Service_DeveloperGarden_Response_SmsValidation_InvalidateResponse

invalidate the given number

Parameters
Name Type Description
$number string
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_SmsValidation_InvalidateResponse
methodpublicsendValidationKeyword(string $number = null, string $message = null, string $originator = null, integer $account = null) : \Zend_Service_DeveloperGarden_Request_SmsValidation_SendValidationKeywordResponse

this function sends the validation sms to the given number, if message is provided it should have to placeholder: #key# = the validation key #validUntil# = the valid until date

Parameters
Name Type Description
$number string
$message string
$originator string
$account integer
Returns
Type Description
\Zend_Service_DeveloperGarden_Request_SmsValidation_SendValidationKeywordResponse
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
methodpublicvalidate(string $keyword = null, string $number = null) : \Zend_Service_DeveloperGarden_Response_SmsValidation_ValidateResponse

validate the given number with the keyword

Parameters
Name Type Description
$keyword string
$number string
Returns
Type Description
\Zend_Service_DeveloperGarden_Response_SmsValidation_ValidateResponse
Documentation was generated by phpDocumentor 2.0.0a8.