Development:Moodle 2.0 question bank improvements
Moodle 1.9 introduced the tagging and outcomes infrastructure. In Moodle 2.0 we should support tagging questions, and relating questions to outcomes.
With this added metadata, we should thing provides enhanced facilities for searching in the question bank.
In addition, we need to find a way to display all of this extra information. It will not all fit when viewing the question bank on the quiz editing page, so we need to start separating the question bank display that is used to add questions to a quiz, and the stand-alone question bank interface.
Design
In what follows, any UI relating to outcomes will only appear if $CFG->enableoutcomes is true.
Database changes
New table question_outcomes with columns id, questionid and outcomeid.
Question bank display changes
New $compact parameter to question_showbank. The intention is that this will be true when called from mod/quiz/edit.php, and false from question/edit.php.
When $compact is false, there will be new columns "Creator", "Created", "Modified", "Tags" and "Outcomes" in the question bank view.
A new question view page
In order to give a home to the tagging and outcomes interfaces, there will be a question/view.php?id={questionid} page. I don't think it makes sense to combine this with question/preview.php.
Ways if filtering the question bank
Question bank advanced search interface
See also
- Other quiz & question bank developer notes
- MDL-11155 Show question author in the question bank
- MDL-12787 Tagging for questions