Method | Description | |
---|---|---|
__construct ( boolean $notify = false, string $background_color = 'yellow' ) | Get a new instance of message. | |
getBackgroundColor ( ) : string | Get the background color. | |
getMessage ( ) : string | Get the message. | |
getMessageFormat ( ) : string | Get which format the message is in. | |
getNotification ( ) : boolean | Will this message generate a notification. | |
removeNotification ( ) : void | Set that the message will not generate a notification. | |
setBackgroundColor ( $color ) : void | Set the background color | |
setHtml ( string $html ) : void | Set the message as HTML. | |
setNotification ( ) : void | Set that the message will generate a notification. | |
setText ( string $text ) : void | Set the message as plain text. |
public __construct ( boolean $notify = false, string $background_color = 'yellow' ) | ||
$notify | boolean | Should this message create a notification. |
$background_color | string | Background color of message. |
public getBackgroundColor ( ) : string | ||
return | string |
public getMessageFormat ( ) : string | ||
return | string |
public getNotification ( ) : boolean | ||
return | boolean |
public removeNotification ( ) : void | ||
return | void |
public setBackgroundColor ( $color ) : void | ||
return | void |
public setNotification ( ) : void | ||
return | void |