Question bank unused questions
Maintained by
Ray Morris
Extends the Moodle question bank to find questions which are / are not used in a quiz.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Class 'core_question\bank\search\condition' has been renamed for the autoloader and is now deprecated. Please use 'core_question\local\bank\condition' instead.
line 153 of /lib/classes/component.php: call to debugging()
line 25 of /local/unusedquestions/lib.php: call to core_component::classloader()
line 921 of /lib/classes/component.php: call to include_once()
line 8038 of /lib/moodlelib.php: call to core_component::get_plugin_list_with_file()
line 844 of /lib/setup.php: call to get_plugins_with_function()
line 84 of /config.php: call to require_once()
line 94 of /admin/index.php: call to require()
Fatal error: Type of local_unusedquestions_question_bank_search_condition::$where must be string (as in class core_question\local\bank\condition) in /var/www/elo/moodle/local/unusedquestions/lib.php on line 25
Works like a charm on Moodle 3.5
Couple of things you might want to think about
1) The description and screenshots you've added here don't really do the plugin justice and I had to install it to understand what it really did.
2) in lib.php function init() there is a call to global $DB but $DB isn't used.
3) in lib.php $this->onlyused is set in the _construct() function but it is undefined at the class level, you might want to add a "protected $onlyused" at the top of the class or something similar.
4) You may want to improve the phpdocs a little - running it through the automated check tool at:
https://github.com/moodlehq/moodle-local_moodlecheck
The only really important item in that list is probably 1) above.
great work!