Skip to content

Commit

Permalink
make the eventlist compatible with Moodle 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis committed Jul 25, 2024
1 parent d812d96 commit 1ecf9bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions classes/local/step/trigger_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

$plugin->version = 2024053100;
$plugin->release = 2024053100;
$plugin->requires = 2022112800; // Our lowest supported Moodle (3.3.0).
$plugin->supported = [400, 402];
$plugin->requires = 2023100900; // Our lowest supported Moodle (4.3.0).
$plugin->supported = [403, 404];
// TODO $plugin->incompatible = ; // Available as of Moodle 3.9.0 or later.
$plugin->component = 'tool_dataflows';
$plugin->maturity = MATURITY_ALPHA;
Expand Down

0 comments on commit 1ecf9bd

Please sign in to comment.