PHP 클래스 Prowl\Message

This class represents a single message to be send by the connector.
파일 보기 프로젝트 열기: xenji/prowlphp 1 사용 예제들

공개 메소드들

메소드 설명
addApiKey ( string $sKey ) : Message Sets the api key.
getApiKeysAsArray ( ) : array[string] Returns all actual api keys as array.
getApiKeysAsString ( ) : string Returns all actual api keys as string
getApplication ( ) : string Returns the application string.
getDescription ( ) : string Returns the description.
getEvent ( ) : string Returns the event.
getFilter ( ) : Prowl\Security\Secureable Returns the filter instance, if set. It might return null when no filter is set.
getFilterCallback ( ) : Closure Getter for the filter closure.
getPriority ( ) : integer Returns the priority as signed integer
getUrl ( ) : string Returns the Url that should be sent with the message
removeApiKey ( string $sKey ) : Message Removes an api key from the receiver list.
setApplication ( string $sApp ) : Message Sets the application.
setDescription ( string $sDescription ) : Message Sets the event description.
setEvent ( string $sEvent ) : Message Sets the event.
setFilter ( Prowl\Security\Secureable $oFilterInstance ) : Message Set a filter instance. If you do not need a filter, use the Passthrough filter.
setFilterCallback ( Closure $cCallback ) : void An alternative way to filter. You can set a closure instead of a filter instance. If both are set, the closure will be preferred.
setPriority ( integer $iPriority ) : Message Sets the proirity (-2 to 2) This method uses a fluent interface.
setUrl ( string $sUrl ) : void Sets an Url to be sent with the message.
validate ( ) : boolean Validates the basic needs of the prowl api.

메소드 상세

addApiKey() 공개 메소드

This method uses a fluent interface.
public addApiKey ( string $sKey ) : Message
$sKey string An valid api key.
리턴 Message

getApiKeysAsArray() 공개 메소드

Returns all actual api keys as array.
public getApiKeysAsArray ( ) : array[string]
리턴 array[string]

getApiKeysAsString() 공개 메소드

Returns all actual api keys as string
public getApiKeysAsString ( ) : string
리턴 string

getApplication() 공개 메소드

Returns the application string.
public getApplication ( ) : string
리턴 string

getDescription() 공개 메소드

Returns the description.
public getDescription ( ) : string
리턴 string

getEvent() 공개 메소드

Returns the event.
public getEvent ( ) : string
리턴 string

getFilter() 공개 메소드

Returns the filter instance, if set. It might return null when no filter is set.
public getFilter ( ) : Prowl\Security\Secureable
리턴 Prowl\Security\Secureable

getFilterCallback() 공개 메소드

Getter for the filter closure.
public getFilterCallback ( ) : Closure
리턴 Closure

getPriority() 공개 메소드

Returns the priority as signed integer
public getPriority ( ) : integer
리턴 integer

getUrl() 공개 메소드

Returns the Url that should be sent with the message
public getUrl ( ) : string
리턴 string

removeApiKey() 공개 메소드

Removes an api key from the receiver list.
public removeApiKey ( string $sKey ) : Message
$sKey string
리턴 Message

setApplication() 공개 메소드

Sets the application.
public setApplication ( string $sApp ) : Message
$sApp string The name of the sending application.
리턴 Message

setDescription() 공개 메소드

Sets the event description.
public setDescription ( string $sDescription ) : Message
$sDescription string The event description.
리턴 Message

setEvent() 공개 메소드

Sets the event.
public setEvent ( string $sEvent ) : Message
$sEvent string The event.
리턴 Message

setFilter() 공개 메소드

Set a filter instance. If you do not need a filter, use the Passthrough filter.
public setFilter ( Prowl\Security\Secureable $oFilterInstance ) : Message
$oFilterInstance Prowl\Security\Secureable
리턴 Message

setFilterCallback() 공개 메소드

An alternative way to filter. You can set a closure instead of a filter instance. If both are set, the closure will be preferred.
public setFilterCallback ( Closure $cCallback ) : void
$cCallback Closure
리턴 void

setPriority() 공개 메소드

Sets the proirity (-2 to 2) This method uses a fluent interface.
public setPriority ( integer $iPriority ) : Message
$iPriority integer An signed integer from -2 to 2
리턴 Message

setUrl() 공개 메소드

Sets an Url to be sent with the message.
public setUrl ( string $sUrl ) : void
$sUrl string
리턴 void

validate() 공개 메소드

Validates the basic needs of the prowl api.
public validate ( ) : boolean
리턴 boolean