$aDM
$aDM : \Gomoob\Pushwoosh\Model\Notification\ADM
An object which contains specific Pushwoosh notification informations for ADM (Amazon Device Messaging).
Class which represents a Pushwoosh notification.
$aDM : \Gomoob\Pushwoosh\Model\Notification\ADM
An object which contains specific Pushwoosh notification informations for ADM (Amazon Device Messaging).
$android : \Gomoob\Pushwoosh\Model\Notification\Android
The object which contains specific Pushwoosh notification informations for Android (Google Cloud Messaging).
$conditions : array
An array of tag conditions, an AND logical operator is applied between two tag conditions, for exemple to send push notifications to subscribers in Brazil that speaks Portuguese language you need to specify condition like this:
"conditions": [["Country", "EQ", "BR"],["Language", "EQ", "pt"]]
A Tag condition is an array like: [tagName, operator, operand], where
Valid operators for String tags:
Valid operators for Integer tags:
operand value. Operand must be an array like: [min_value, max_value].
Valid operators for List tags:
["value 1", "value 2", "value N"].
You cannot use 'filter' and 'conditions' parameters together.
$iOS : \Gomoob\Pushwoosh\Model\Notification\IOS
The object which contains specific Pushwoosh notification informations for IOS (Apple Push Notification Service).
$mac : \Gomoob\Pushwoosh\Model\Notification\Mac
The object which contains specific Pushwoosh notification informations for Mac OS X.
$safari : \Gomoob\Pushwoosh\Model\Notification\Safari
The object which contains specific Pushwoosh notification informations for Safari.
$sendDate : \DateTime
The date when the message has to be sent, if a string is provided it must respect the following formats : - 'now' : To indicate the message has to be sent when "now".
The value of this property is "now" by default.
$platforms : array
Sets the platforms to which ones to send messages, this attribute is an array of integer which can take the following values : - 1 : iOS - 2 : BlackBerry - 3 : Android - 4 : Nokia ASHA - 5 : Windows Phone 7 - 7 : Mac OS X - 8 : Windows 8 - 9 : Amazon - 10: Safari
$wNS : \Gomoob\Pushwoosh\Model\Notification\WNS
The object which contains specific Pushwoosh notification informations for WNS (Windows Notification Service).
$wP : \Gomoob\Pushwoosh\Model\Notification\WP
The object which contains specific Pushwoosh notification informations for WP (Windows Phone).
create() : \Gomoob\Pushwoosh\Model\Notification\Notification
Utility function used to create a new notification.
the new created notification.
addDevice(string $device) : \Gomoob\Pushwoosh\Model\Notification\Notification
Adds a new device Token to the list of device tokens to identify the devices to send the notification to.
string | $device | the new device Token to add. |
this instance.
getADM() : \Gomoob\Pushwoosh\Model\Notification\ADM
Gets the object which contains specific Pushwoosh notification informations for ADM (Amazon Device Messaging).
the object which contains specific Pushwoosh notification
informations for ADM (Amazon Device Messaging).
getAndroid() : \Gomoob\Pushwoosh\Model\Notification\Android
Gets the object which contains specific Pushwoosh notification informations for Android (Google Cloud Messaging).
getConditions() : array
Gets the array of tag conditions, an AND logical operator is applied between two tag conditions, for exemple to sendpush notifications to subscribers in Brazil that speaks Portuguese language you need to specify condition like this:
"conditions": [["Country", "EQ", "BR"],["Language", "EQ", "pt"]]
A Tag condition is an array like: [tagName, operator, operand], where
Valid operators for String tags:
Valid operators for Integer tags:
operand value. Operand must be an array like: [min_value, max_value].
Valid operators for List tags:
["value 1", "value 2", "value N"].
You cannot use 'filter' and 'conditions' parameters together.
the array of tag conditions.
getData() : array
Gets additional data to attach to the notification, use this only if you want to pass custom data to the application (JSON format) or omit this parameter. Please note that iOS push is limited to 256 bytes.
This will be passed as a "u" parameter in the payload.
an array which represents a JSON object.
getIOS() : \Gomoob\Pushwoosh\Model\Notification\IOS
Gets the object which contains specific Pushwoosh notification informations for IOS (Apple Push Notification Service).
the object which contains specific Pushwoosh notification
informations for IOS (Apple Push Notification Service).
getMac() : \Gomoob\Pushwoosh\Model\Notification\Mac
Gets the object which contains specific Pushwoosh notification informations for Mac OS X.
the object which contains specific Pushwoosh notification
informations for Mac OS X.
getPlatforms() : array
Gets the platforms to which ones to send messages, this attribute is an array of integer which can take the following values : - 1 : iOS - 2 : BlackBerry - 3 : Android - 4 : Nokia ASHA - 5 : Windows Phone 7 - 7 : Mac OS X - 8 : Windows 8 - 9 : Amazon - 10: Safari
the platforms where to send push notifications.
getSafari() : \Gomoob\Pushwoosh\Model\Notification\Safari
Gets the object which contains specific Pushwoosh notification informations for Safari.
the object which contains specific Pushwoosh notification
informations for Safari.
getSendDate() : \DateTime
Gets the date when the message has to be sent, if a string is provided it must respect the following formats : - 'now' : To indicate the message has to be sent when "now".
| string the date when the message has to be sent, the returned value is a PHP DateTime or the
string "now".
getWNS() : \Gomoob\Pushwoosh\Model\Notification\WNS
Gets the object which contains specific Pushwoosh notification informations for WNS (Windows Notification Service).
the object which contains specific Pushwoosh notification
informations for WNS (Windows Notification Service).
getWP() : \Gomoob\Pushwoosh\Model\Notification\WP
Gets the object which contains specific Pushwoosh notification informations for WP (Windows Phone).
the object which contains specific Pushwoosh notification
informations for WP (Windows Phone).
setADM(\Gomoob\Pushwoosh\Model\Notification\ADM $aDM) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for ADM (Amazon Device Messaging).
\Gomoob\Pushwoosh\Model\Notification\ADM | $aDM | the object which contains specific Pushwoosh notification
|
this instance.
setAndroid(\Gomoob\Pushwoosh\Model\Notification\Android $android) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for Android (Google Cloud Messaging).
\Gomoob\Pushwoosh\Model\Notification\Android | $android | the object which contains specific Pushwoosh
|
this instance.
setConditions(array $conditions) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the array of tag conditions, an AND logical operator is applied between two tag conditions, for exemple to sendpush notifications to subscribers in Brazil that speaks Portuguese language you need to specify condition like this:
"conditions": [["Country", "EQ", "BR"],["Language", "EQ", "pt"]]
A Tag condition is an array like: [tagName, operator, operand], where
Valid operators for String tags:
Valid operators for Integer tags:
operand value. Operand must be an array like: [min_value, max_value].
Valid operators for List tags:
["value 1", "value 2", "value N"].
You cannot use 'filter' and 'conditions' parameters together.
array | $conditions | the array of tag conditions. |
this instance.
setContent(string $content) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the text push message delivered to the application.
string | $content | the text push message delivered to the application. |
this instance.
setData(array $data) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the additional data to attach to the notification, use this only if you want to pass custom data to the application (JSON format) or omit this parameter. Please note that iOS push is limited to 256 bytes.
This will be passed as a "u" parameter in the payload.
array | $data | the additional data to be passed to the notification. |
this instance.
setDataParameter(string $parameterName, mixed $parameterValue) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets an additional data parameter or overwrites an existing one.
string | $parameterName | the name of the additional data parameter to set. |
mixed | $parameterValue | the value of the additional data parameter to set. This parameter must be compliant
|
this instance.
setDevices(string[] $devices) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the list of device tokens used to identify the devices to send the notification to, this parameter is optional.
string[] | $devices | the list of device tokens used to identify the devices to send the notification to, this
|
this instance.
setFilter(string $filter) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the name of a filter used to select users to which one messages have to be sent.
This parameter is optional.
string | $filter | the name of a filter. |
this instance.
setIOS(\Gomoob\Pushwoosh\Model\Notification\IOS $iOS) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for IOS (Apple Push Notification Service).
\Gomoob\Pushwoosh\Model\Notification\IOS | $iOS | the object which contains specific Pushwoosh notification
|
this instance.
setMac(\Gomoob\Pushwoosh\Model\Notification\Mac $mac) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for Mac OS X.
\Gomoob\Pushwoosh\Model\Notification\Mac | $mac | the object which contains specific Pushwoosh notification
|
this instance.
setPageId(int $pageId) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the HTML page id (created from Application’s HTML Pages). Use this if you want to deliver additional HTML content to the application or omit this parameter.
int | $pageId | the HTML page id to set1. |
this instance.
setPlatforms(array $platforms) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the platforms to which ones to send messages, this attribute is an array of integer which can take the following values : - 1 : iOS - 2 : BlackBerry - 3 : Android - 4 : Nokia ASHA - 5 : Windows Phone 7 - 7 : Mac OS X - 8 : Windows 8 - 9 : Amazon - 10: Safari
array | $platforms | the platforms where to send the push notifications. |
this instance.
setSafari(\Gomoob\Pushwoosh\Model\Notification\Safari $safari) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for Safari.
\Gomoob\Pushwoosh\Model\Notification\Safari | $safari | the object which contains specific Pushwoosh
|
this instance.
setSendDate( $sendDate) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the date when the message has to be sent, if a string is provided it must respect the following formats : - 'now' : To indicate the message has to be sent when "now".
$sendDate |
this instance.
setWNS(\Gomoob\Pushwoosh\Model\Notification\WNS $wNS) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for WNS (Windows Notification Service).
\Gomoob\Pushwoosh\Model\Notification\WNS | $wNS | the object which contains specific Pushwoosh notification
|
this instance.
setWP(\Gomoob\Pushwoosh\Model\Notification\WP $wP) : \Gomoob\Pushwoosh\Model\Notification\Notification
Sets the object which contains specific Pushwoosh notification informations for WP (Windows Phone).
\Gomoob\Pushwoosh\Model\Notification\WP | $wP | the object which contains specific Pushwoosh notification
|
this instance.