PHP Интерфейс rcrowe\Hippy\Message\MessageInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Get a new instance of message.
public __construct ( boolean $notify = false, string $background_color = 'yellow' )
$notify boolean Should this message create a notification.
$background_color string Background color of message.

getBackgroundColor() публичный Метод

Get the background color.
public getBackgroundColor ( ) : string
Результат string

getMessage() публичный Метод

Get the message.
public getMessage ( ) : string
Результат string

getMessageFormat() публичный Метод

Get which format the message is in.
public getMessageFormat ( ) : string
Результат string

getNotification() публичный Метод

Will this message generate a notification.
public getNotification ( ) : boolean
Результат boolean

removeNotification() публичный Метод

Set that the message will not generate a notification.
public removeNotification ( ) : void
Результат void

setBackgroundColor() публичный Метод

Set the background color
public setBackgroundColor ( $color ) : void
Результат void

setHtml() публичный Метод

Set the message as HTML.
public setHtml ( string $html ) : void
$html string
Результат void

setNotification() публичный Метод

Set that the message will generate a notification.
public setNotification ( ) : void
Результат void

setText() публичный Метод

Set the message as plain text.
public setText ( string $text ) : void
$text string
Результат void