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.

Return Value

Event

static on(string $event, callable|array|string $fn, int $priority = 0)

addEventListener

Parameters

string $event
callable|array|string $fn
int $priority

static onTransmission(string $event, array|string $fn, int $priority = 0)

Send an event page to page

Parameters

string $event
array|string $fn
int $priority

Exceptions

EventException

static once(string $event, callable|array|string $fn, int $priority = 0)

Associate a single listener to an event

Parameters

string $event
callable|array|string $fn
int $priority

static bool emit(string $event)

Emit dispatchEvent

Parameters

string $event

Le nom de l'évènement

Return Value

bool

static off(string $event)

off removes an event saves

Parameters

string $event

static bool bound(string $event)

Check whether an event is already recorded at least once.

Parameters

string $event

Return Value

bool

mixed __call(string $name, array $arguments)

__call

Parameters

string $name
array $arguments

Return Value

mixed