\app\framework\Component\EventManagerEventProcessor

EventProcessor is a class that takes EventListeners and Event object and processes the event.

Summary

Methods
Properties
Constants
getInstance()
deleteInstance()
process()
No public properties found
No constants found
serialize()
unserialize()
init()
$wfInstance
N/A
__construct()
__wakeup()
__clone()
orderByPriority()
No private properties found
N/A

Properties

$wfInstance

$wfInstance : 

Type

Methods

getInstance()

getInstance() : $this

Return the current instance.

If instance doesn't exist, a new instance will be created.

Returns

$this

deleteInstance()

deleteInstance() 

Deletes the current singleton instance.

process()

process(array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject  $eventListeners, \app\framework\Component\EventManager\Event  $event, null|string  $resultType = null, null|integer  $limit = null) : array

Process given event

Parameters

array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject $eventListeners

EventListeners that are subscribed to this event

\app\framework\Component\EventManager\Event $event

Event data object

null|string $resultType

Type of event result to enforce (can be any class or interface name)

null|integer $limit

Number of results to return

Returns

array

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

init()

init() 

Override this if you wish to do some stuff once the singleton instance has been created.

__construct()

__construct() 

The constructor is set to private to prevent creating new instances.

If you want to fire a function after the singleton instance is created, just implement 'init' method into your class.

__wakeup()

__wakeup() 

Declare it as private.

__clone()

__clone() 

Declare it as private.

orderByPriority()

orderByPriority(  $eventListeners) : mixed

Parameters

$eventListeners

Returns

mixed