Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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