Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Events\Contracts\EventManager Interface Reference
Inheritance diagram for BristolSU\Support\Events\Contracts\EventManager:
Inheritance graph
[legend]

Public Member Functions

 registerEvent ($alias, $name, $class, $description)
 
 all ()
 
 allForModule ($alias)
 

Detailed Description

Register and retrieve events

Definition at line 10 of file EventManager.php.

Member Function Documentation

◆ all()

BristolSU\Support\Events\Contracts\EventManager::all ( )

Get all events

Returns
array All events

Implemented in BristolSU\Support\Events\EventManager.

◆ allForModule()

BristolSU\Support\Events\Contracts\EventManager::allForModule (   $alias)

Get all events for a module

Parameters
string$aliasModule alias
Returns
array Events for the module

Implemented in BristolSU\Support\Events\EventManager.

◆ registerEvent()

BristolSU\Support\Events\Contracts\EventManager::registerEvent (   $alias,
  $name,
  $class,
  $description 
)

Register a new event

Parameters
string$aliasModule alias registering the event
string$nameEvent Name
string$classEvent Class
string$descriptionEvent Description
Returns
void

Implemented in BristolSU\Support\Events\EventManager.


The documentation for this interface was generated from the following file: