Mobile/Push/Gcm.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-2014 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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id$  

Constants

>VConstant  SERVER_URI = 'https://android.googleapis.com/gcm/send'
Const
string Server URI  

Properties

>VPropertyprotectedstring $_apiKey
API Key
Details
Type
string
>VPropertyprotected\Client $_httpClient
Http Client
Details
Type
\Client

Methods

methodpublicgetApiKey() : string

Get API Key

Returns
TypeDescription
string
methodpublicgetHttpClient() : \Zend_Http_Client

Get Http Client

Returns
TypeDescription
\Zend_Http_Client
methodpublicsend(\Zend_Mobile_Push_Message_Gcm $message) : \Zend_Mobile_Push_Response_Gcm

Send Message

Parameters
NameTypeDescription
$message\Zend_Mobile_Push_Message_Gcm
Returns
TypeDescription
\Zend_Mobile_Push_Response_Gcm
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
methodpublicsetApiKey(string $key) : \Zend_Mobile_Push_Gcm

Set API Key

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
\Zend_Mobile_Push_Gcm
Throws
ExceptionDescription
\Zend_Mobile_Push_Exception
methodpublicsetHttpClient( $client) : \Zend_Mobile_Push_Gcm

Set Http Client

Parameters
NameTypeDescription
$client
Returns
TypeDescription
\Zend_Mobile_Push_Gcm
Documentation was generated by phpDocumentor 2.2.0 .