Apns Test Proxy This class is utilized for unit testing purposes

category Zend
package Zend_Mobile
subpackage Push
inherited_from \Zend_Mobile_Push_Apns

 Methods

Close the Connection to the Push Server

close() : void
Inherited
inherited_from \Zend_Mobile_Push_Interface::close()

Connect to the Push Server

connect() : \Zend_Mobile_Push_Abstract
Inherited
inherited_from \Zend_Mobile_Push_Interface::connect()

Returns

\Zend_Mobile_Push_Abstract

Feedback

feedback() : array
Inherited

Exceptions

\Zend_Mobile_Push_Exception
\Zend_Mobile_Push_Exception_ServerUnavailable

Returns

arrayarray w/ key = token and value = time

Get Certficiate

getCertificate() : string
Inherited

Returns

string

Get Certificate Passphrase

getCertificatePassphrase() : string
Inherited

Returns

string

Is Connected

isConnected() : boolean
Inherited

Returns

boolean

Send a Push Message

send(\Zend_Mobile_Push_Message_Abstract $message) : boolean
Inherited
inherited_from \Zend_Mobile_Push_Interface::send()

Parameters

$message

\Zend_Mobile_Push_Message_Abstract

Exceptions

\DomainException

Returns

boolean

Set Certificate

setCertificate(string $cert) : \Zend_Mobile_Push_Apns
Inherited

Parameters

$cert

string

Exceptions

\Zend_Mobile_Push_Exception

Returns

\Zend_Mobile_Push_Apns

Set Certificate Passphrase

setCertificatePassphrase(string $passphrase) : \Zend_Mobile_Push_Apns
Inherited

Parameters

$passphrase

string

Exceptions

\Zend_Mobile_Push_Exception

Returns

\Zend_Mobile_Push_Apns

Set Options

setOptions(array $options) : \Zend_Mobile_Push_Abstract
Inherited
inherited_from \Zend_Mobile_Push_Interface::setOptions()

Parameters

$options

array

Exceptions

\Zend_Mobile_Push_Exception

Returns

\Zend_Mobile_Push_Abstract

Set the Response

setReadResponse(string $str) 

Parameters

$str

string

Set the write response

setWriteResponse(mixed $resp) : void

Parameters

$resp

mixed

Connect

_connect(string $uri) : true
inherited_from \Zend_Mobile_Push_Apns::_connect()

Parameters

$uri

Returns

true

Connect to Socket

_connect(string $uri) : boolean
Inherited

Parameters

$uri

string

Exceptions

\Zend_Mobile_Push_Exception_ServerUnavailable

Returns

boolean

Return Response

_read(string $length) : string
inherited_from \Zend_Mobile_Push_Apns::_read()

Parameters

$length

string

Returns

string

Read from the Socket Server

_read(integer $length) : string
Inherited

Parameters

$length

integer

Returns

string

Write and Return Length

_write(string $payload) : integer
inherited_from \Zend_Mobile_Push_Apns::_write()

Parameters

$payload

string

Returns

integer

Write to the Socket Server

_write(string $payload) : integer
Inherited

Parameters

$payload

string

Returns

integer

 Properties

 

Certificate

$_certificate : string

Default

 

Certificate Passphrase

$_certificatePassphrase : string

Default

 

Current Environment

$_currentEnv : integer

Default

 

Is Connected

$_isConnected : boolean

Default

false
 

Read Response

$_readResponse : string

Default

 

Apple Server URI's

$_serverUriList : array

Default

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')
 

Socket

$_socket : resource

Default

 

Write Response

$_writeResponse : mixed

Default

 Constants

 

SERVER_FEEDBACK_PRODUCTION_URI

SERVER_FEEDBACK_PRODUCTION_URI = 3 
 

SERVER_FEEDBACK_SANDBOX_URI

SERVER_FEEDBACK_SANDBOX_URI = 2 
 

SERVER_PRODUCTION_URI

SERVER_PRODUCTION_URI = 1 
 

SERVER_SANDBOX_URI

SERVER_SANDBOX_URI = 0 
const int apple server uri constants