Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

File storage conversion Quiz and Questions

From MoodleDocs
Revision as of 16:40, 5 May 2010 by Tim Hunt (talk | contribs) (New page: This page are some notes about what has to be done for MDL-16094. I have chosen to write this document with reference to database columns, with secondary mention of the ==The quiz== [...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page are some notes about what has to be done for MDL-16094.

I have chosen to write this document with reference to database columns, with secondary mention of the


The quiz

Quiz database structure

  • We need a file area for quiz.intro.
  • We need a file area for quiz_feedback.feedbacktext. (The overall feedback on the quiz settings form.) If it is possible to do easily, we should replace the overall feedback boxes with HTML editors (the boxes currently accept HTML input into text fields, which is functionally complete, but sucky).
  • We need to add a feedbacktextformat column, if it has not already been done.
  • Ideally, access to overall feedback files should be controlled by the same logic as whether the feedback itself is displayed. However, I think it would be acceptable to release Moodle 2.0 without this. Just leave an open tracker issue assigned to me, and I can implement that check later.

No other quiz_... tables have files associated with any columns.


Questions

Question database structure

There are no fields in the 'question engine' tables that have files.

All the issues are in the 'question bank' part, which means the core question bank, and the all the question type plugins.

Core question bank

  • I think that question_categories.info (which is HTML) should not have files. However, we need a question_categories.infoformat field.



Question types