PHP Class bryglen\apnsgcm\ApnsGcm

Inheritance: extends yii\base\Component
Afficher le fichier Open project: bryglen/yii2-apns-gcm

Méthodes publiques

Свойство Type Description
$apns string component name for apns
$errors
$gcm string component name for gcm
$success

Méthodes publiques

Méthode 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 méthode

public getApnsClient ( ) : bryglen\apnsgcm\Apns
Résultat bryglen\apnsgcm\Apns

getGcmClient() public méthode

public getGcmClient ( ) : Gcm
Résultat Gcm

send() public méthode

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
Résultat null | PHP_GCM\Message

sendMulti() public méthode

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

Property Details

$apns public_oe property

component name for apns
public string $apns
Résultat string

$errors public_oe property

public $errors

$gcm public_oe property

component name for gcm
public string $gcm
Résultat string

$success public_oe property

public $success