From 1c278c6e33cac8088333ef503a0d73929e934868 Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Fri, 6 Dec 2024 13:26:10 +0100 Subject: [PATCH] Make XML export ready for current 5.0dev version. --- classes/plugin_feature.php | 5 +++-- classes/xmlexport.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/classes/plugin_feature.php b/classes/plugin_feature.php index 8fad807..3d8b7af 100644 --- a/classes/plugin_feature.php +++ b/classes/plugin_feature.php @@ -16,6 +16,7 @@ namespace qbank_bulkxmlexport; use core_question\local\bank\plugin_features_base; +use core_question\local\bank\view; /** * Class plugin_feature is the entrypoint for the features. @@ -31,9 +32,9 @@ class plugin_feature extends plugin_features_base { * * @return bulk_action_base[] */ - public function get_bulk_actions(): array { + public function get_bulk_actions(view $view): array { return [ - new xmlexport(), + new xmlexport($view), ]; } } diff --git a/classes/xmlexport.php b/classes/xmlexport.php index 78db5cf..c6cd74f 100644 --- a/classes/xmlexport.php +++ b/classes/xmlexport.php @@ -15,7 +15,7 @@ // along with Moodle. If not, see . namespace qbank_bulkxmlexport; - +use core_question\local\bank\bulk_action_base; /** * Class bulk_move_action is the base class for moving questions. * @@ -23,7 +23,7 @@ * @copyright 2024 Stephan Robotta * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class xmlexport extends \core_question\local\bank\bulk_action_base { +class xmlexport extends bulk_action_base { /** * The key for the action.