Mobile/Push/Test/ApnsProxy.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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Mobile  
Subpackage
Push  
Version
$Id $  

\Zend_Mobile_Push_Test_ApnsProxy

Package: Zend\Mobile\Push
Apns Test Proxy This class is utilized for unit testing purposes
Parent(s)
\Zend_Mobile_Push_Apns < \Zend_Mobile_Push_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
Version
$Id$  

Constants

>VConstant  SERVER_SANDBOX_URI = 0
Const
int apple server uri constants  
Inherited_from
\Zend_Mobile_Push_Apns::SERVER_SANDBOX_URI  
>VConstant  SERVER_PRODUCTION_URI = 1
>VConstant  SERVER_FEEDBACK_SANDBOX_URI = 2
>VConstant  SERVER_FEEDBACK_PRODUCTION_URI = 3

Properties

>VPropertyprotectedstring $_certificate
inherited
Certificate
Inherited from: \Zend_Mobile_Push_Apns::$$_certificate
Details
Type
string
Inherited_from
\Zend_Mobile_Push_Apns::$$_certificate  
>VPropertyprotectedstring $_certificatePassphrase
inherited
Certificate Passphrase
Inherited from: \Zend_Mobile_Push_Apns::$$_certificatePassphrase
Details
Type
string
Inherited_from
\Zend_Mobile_Push_Apns::$$_certificatePassphrase  
>VPropertyprotectedint $_currentEnv
inherited
Current Environment
Inherited from: \Zend_Mobile_Push_Apns::$$_currentEnv
Details
Type
int
Inherited_from
\Zend_Mobile_Push_Apns::$$_currentEnv  
>VPropertyprotectedboolean $_isConnected = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Mobile_Push_Abstract::$$_isConnected  
Inherited_from
\Zend_Mobile_Push_Apns::$$_isConnected  
>VPropertyprotectedstring $_readResponse
Read Response
Details
Type
string
>VPropertyprotectedarray $_serverUriList = array('ssl://gateway.sandbox.push.apple.com:2195', 'ssl://gateway.push.apple.com:2195', 'ssl://feedback.sandbox.push.apple.com:2196', 'ssl://feedback.push.apple.com:2196')
inherited
Apple Server URI's
Inherited from: \Zend_Mobile_Push_Apns::$$_serverUriList
Default valuearray('ssl://gateway.sandbox.push.apple.com:2195', 'ssl://gateway.push.apple.com:2195', 'ssl://feedback.sandbox.push.apple.com:2196', 'ssl://feedback.push.apple.com:2196')Details
Type
array
Inherited_from
\Zend_Mobile_Push_Apns::$$_serverUriList  
>VPropertyprotectedresource $_socket
inherited
Socket
Inherited from: \Zend_Mobile_Push_Apns::$$_socket
Details
Type
resource
Inherited_from
\Zend_Mobile_Push_Apns::$$_socket  
>VPropertyprotectedmixed $_writeResponse
Write Response
Details
Type
mixed

Methods

methodprotected_connect(string $uri) : true

Connect

Parameters
NameTypeDescription
$uristring
Returns
TypeDescription
true
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception_ServerUnavailable
methodprotected_read(string $length) : string

Return Response

Parameters
NameTypeDescription
$lengthstring
Returns
TypeDescription
string
methodprotected_write(string $payload) : int

Write and Return Length

Parameters
NameTypeDescription
$payloadstring
Returns
TypeDescription
int
methodpublicclose() : void
inherited

Close Connection

Inherited from: \Zend_Mobile_Push_Apns::close()
methodpublicconnect(string $env = self::SERVER_PRODUCTION_URI) : \Zend_Mobile_Push_Abstract
inherited

Connect to the Push Server

Inherited from: \Zend_Mobile_Push_Apns::connect()
Parameters
NameTypeDescription
$envstring
Returns
TypeDescription
\Zend_Mobile_Push_Abstract
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
\Zend_Mobile_Push_Exception_ServerUnavailable
methodpublicfeedback() : array
inherited

Feedback

Inherited from: \Zend_Mobile_Push_Apns::feedback()
Returns
TypeDescription
arrayarray w/ key = token and value = time
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
\Zend_Mobile_Push_Exception_ServerUnavailable
methodpublicgetCertificate() : string
inherited

Get Certficiate

Inherited from: \Zend_Mobile_Push_Apns::getCertificate()
Returns
TypeDescription
string
methodpublicgetCertificatePassphrase() : string
inherited

Get Certificate Passphrase

Inherited from: \Zend_Mobile_Push_Apns::getCertificatePassphrase()
Returns
TypeDescription
string
methodpublicisConnected() : boolean
Returns
TypeDescription
boolean
methodpublicsetCertificate(string $cert) : \Zend_Mobile_Push_Apns
inherited

Set Certificate

Inherited from: \Zend_Mobile_Push_Apns::setCertificate()
Parameters
NameTypeDescription
$certstring
Returns
TypeDescription
\Zend_Mobile_Push_Apns
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
methodpublicsetCertificatePassphrase(string $passphrase) : \Zend_Mobile_Push_Apns
inherited

Set Certificate Passphrase

Inherited from: \Zend_Mobile_Push_Apns::setCertificatePassphrase()
Parameters
NameTypeDescription
$passphrasestring
Returns
TypeDescription
\Zend_Mobile_Push_Apns
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
methodpublicsetOptions(array $options) : \Zend_Mobile_Push_Abstract
Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Mobile_Push_Abstract
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
methodpublicsetReadResponse(string $str) : \Zend_Mobile_Push_ApnsProxy

Set the Response

Parameters
NameTypeDescription
$strstring
Returns
TypeDescription
\Zend_Mobile_Push_ApnsProxy
methodpublicsetWriteResponse(mixed $resp) : void

Set the write response

Parameters
NameTypeDescription
$respmixed
Documentation was generated by phpDocumentor 2.0.0a12.