Class for handling events
Methods | ||||||
---|---|---|---|---|---|---|
protected
|
__construct()
Constructor
Constructor |
# | ||||
public
static
|
getInstance(): object
Allow one instance only!
Allow one instance only! |
# | ||||
public
|
setPreloads(): void
Get available preloads information and set them to go!
Get available preloads information and set them to go! |
# | ||||
public
|
setEvents(): void
Get available events and set them to go!
Get available events and set them to go! |
# | ||||
public
|
triggerEvent(string $event_name, array $args = []): void
Triggers a specific event
Triggers a specific event Parameters
|
# |
Properties | |||
---|---|---|---|
public
|
array
|
$_preloads = []
array containing information about the event observers
array containing information about the event observers |
# |
public
|
array
|
$_events = []
array containing the events that are being observed
array containing the events that are being observed |
# |