PHP 인터페이스 rcrowe\Hippy\Message\MessageInterface

파일 보기 프로젝트 열기: rcrowe/hippy 0 사용 예제들

공개 메소드들

메소드 설명
__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