Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Separating questions from quizzes.

Separating questions from quizzes

From MoodleDocs
Revision as of 17:02, 5 February 2006 by Gustav Delius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page is meant to summarize the changes that had to take place to separate the code and data for handling questions from the code and date for handling quizzes. I still need to write this, for now just the entries from the CVS logs:

I have started on the re-organisation to allow other modules to use the questiontypes. Moved all code that is not specific to the quiz module out of locallib.php into questionlib.php. The default questiontype class is now defined in quiz/questiontypes/questiontype.php. See http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852

Two name changes: 1) in all module-indpendent code the variable $quiz has been renamed to $cmoptions (it holds the options set by the course module which does not necessarily have to be a quiz, it could be a lesson for example). 2) quiz_restore_question_sessions() has the simpler name quiz_get_states Also got rid of the quizfile.php in favour of file.php

I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380