\FW\UtilsEvents

Event handling for apps and addons

Summary

Methods
Properties
Constants
__construct()
trigger()
on()
No public properties found
No constants found
No protected methods found
$events
N/A
No private methods found
No private properties found
N/A

Properties

$events

$events : 

Type

Methods

__construct()

__construct() 

Construct the events utility

trigger()

trigger() 

Triggers a particular event. Any arguments passed after the name to trigger are passed as parameters to all of the functions that are designed to be called when this event is fired.

on()

on(string  $triggerName, callable  $callback) 

Sets a function to be called when a certain trigger is fired

Parameters

string $triggerName

trigger that the function is called on

callable $callback

function to be called. Must return true for is_callable