Mobile/Push/Message/Apns.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
Zend_Mobile_Push  
Version
$Id$  

\Zend_Mobile_Push_Message_Apns

Package: Zend\Mobile\Zend\Mobile\Push

Apns Message

Parent(s)
\Zend_Mobile_Push_Message_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id$  

Properties

Propertyprotectedarray $_alert = array()

Alert

Default valuearray()Details
Type
array
Propertyprotectedint $_badge =

Badge Number

Details
Type
int
Propertyprotectedarray $_custom = array()

Custom Data

Default valuearray()Details
Type
array
Propertyprotectedint $_expire =

Expiration

Details
Type
int
Propertyprotected\scalar $_id =
inherited

Id

Inherited from: \Zend_Mobile_Push_Message_Abstract::$$_id
Details
Type
\scalar
Inherited_from
\Zend_Mobile_Push_Message_Abstract::$$_id  
Propertyprotectedstring $_sound = 'default'

Sound

Default value'default'Details
Type
string
Propertyprotectedstring $_token =
inherited

Token

Inherited from: \Zend_Mobile_Push_Message_Abstract::$$_token
Details
Type
string
Inherited_from
\Zend_Mobile_Push_Message_Abstract::$$_token  

Methods

methodpublicaddCustomData(string $key, mixed $value) : \Zend_Mobile_Push_Message_Apns

Add Custom Data

Parameters
Name Type Description
$key string
$value mixed
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicclearCustomData() : \throw

Clear Custom Data

Returns
Type Description
\throw new Zend_Mobile_Push_Message_Apns
methodpublicgetAlert() : array

Get Alert

Returns
Type Description
array
methodpublicgetBadge() : int

Get Badge

Returns
Type Description
int
methodpublicgetCustomData() : array

Get Custom Data

Returns
Type Description
array
methodpublicgetExpire() : int

Get Expire

Returns
Type Description
int
methodpublicgetId() : \scalar
inherited

Get Message ID

Inherited from: \Zend_Mobile_Push_Message_Abstract::getId()
Returns
Type Description
\scalar
methodpublicgetSound() : string

Get Sound

Returns
Type Description
string
methodpublicgetToken() : string
inherited

Get Token

Inherited from: \Zend_Mobile_Push_Message_Abstract::getToken()
Returns
Type Description
string
methodpublicsetAlert(string $text, string $actionLocKey = null, string $locKey = null, array $locArgs = null, string $launchImage = null) : \Zend_Mobile_Push_Message_Apns

Set Alert

Parameters
Name Type Description
$text string
$actionLocKey string
$locKey string
$locArgs array
$launchImage string
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
methodpublicsetBadge(int $badge) : \Zend_Mobile_Push_Message_Apns

Set Badge

Parameters
Name Type Description
$badge int
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicsetCustomData( $array) : \Zend_Mobile_Push_Message_Apns

Set Custom Data

Parameters
Name Type Description
$array
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicsetExpire(int $expire) : \Zend_Mobile_Push_Message_Apns

Set Expire

Parameters
Name Type Description
$expire int
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicsetId(\scalar $id) : \Zend_Mobile_Push_Message_Abstract
inherited

Set Message ID

Inherited from: \Zend_Mobile_Push_Message_Abstract::setId()
Parameters
Name Type Description
$id \scalar
Returns
Type Description
\Zend_Mobile_Push_Message_Abstract
Throws
Exception Description
\Exception
methodpublicsetOptions(array $options) : \Zend_Mobile_Push_Message_Abstract
inherited

Set Options

Inherited from: \Zend_Mobile_Push_Message_Abstract::setOptions()
Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Mobile_Push_Message_Abstract
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicsetSound(string $sound) : \Zend_Mobile_Push_Message_Apns

Set Sound

Parameters
Name Type Description
$sound string
Returns
Type Description
\Zend_Mobile_Push_Message_Apns
Throws
Exception Description
\Zend_Mobile_Push_Message_Exception
methodpublicsetToken(string $token) : \Zend_Mobile_Push_Message_Abstract
inherited

Set Token

Inherited from: \Zend_Mobile_Push_Message_Abstract::setToken()
Parameters
Name Type Description
$token string
Returns
Type Description
\Zend_Mobile_Push_Message_Abstract
methodpublicvalidate() : boolean

Validate this is a proper Apns message

Returns
Type Description
boolean
Documentation was generated by phpDocumentor 2.0.0a8.