\app\framework\Component\EventManagerEventListener

Summary

Methods
Properties
Constants
getHandler()
getMethod()
getPriority()
handler()
priority()
method()
No public properties found
No constants found
serialize()
unserialize()
No protected properties found
N/A
No private methods found
$handler
$method
$priority
N/A

Properties

$handler

$handler : 

Type

$method

$method : 

Type

$priority

$priority : 

Type

Methods

getHandler()

getHandler() : null

Returns

null

getMethod()

getMethod() : string

Returns

string

getPriority()

getPriority() : integer

Returns

integer

handler()

handler(  $handler) : $this

Set handler for event. Can be a callable, class name or class instance.

Parameters

$handler

Throws

\app\framework\Component\EventManager\EventManagerException

Returns

$this

priority()

priority(  $priority) : $this

Set listener priority between 101 and 999.<br /> Default priority is 101.<br /> Bigger values mean higher listener priority, and will be executed first.

Parameters

$priority

Throws

\app\framework\Component\EventManager\EventManagerException

Returns

$this

method()

method(string  $method) : $this

Set method to be called on handler.<br /> If not set, default method will be called: <code>handle(Event $event)</code>

Parameters

string $method

Method to call on handler

Throws

\app\framework\Component\EventManager\EventManagerException

Returns

$this

serialize()

serialize(  $value) : string

Serializes the given value.

Parameters

$value

Returns

string

unserialize()

unserialize(string  $string) : array|mixed

Unserializes the given string and returns the array.

Parameters

string $string

String to serialize.

Returns

array|mixed