PHP 클래스 rcrowe\Hippy\Facade

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

보호된 프로퍼티들

프로퍼티 타입 설명
$client Client
$queue Queue

공개 메소드들

메소드 설명
add ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void Add a plain text message to the queue.
addHtml ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void Add a html message to the queue.
go ( ) : void Send all messages in the queue.
html ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void Send a html message.
init ( string $token, string | integer $room, string $from, rcrowe\Hippy\Transport\TransportInterface $transport = null ) Initialise the facade. Must be called first.
text ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void Send a plain text message.

메소드 상세

add() 공개 정적인 메소드

Add a plain text message to the queue.
public static add ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void
$msg string
$notify boolean
$background string
리턴 void

addHtml() 공개 정적인 메소드

Add a html message to the queue.
public static addHtml ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void
$msg string
$notify boolean
$background string
리턴 void

go() 공개 정적인 메소드

Send all messages in the queue.
public static go ( ) : void
리턴 void

html() 공개 정적인 메소드

Send a html message.
public static html ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void
$msg string
$notify boolean
$background string
리턴 void

init() 공개 정적인 메소드

Initialise the facade. Must be called first.
public static init ( string $token, string | integer $room, string $from, rcrowe\Hippy\Transport\TransportInterface $transport = null )
$token string API token.
$room string | integer Room to send message to.
$from string Who the message is from.
$transport rcrowe\Hippy\Transport\TransportInterface

text() 공개 정적인 메소드

Send a plain text message.
public static text ( string $msg, boolean $notify = false, string $background = Message::BACKGROUND_YELLOW ) : void
$msg string
$notify boolean
$background string
리턴 void

프로퍼티 상세

$client 보호되어 있는 정적으로 프로퍼티

protected static Client,rcrowe\Hippy $client
리턴 Client

$queue 보호되어 있는 정적으로 프로퍼티

protected static Queue,rcrowe\Hippy $queue
리턴 Queue