Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 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.

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

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

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

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

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}
return: bool Returns true if the selected event belongs to the selected plugin, false otherwise.