mini\Hooks\Trigger
class
Documentation
Event that can only trigger ONCE Late subscribers are called immediately with the original trigger data
Inheritance
Extends: mini\Hooks\Dispatcher
Properties (3)
protected
bool $triggered
protected
array $data
protected
array $listeners
Methods (16)
Has this trigger already fired?
Activate the trigger and run all listeners
Subscribe to this trigger
Unsubscribe from this trigger
public
__construct()
inherited from Hooks\Dispatcher
Documentation missing
public
final
getDescription()
inherited from Hooks\Dispatcher
Get a description of the event dispatcher
public
final
getFile()
inherited from Hooks\Dispatcher
Get the filename where this event dispatcher was created
public
final
getLine()
inherited from Hooks\Dispatcher
Get the line number where this event dispatcher was created
public
static
final
configure()
inherited from Hooks\Dispatcher
Configure event loop integration
protected
invokeAll()
inherited from Hooks\Dispatcher
Invoke all listeners in an array
protected
static
handleException()
inherited from Hooks\Dispatcher
Handle an exception from a listener
protected
static
filterArray()
inherited from Hooks\Dispatcher
Filter array to remove specific values
protected
static
defer()
inherited from Hooks\Dispatcher
Schedule a function to run when runEvents() is called
protected
static
runEvents()
inherited from Hooks\Dispatcher
Run all scheduled events
protected
filterArrays()
inherited from Hooks\Dispatcher
Remove values from multiple arrays by reference
protected
static
invoke()
inherited from Hooks\Dispatcher
Invoke a listener with exception handling