mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
More steps towards the separation of questions from the quiz module.
This commit is contained in:
parent
79714e2af3
commit
a08e9552fa
5 changed files with 200 additions and 124 deletions
|
@ -14,56 +14,12 @@ require_once($CFG->libdir.'/pagelib.php');
|
|||
|
||||
/// CONSTANTS ///////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/**#@+
|
||||
* Option flags for $quiz->optionflags
|
||||
*/
|
||||
/**
|
||||
* Whether the quiz is to be run in adaptive mode
|
||||
*/
|
||||
define('QUIZ_ADAPTIVE', 1);
|
||||
|
||||
/**
|
||||
* Determines if when checking whether an answer should
|
||||
* be checked against all previous ones to see if it is duplicate
|
||||
*/
|
||||
define('QUIZ_IGNORE_DUPRESP', 2);
|
||||
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* If start and end date for the quiz are more than this many seconds apart
|
||||
* they will be represented by two separate events in the calendar
|
||||
*/
|
||||
define("QUIZ_MAX_EVENT_LENGTH", "432000"); // 5 days maximum
|
||||
|
||||
/**#@+
|
||||
* The different review options are stored in the bits of $quiz->review
|
||||
* These constants help to extract the options
|
||||
*/
|
||||
/**
|
||||
* The first 6 bits refer to the time immediately after the attempt
|
||||
*/
|
||||
define('QUIZ_REVIEW_IMMEDIATELY', 64-1);
|
||||
/**
|
||||
* the next 6 bits refer to the time after the attempt but while the quiz is open
|
||||
*/
|
||||
define('QUIZ_REVIEW_OPEN', 4096-64);
|
||||
/**
|
||||
* the final 6 bits refer to the time after the quiz closes
|
||||
*/
|
||||
define('QUIZ_REVIEW_CLOSED', 262144-4096);
|
||||
|
||||
// within each group of 6 bits we determine what should be shown
|
||||
define('QUIZ_REVIEW_RESPONSES', 1+64+4096); // Show responses
|
||||
define('QUIZ_REVIEW_SCORES', 2*4161); // Show scores
|
||||
define('QUIZ_REVIEW_FEEDBACK', 4*4161); // Show feedback
|
||||
define('QUIZ_REVIEW_ANSWERS', 8*4161); // Show correct answers
|
||||
// Some handling of worked solutions is already in the code but not yet fully supported
|
||||
// and not switched on in the user interface.
|
||||
define('QUIZ_REVIEW_SOLUTIONS', 16*4161); // Show solutions
|
||||
// the 6th bit is as yet unused
|
||||
/**#@-*/
|
||||
|
||||
/// FUNCTIONS ///////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue