PHP Class bryglen\apnsgcm\ApnsGcm

Inheritance: extends yii\base\Component
Show file Open project: bryglen/yii2-apns-gcm

Public Properties

Property Type Description
$apns string component name for apns
$errors
$gcm string component name for gcm
$success

Public Methods

Method Description
getApnsClient ( ) : bryglen\apnsgcm\Apns
getGcmClient ( ) : Gcm
send ( $type, $token, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message send a push notification depending on type
sendMulti ( $type, $tokens, $text, $payloadData = [], $args = [] )

Method Details

getApnsClient() public method

public getApnsClient ( ) : bryglen\apnsgcm\Apns
return bryglen\apnsgcm\Apns

getGcmClient() public method

public getGcmClient ( ) : Gcm
return Gcm

send() public method

send a push notification depending on type
public send ( $type, $token, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message
$type
$token
$text
$payloadData array
$args array
return null | PHP_GCM\Message

sendMulti() public method

public sendMulti ( $type, $tokens, $text, $payloadData = [], $args = [] )

Property Details

$apns public property

component name for apns
public string $apns
return string

$errors public property

public $errors

$gcm public property

component name for gcm
public string $gcm
return string

$success public property

public $success