Метод | Описание | |
---|---|---|
__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 | ||
Результат | string |
public getMessageFormat ( ) : string | ||
Результат | string |
public getNotification ( ) : boolean | ||
Результат | boolean |
public removeNotification ( ) : void | ||
Результат | void |
public setBackgroundColor ( $color ) : void | ||
Результат | void |
public setNotification ( ) : void | ||
Результат | void |