Event
class Event (View source)
Methods
static Event
getInstance()
Event constructor.
static
on(string $event, callable|array|string $fn, int $priority = 0)
addEventListener
static
onTransmission(string $event, array|string $fn, int $priority = 0)
Send an event page to page
static
once(string $event, callable|array|string $fn, int $priority = 0)
Associate a single listener to an event
static bool
emit(string $event)
Emit dispatchEvent
static
off(string $event)
off removes an event saves
static bool
bound(string $event)
Check whether an event is already recorded at least once.
mixed
__call(string $name, array $arguments)
__call
Details
static Event
getInstance()
Event constructor.
static
on(string $event, callable|array|string $fn, int $priority = 0)
addEventListener
static
onTransmission(string $event, array|string $fn, int $priority = 0)
Send an event page to page
static
once(string $event, callable|array|string $fn, int $priority = 0)
Associate a single listener to an event
static bool
emit(string $event)
Emit dispatchEvent
static
off(string $event)
off removes an event saves
static bool
bound(string $event)
Check whether an event is already recorded at least once.
mixed
__call(string $name, array $arguments)
__call