|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Class used for event dispatching. More...
Static Public Member Functions | |
| static | database_transaction_commited () |
| Notification from DML layer. | |
| static | database_transaction_rolledback () |
| Notification from DML layer. | |
| static | dispatch (\core\event\base $event) |
| Trigger new event. | |
| static | get_all_observers () |
| Returns all observers in the system. More... | |
| static | phpunit_replace_observers (array $observers) |
| Replace all standard observers. More... | |
| static | phpunit_reset () |
| Reset everything if necessary. More... | |
Static Protected Member Functions | |
| static | add_observers (array $observers, $file, $plugintype=null, $plugin=null) |
| Add observers. More... | |
| static | get_observing_classes (\core\event\base $event) |
| Returns list of classes related to this event. More... | |
| static | init_all_observers () |
| Initialise the list of observers. | |
| static | order_all_observers () |
| Reorder observers to allow quick lookup of observer for each event. | |
| static | process_buffers () |
Class used for event dispatching.
Note: Do NOT use directly in your code, it is intended to be used from base event class only.
|
staticprotected |
Add observers.
| array | $observers | |
| string | $file | |
| string | $plugintype | Plugin type of the observer. |
| string | $plugin | Plugin of the observer. |
|
static |
Returns all observers in the system.
This is only for use for reporting on the list of observers in the system.
| array | An array of stdClass with all core observer details. |
|
staticprotected |
Returns list of classes related to this event.
| core::event::base | $event |
| array |
|
static |
Replace all standard observers.
| array | $observers |
| array |
| coding_Exception | if used outside of unit tests. |
|
static |
Reset everything if necessary.
| coding_Exception | if used outside of unit tests. |