|
Bristol SU Support Package
|


Public Member Functions | |
| registerEvent ($alias, $name, $class, $description) | |
| all () | |
| allForModule ($alias) | |
Protected Attributes | |
| $events = [] | |
Class EventManager
Definition at line 10 of file EventManager.php.
| BristolSU\Support\Events\EventManager::all | ( | ) |
Get all events
Returns all events, each one in the form [ 'name' => 'Event Name', 'description' => 'Event Description', 'event' => 'Event Class Name' ]
Implements BristolSU\Support\Events\Contracts\EventManager.
Definition at line 61 of file EventManager.php.
References BristolSU\Support\Events\EventManager\$events.
| BristolSU\Support\Events\EventManager::allForModule | ( | $alias | ) |
Get all events for a given module
Returns all events, each one in the form [ 'name' => 'Event Name', 'description' => 'Event Description', 'event' => 'Event Class Name' ]
| string | $alias | Module alias |
Implements BristolSU\Support\Events\Contracts\EventManager.
Definition at line 79 of file EventManager.php.
| BristolSU\Support\Events\EventManager::registerEvent | ( | $alias, | |
| $name, | |||
| $class, | |||
| $description | |||
| ) |
Register an event
| string | $alias | Module alias registering the event |
| string | $name | Event Name |
| string | $class | Event Class |
| string | $description | Event Description |
Implements BristolSU\Support\Events\Contracts\EventManager.
Definition at line 37 of file EventManager.php.
|
protected |
Definition at line 25 of file EventManager.php.
Referenced by BristolSU\Support\Events\EventManager\all().
1.8.13