message
in
implements
JsonSerializable
Uses
jsonSerializeReturnObject
View message object
Table of Contents
TYPE_ERROR | 'error' | |
---|---|---|
TYPE_NOTICE | 'notice' | |
TYPE_NEUTRAL | 'neutral' | |
ICON_ERROR | 'exclamation-triangle' | |
ICON_NOTICE | 'check' | |
ICON_NEUTRAL | 'info-circle' | |
$txt | Message text | string |
$type | Message type | string |
$id | Message id | string |
$icon | Message icon | string |
$webnotify | Use web notification | bool |
__construct() | Constructor | mixed |
getTxt() | Return message text | string |
getType() | Returns message type | string |
getId() | Return message id | string |
getIcon() | Return message icon | string |
Constants
TYPE_ERROR
mixed
$TYPE_ERROR
= 'error'
TYPE_NOTICE
mixed
$TYPE_NOTICE
= 'notice'
TYPE_NEUTRAL
mixed
$TYPE_NEUTRAL
= 'neutral'
ICON_ERROR
mixed
$ICON_ERROR
= 'exclamation-triangle'
ICON_NOTICE
mixed
$ICON_NOTICE
= 'check'
ICON_NEUTRAL
mixed
$ICON_NEUTRAL
= 'info-circle'
Properties
$txt
Message text
private
string
$txt
= ''
$type
Message type
private
string
$type
= ''
$id
Message id
private
string
$id
= ''
$icon
Message icon
private
string
$icon
= ''
$webnotify
Use web notification
private
bool
$webnotify
= false
Methods
__construct()
Constructor
public
__construct(
$txt :
string
, $type :
string
[, $icon :
string
= '' ]
[, $id :
string
= '' ]
[, $webnotify :
bool
= false ]
)
: mixed
Parameters
- $txt : string
- $type : string
- $icon : string = ''
- $id : string = ''
- $webnotify : bool = false
Return values
mixedgetTxt()
Return message text
public
getTxt(
)
: string
Return values
stringgetType()
Returns message type
public
getType(
)
: string
Return values
stringgetId()
Return message id
public
getId(
)
: string
Return values
stringgetIcon()
Return message icon
public
getIcon(
)
: string