From 0e2ea1110e435f6f375b7fe1de242b78bba6858a Mon Sep 17 00:00:00 2001 From: Daniel Neis Araujo Date: Mon, 21 Oct 2024 17:26:17 -0300 Subject: [PATCH] make the eventlist compatible with Moodle 4.3 --- classes/local/step/trigger_event.php | 12 +++++++----- version.php | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/classes/local/step/trigger_event.php b/classes/local/step/trigger_event.php index 6c47161c..a312a48e 100644 --- a/classes/local/step/trigger_event.php +++ b/classes/local/step/trigger_event.php @@ -133,11 +133,13 @@ private function get_events_list() { $eventlist = \tool_monitor\eventlist::get_all_eventlist(); $pluginlist = \tool_monitor\eventlist::get_plugin_list($eventlist); $plugineventlist = []; - foreach ($pluginlist as $plugin => $pluginname) { - foreach ($eventlist[$plugin] as $event => $eventname) { - // Filter out events which cannot be triggered for some reason. - if (!$event::is_deprecated()) { - $plugineventlist[$event] = "{$pluginname}: {$eventname}"; + foreach ($pluginlist as $plugintype => $plugins) { + foreach ($plugins as $plugin => $pluginname) { + foreach ($eventlist[$plugin] as $event => $eventname) { + // Filter out events which cannot be triggered for some reason. + if (!$event::is_deprecated()) { + $plugineventlist[$event] = "{$pluginname}: {$eventname}"; + } } } } diff --git a/version.php b/version.php index bedee946..c4a77d1b 100644 --- a/version.php +++ b/version.php @@ -25,10 +25,10 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024101000; -$plugin->release = 2024101000; +$plugin->version = 2024102100; +$plugin->release = 2024102100; $plugin->requires = 2022112800; // Our lowest supported Moodle (3.3.0). -$plugin->supported = [400, 402]; +$plugin->supported = [400, 402, 403, 404, 405]; // TODO $plugin->incompatible = ; // Available as of Moodle 3.9.0 or later. $plugin->component = 'tool_dataflows'; $plugin->maturity = MATURITY_ALPHA;