Moodle Plugins directory: Question bank unused questions | Moodle.org
Question bank unused questions
Local plugins ::: local_unusedquestions
Maintained by
Ray Morris
Extends the Moodle question bank to find questions which are / are not used in a quiz.
Latest release:
68 sites
7 downloads
19 fans
Current versions available: 1
Extends the Moodle question bank to find questions which are / are not used in a quiz.
This may be useful when adding questions to a quiz - no need to add questions which are already in the quiz.
It may also be useful to determine if some questions should be removed or moved, since they aren't being used.
Useful links
Contributors
Ray Morris (Lead maintainer)
Please login to view contributors details and/or to contact them
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!
Works like a charm on Moodle 3.5
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