Question bank unused questions

Maintained by Ray Morris
Extends the Moodle question bank to find questions which are / are not used in a quiz.
Price option: Free

Supports Moodle 2.7-2.8 See all versions
Latest release: 11 years ago
Installations: 34
Downloads (last 90 days): 6

Frankenstyle name: local_unusedquestions
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

This plugin breaks the upgrade from Moodle 4.2 to 4.3 with the message
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
Not working with questions if they are in sub category or sub-sub category
Not working in Moodle 3.6, anyone has a solution.
What a great plugin - saved the day.
Works like a charm on Moodle 3.5
Hi Ray, I am looking for this plugin for my site on Moodle 2.9. When would the version for 2.9 be released? Thanks!
Hi Ray, that code seems so simple but it is a really nice improvement to the quiz editing interface - great work! I can see it being something that would be accepted as a core feature at some point (coded slightly differently and not as a local plugin though)
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!