Mobile/Push/Test/ApnsProxy.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-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

Constant  SERVER_SANDBOX_URI = 0
inherited

Inherited from: \Zend_Mobile_Push_Apns::SERVER_SANDBOX_URI
Const
int apple server uri constants  
Inherited_from
\Zend_Mobile_Push_Apns::SERVER_SANDBOX_URI  
Constant  SERVER_PRODUCTION_URI = 1
Constant  SERVER_FEEDBACK_SANDBOX_URI = 2
Constant  SERVER_FEEDBACK_PRODUCTION_URI = 3

Properties

Propertyprotectedstring $_certificate =
inherited

Certificate

Inherited from: \Zend_Mobile_Push_Apns::$$_certificate
Details
Type
string
Inherited_from
\Zend_Mobile_Push_Apns::$$_certificate  
Propertyprotectedstring $_certificatePassphrase =
inherited

Certificate Passphrase

Inherited from: \Zend_Mobile_Push_Apns::$$_certificatePassphrase
Details
Type
string
Inherited_from
\Zend_Mobile_Push_Apns::$$_certificatePassphrase  
Propertyprotectedint $_currentEnv =
inherited

Current Environment

Inherited from: \Zend_Mobile_Push_Apns::$$_currentEnv
Details
Type
int
Inherited_from
\Zend_Mobile_Push_Apns::$$_currentEnv  
Propertyprotectedboolean $_isConnected = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Mobile_Push_Abstract::$$_isConnected  
Inherited_from
\Zend_Mobile_Push_Apns::$$_isConnected  
Propertyprotectedstring $_readResponse =

Read Response

Details
Type
string
Propertyprotectedarray $_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  
Propertyprotectedresource $_socket =
inherited

Socket

Inherited from: \Zend_Mobile_Push_Apns::$$_socket
Details
Type
resource
Inherited_from
\Zend_Mobile_Push_Apns::$$_socket  
Propertyprotectedmixed $_writeResponse =

Write Response

Details
Type
mixed

Methods

methodprotected_connect(string $uri) : true

Connect

Parameters
Name Type Description
$uri string
Returns
Type Description
true
Throws
Exception Description
\Zend_Mobile_Push_Exception_ServerUnavailable
methodprotected_read(string $length) : string

Return Response

Parameters
Name Type Description
$length string
Returns
Type Description
string
methodprotected_write(string $payload) : int

Write and Return Length

Parameters
Name Type Description
$payload string
Returns
Type Description
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
Name Type Description
$env string
Returns
Type Description
\Zend_Mobile_Push_Abstract
Throws
Exception Description
\Zend_Mobile_Push_Exception
\Zend_Mobile_Push_Exception_ServerUnavailable
methodpublicfeedback() : array
inherited

Feedback

Inherited from: \Zend_Mobile_Push_Apns::feedback()
Returns
Type Description
array array w/ key = token and value = time
Throws
Exception Description
\Zend_Mobile_Push_Exception
\Zend_Mobile_Push_Exception_ServerUnavailable
methodpublicgetCertificate() : string
inherited

Get Certficiate

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

Get Certificate Passphrase

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

Set Certificate

Inherited from: \Zend_Mobile_Push_Apns::setCertificate()
Parameters
Name Type Description
$cert string
Returns
Type Description
\Zend_Mobile_Push_Apns
Throws
Exception Description
\Zend_Mobile_Push_Exception
methodpublicsetCertificatePassphrase(string $passphrase) : \Zend_Mobile_Push_Apns
inherited

Set Certificate Passphrase

Inherited from: \Zend_Mobile_Push_Apns::setCertificatePassphrase()
Parameters
Name Type Description
$passphrase string
Returns
Type Description
\Zend_Mobile_Push_Apns
Throws
Exception Description
\Zend_Mobile_Push_Exception
methodpublicsetOptions(array $options) : \Zend_Mobile_Push_Abstract
Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Mobile_Push_Abstract
Throws
Exception Description
\Zend_Mobile_Push_Exception
methodpublicsetReadResponse(string $str) : \Zend_Mobile_Push_ApnsProxy

Set the Response

Parameters
Name Type Description
$str string
Returns
Type Description
\Zend_Mobile_Push_ApnsProxy
methodpublicsetWriteResponse(mixed $resp) : void

Set the write response

Parameters
Name Type Description
$resp mixed
Documentation was generated by phpDocumentor 2.0.0a8.