Methods |
public
static
|
getInstance(): self
|
#
|
public
static
|
createInstance(): self
|
#
|
public
|
getListeners(): array
|
#
|
public
|
getListenersResult(): array
|
#
|
public
|
strPad($sText, $iCount, $sPadText, $iPadType = STR_PAD_LEFT)
|
#
|
public
|
getListenersByEvent($sModule, $sEvent): array
|
#
|
public
|
on(string $sEvent, callback $fCallback, int $iPriority = 100): void
Subscribe to an event.
Subscribe to an event.
When the event is triggered, we'll call all the specified callbacks.
It is possible to control the order of the callbacks through the
priority argument.
This is for example used to make sure that the authentication plugin
is triggered before anything else. If it's not needed to change this
number, it is recommended to ommit.
|
#
|
public
|
onAny($aListeners)
|
#
|
public
|
emit(
$sModule,
string $sEvent,
array &$aArguments = [],
mixed &$mResult = null,
callback $mCountinueCallback = null,
$bSkipIsAllowedModuleCheck = false,
): boolean
Broadcasts an event
Broadcasts an event
This method will call all subscribers. If one of the subscribers returns false, the process stops.
The arguments parameter will be sent to all subscribers
|
#
|