Mobile/Push/Gcm.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_Gcm

Package: Zend\Mobile\Zend\Mobile\Push

GCM Push

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

Constants

Constant  SERVER_URI = 'https://android.googleapis.com/gcm/send'

Const
string Server URI  

Properties

Propertyprotectedstring $_apiKey =

API Key

Details
Type
string
Propertyprotected\Client $_httpClient =

Http Client

Details
Type
\Client
Propertyprotectedboolean $_isConnected = false
inherited

Is Connected

Inherited from: \Zend_Mobile_Push_Abstract::$$_isConnected
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Mobile_Push_Abstract::$$_isConnected  

Methods

methodpublicclose() : void
inherited

Close the Connection to the Push Server

Inherited from: \Zend_Mobile_Push_Abstract::close()
methodpublicconnect() : \Zend_Mobile_Push_Abstract
inherited

Connect to the Push Server

Inherited from: \Zend_Mobile_Push_Abstract::connect()
Returns
Type Description
\Zend_Mobile_Push_Abstract
methodpublicgetApiKey() : string

Get API Key

Returns
Type Description
string
methodpublicgetHttpClient() : \Zend_Http_Client

Get Http Client

Returns
Type Description
\Zend_Http_Client
methodpublicisConnected() : boolean
inherited

Is Connected

Inherited from: \Zend_Mobile_Push_Abstract::isConnected()
Returns
Type Description
boolean
methodpublicsend(\Zend_Mobile_Push_Message_Gcm $message) : \Zend_Mobile_Push_Response_Gcm

Send Message

Parameters
Name Type Description
$message \Zend_Mobile_Push_Message_Gcm
Returns
Type Description
\Zend_Mobile_Push_Response_Gcm
Throws
Exception Description
\Zend_Mobile_Push_Exception
methodpublicsetApiKey(string $key) : \Zend_Mobile_Push_Gcm

Set API Key

Parameters
Name Type Description
$key string
Returns
Type Description
\Zend_Mobile_Push_Gcm
Throws
Exception Description
\Zend_Mobile_Push_Exception
methodpublicsetHttpClient( $client) : \Zend_Mobile_Push_Gcm

Set Http Client

Parameters
Name Type Description
$client
Returns
Type Description
\Zend_Mobile_Push_Gcm
methodpublicsetOptions(array $options) : \Zend_Mobile_Push_Abstract
inherited

Set Options

Inherited from: \Zend_Mobile_Push_Abstract::setOptions()
Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Mobile_Push_Abstract
Throws
Exception Description
\Zend_Mobile_Push_Exception
Documentation was generated by phpDocumentor 2.0.0a8.