50 $this->_sActionLocKey = $sActionLocKey;
74 $this->_sLocKey = $sLocKey;
95 $this->_aLocArgs = $aLocArgs;
123 $this->_sLaunchImage = $sLaunchImage;
143 $aPayload = parent::_getPayload();
145 $aPayload[
'aps'][
'alert'] = array();
147 if (isset($this->_sText) && !isset($this->_sLocKey)) {
148 $aPayload[
'aps'][
'alert'][
'body'] = (string)$this->_sText;
151 if (isset($this->_sActionLocKey)) {
152 $aPayload[
'aps'][
'alert'][
'action-loc-key'] = $this->_sActionLocKey ==
'' ?
153 null : (string)$this->_sActionLocKey;
156 if (isset($this->_sLocKey)) {
157 $aPayload[
'aps'][
'alert'][
'loc-key'] = (string)$this->_sLocKey;
160 if (isset($this->_aLocArgs)) {
164 if (isset($this->_sLaunchImage)) {
165 $aPayload[
'aps'][
'alert'][
'launch-image'] = (string)$this->_sLaunchImage;
void setLocKey(string $sLocKey)
Set the alert-message string in Localizable.strings file for the current localization (which is set b...
string $_sLaunchImage
The filename of an image file in the application bundle.
void setLaunchImage(string $sLaunchImage)
Set the filename of an image file in the application bundle; it may include the extension or omit it...
string getLaunchImage()
Get the filename of an image file in the application bundle.
array _getPayload()
Get the payload dictionary.
array $_aLocArgs
Variable string values to appear in place of the format specifiers in loc-key.
string $_sLocKey
A key to an alert-message string in a Localizable.strings file.
string $_sActionLocKey
The "View" button title.
The Push Notification Custom Message.
void setActionLocKey(string $sActionLocKey= '')
Set the "View" button title.
void setLocArgs(array $aLocArgs)
Set the variable string values to appear in place of the format specifiers in loc-key.
string getActionLocKey()
Get the "View" button title.
string getLocArgs()
Get the variable string values to appear in place of the format specifiers in loc-key.
The Push Notification Message.
string getLocKey()
Get the alert-message string in Localizable.strings file.