HandlerList
in package
Table of Contents
- $class : string
- $handlerSlots : array<string|int, array<string|int, RegisteredListener>>
- $parentList : HandlerList|null
- __construct() : mixed
- clear() : void
- getListenersByPriority() : array<string|int, RegisteredListener>
- getParent() : HandlerList|null
- register() : void
- registerAll() : void
- unregister() : void
Properties
$class
private
string
$class
$handlerSlots
private
array<string|int, array<string|int, RegisteredListener>>
$handlerSlots
= []
$parentList
private
HandlerList|null
$parentList
Methods
__construct()
public
__construct(string $class, HandlerList|null $parentList) : mixed
Parameters
- $class : string
- $parentList : HandlerList|null
Return values
mixed —clear()
public
clear() : void
Return values
void —getListenersByPriority()
public
getListenersByPriority(int $priority) : array<string|int, RegisteredListener>
Parameters
- $priority : int
Return values
array<string|int, RegisteredListener> —getParent()
public
getParent() : HandlerList|null
Return values
HandlerList|null —register()
public
register(RegisteredListener $listener) : void
Parameters
- $listener : RegisteredListener
Tags
Return values
void —registerAll()
public
registerAll(array<string|int, RegisteredListener> $listeners) : void
Parameters
- $listeners : array<string|int, RegisteredListener>
Return values
void —unregister()
public
unregister(RegisteredListener|Listener|Plugin $object) : void
Parameters
- $object : RegisteredListener|Listener|Plugin