◆ __construct()
PushNotification::__construct |
( |
|
$params = array() | ) |
|
Class constructor.
- Parameters
-
- Returns
- void
◆ send()
PushNotification::send |
( |
|
$params = array() | ) |
|
Send notification.
- Parameters
-
- Returns
- boolean result
◆ send_toIOsDevice()
PushNotification::send_toIOsDevice |
( |
|
$params = array() | ) |
|
Send notification to iOS device.
- Parameters
-
- Returns
- boolean result
◆ send_toAndroidDevice()
PushNotification::send_toAndroidDevice |
( |
|
$params = array() | ) |
|
Send notification to Android device.
- Parameters
-
- Returns
- boolean result
◆ send_toWindowsPhoneDevice()
PushNotification::send_toWindowsPhoneDevice |
( |
|
$params = array() | ) |
|
send notification to Windows Phone device
- Parameters
-
- Returns
- boolean result
◆ get_lastErrorCode()
PushNotification::get_lastErrorCode |
( |
| ) |
|
Return last error code.
- Returns
- integer
◆ get_lastErrorMessage()
PushNotification::get_lastErrorMessage |
( |
| ) |
|
Return last error message.
- Returns
- string
◆ _send_usingCurl()
PushNotification::_send_usingCurl |
( |
|
$url, |
|
|
|
$headers, |
|
|
|
$fields |
|
) |
| |
|
private |
Send notification through curl
- Parameters
-
string | $url | |
array | $headers | |
array | $fields | |
- Returns
- boolean result
◆ _define_error()
PushNotification::_define_error |
( |
|
$error = 0 , |
|
|
|
$detail = '' |
|
) |
| |
|
private |
Define last error.
- Parameters
-
integer | $error | |
string | $detail | |
- Returns
- void
◆ $params
array PushNotification::$params |
|
private |
Initial value:= array(
'devicePlatform' => 0,
'deviceIdentifier' => '',
'title' => '',
'message' => '',
'badge' => 0,
'sound' => 'default',
'vibrate' => 1,
'delay' => 2,
'customActionButton' => '',
'privateAppData' => array(),
'APIAccessKey' => '',
'mode' => '',
'certificateLocation' => '',
'certificatePassphrase' => '',
)
Notification parameters.
◆ $_lastError
integer PushNotification::$_lastError = 0 |
|
private |
◆ $_lastErrorDetail
string PushNotification::$_lastErrorDetail |
|
private |
The documentation for this class was generated from the following file: