Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
Question type class for the multi-answer question type.
Copyright: | 1999 onwards Martin Dougiamas {@link http://moodle.com} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 582 lines (27 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
qtype_multianswer:: (13 methods):
can_analyse_responses()
get_question_options()
save_question_options()
save_question()
make_hint()
delete_question()
initialise_question_instance()
get_random_guess_score()
move_files()
delete_files()
qtype_multianswer_initialise_multichoice_subquestion()
qtype_multianswer_extract_question()
qtype_multianswer_validate_question()
Class: qtype_multianswer - X-Ref
The multi-answer question type class.can_analyse_responses() X-Ref |
No description |
get_question_options($question) X-Ref |
No description |
save_question_options($question) X-Ref |
No description |
save_question($authorizedquestion, $form) X-Ref |
No description |
make_hint($hint) X-Ref |
No description |
delete_question($questionid, $contextid) X-Ref |
No description |
initialise_question_instance(question_definition $question, $questiondata) X-Ref |
No description |
get_random_guess_score($questiondata) X-Ref |
No description |
move_files($questionid, $oldcontextid, $newcontextid) X-Ref |
No description |
delete_files($questionid, $contextid) X-Ref |
No description |
qtype_multianswer_initialise_multichoice_subquestion($wrapped) X-Ref |
Initialise subquestion fields that are constant across all MULTICHOICE types. param: objet $wrapped The subquestion to initialise |
qtype_multianswer_extract_question($text) X-Ref |
No description |
qtype_multianswer_validate_question(stdClass $question) X-Ref |
Validate a multianswer question. param: object $question The multianswer question to validate as returned by qtype_multianswer_extract_question return: array Array of error messages with questions field names as keys. |