From b7f6914f9ee7794ba704e592ee00da23ec22e195 Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Sat, 14 Sep 2024 23:17:31 +0100 Subject: [PATCH] Removed renderer.php as no longer needed since move to just form --- README.md | 2 ++ classes/helper.php | 2 +- classes/output/renderer.php | 43 ------------------------------------- 3 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 classes/output/renderer.php diff --git a/README.md b/README.md index 96706c4..6e07c9c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # moodle-qbank_bulktags +![PHP Support](https://img.shields.io/badge/php-8.1--8.3-blue)[![Moodle Plugin CI](https://github.com/marcusgreen/moodle-qbank_bulktags/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/marcusgreen/moodle-qtype_gapfill/actions/workflows/moodle-ci.yml)[![Moodle Support](https://img.shields.io/badge/Moodle-4.4+-orange)](https://github.com/marcusgreen/moodle-qbank_bulktags/actions) + This is a Moodle Question bank plugin to allow bulk updating of question tags. It was mainly created at MoodleDACH24 in Vienna. With thanks to Stephan Robotta https://github.com/srobotta for collaboration and inspiration. diff --git a/classes/helper.php b/classes/helper.php index 4decb99..01b4dcd 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -61,7 +61,7 @@ public static function bulk_tag_questions($fromform) { /** * Process the question came from the form post. * - * @param array $rawquestions raw questions came as a part of post. + * @param \stdClass $request raw questions came as a part of post. * @return array question ids got from the post are processed and structured in an array. */ public static function process_question_ids(\stdClass $request): array { diff --git a/classes/output/renderer.php b/classes/output/renderer.php deleted file mode 100644 index e26d387..0000000 --- a/classes/output/renderer.php +++ /dev/null @@ -1,43 +0,0 @@ -. - -namespace qbank_bulktags\output; - -/** - * Class renderer. - * - * @package qbank_bulktags - * @copyright 2024 Marcus Green - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class renderer extends \plugin_renderer_base { - /** - * Renderer for module form. - * - * @param \moodle_url $addtomoduleurl Add to module url - * @param \moodle_url $returnurl The return url to question bank - * @return string - */ - public function render_bulk_tags_form(\moodle_url $bulktagsurl, \moodle_url $returnurl): string { - $bulktagsform = new \qbank_bulktags\output\form\bulk_tags_form(null); - $displaydata['tagslist'] = $bulktagsform->render(); - $displaydata['returnurl'] = $returnurl; - $displaydata['bulktagsurl'] = $bulktagsurl; - - return $this->render_from_template('qbank_bulktags/bulk_tags_form', $displaydata); - - } -}