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.