Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 403]

(no description)

File Size: 141 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

eventlist:: (3 methods):
  get_all_eventlist()
  get_plugin_list()
  validate_event_plugin()


Class: eventlist  - X-Ref

Class for returning event information.

get_all_eventlist($withoutcomponent = false)   X-Ref
Get a list of events present in the system.

return: array list of events present in the system.
param: bool $withoutcomponent Return an eventlist without associated components.

get_plugin_list($eventlist = array()   X-Ref
Return list of plugins that have events.

return: array list of plugins with human readable name.
param: array $eventlist a list of events present in the system {@link eventlist::get_all_eventlist}.

validate_event_plugin($plugin, $eventname, $eventlist = array()   X-Ref
validate if the given event belongs to the given plugin.

return: bool Returns true if the selected event belongs to the selected plugin, false otherwise.
param: string $plugin Frankenstyle name of the plugin.
param: string $eventname Full qualified event name.
param: array $eventlist List of events generated by {@link eventlist::get_all_eventlist}