HandlerListManager
in package
Table of Contents
- $allLists : array<string|int, HandlerList>
- $globalInstance : HandlerListManager|null
- getAll() : array<string|int, HandlerList>
- getListFor() : HandlerList
- Returns the HandlerList for listeners that explicitly handle this event.
- global() : self
- unregisterAll() : void
- Unregisters all the listeners If a Plugin or Listener is passed, all the listeners with that object will be removed
- isValidClass() : bool
- resolveNearestHandleableParent() : ReflectionClass|null
Properties
$allLists
private
array<string|int, HandlerList>
$allLists
= []
classname => HandlerList
$globalInstance
private
static HandlerListManager|null
$globalInstance
= null
Methods
getAll()
public
getAll() : array<string|int, HandlerList>
Return values
array<string|int, HandlerList> —getListFor()
Returns the HandlerList for listeners that explicitly handle this event.
public
getListFor(string $event) : HandlerList
Calling this method also lazily initializes the $classMap inheritance tree of handler lists.
Parameters
- $event : string
Tags
Return values
HandlerList —global()
public
static global() : self
Return values
self —unregisterAll()
Unregisters all the listeners If a Plugin or Listener is passed, all the listeners with that object will be removed
public
unregisterAll([Plugin|Listener|RegisteredListener|null $object = null ]) : void
Parameters
- $object : Plugin|Listener|RegisteredListener|null = null
Return values
void —isValidClass()
private
static isValidClass(ReflectionClass $class) : bool
Parameters
- $class : ReflectionClass
Tags
Return values
bool —resolveNearestHandleableParent()
private
static resolveNearestHandleableParent(ReflectionClass $class) : ReflectionClass|null
Parameters
- $class : ReflectionClass