Метод | Описание | |
---|---|---|
getHandler ( ) : mixed | Get handler object | |
getMethod ( ) : string | Get handler method | |
getPriority ( ) : integer | Get listener priority | |
handler ( $handler ) | Set handler for event. Can be a callable, class name or class instance. | |
method ( string $method ) |
Set method to be called on handler. If not set, default method will be called: handle(Event $event) |
|
priority ( $priority ) |
Set listener priority between 101 and 999. Default priority is 101. Bigger values mean higher listener priority, and will be executed first. |
public getPriority ( ) : integer | ||
Результат | integer |
public handler ( $handler ) | ||
$handler |
handle(Event $event)
public priority ( $priority ) | ||
$priority |