|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | qformat_default |
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Functions | |
| if(!defined('SHORTANSWER')) | lesson_save_question_options ($question, $lesson) |
| if (!defined('SHORTANSWER')) lesson_save_question_options | ( | $ | question, |
| $ | lesson | ||
| ) |
#@+ The core question types.
These used to be in lib/questionlib.php, but are being deprecated. Copying them here to keep this code working for now.#@- Given some question info and some data about the the answers this function parses, organises and saves the question
This is only used when IMPORTING questions and is only called from format.php Lifted from mod/quiz/lib.php - 1. all reference to oldanswers removed 2. all reference to quiz_multichoice table removed 3. In SHORTANSWER questions usecase is store in the qoption field 4. In NUMERIC questions store the range as two answers 5. TRUEFALSE options are ignored 6. For MULTICHOICE questions with more than one answer the qoption field is true
| opject | $question | Contains question data like question, type and answers. |
Perform sanity checks on fractional grades
Perform sanity checks on fractional grades
Perform sanity checks on fractional grades
Definition at line 70 of file format.php.

