Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

Question type class for the calculated multiple-choice question type.

Copyright: 2009 Pierre Pichet
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 320 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: qtype_calculatedmulti  - X-Ref

The calculated multiple-choice question type.

save_question_options($question)   X-Ref
No description

validate_answer($answer)   X-Ref
No description

validate_question_data($question)   X-Ref
No description

make_question_instance($questiondata)   X-Ref
No description

initialise_question_instance(question_definition $question, $questiondata)   X-Ref
No description

make_answer($answer)   X-Ref
Public override method, created so that make_answer will be available
for use by classes which extend qtype_multichoice_base.

param: stdClass $answer  Moodle DB question_answers object.
return: question_answer

make_hint($hint)   X-Ref
No description

comment_header($question)   X-Ref
No description

comment_on_datasetitems($qtypeobj, $questionid, $questiontext,$answers, $data, $number)   X-Ref
No description

get_virtual_qtype()   X-Ref
No description

get_possible_responses($questiondata)   X-Ref
No description

move_files($questionid, $oldcontextid, $newcontextid)   X-Ref
No description

delete_files($questionid, $contextid)   X-Ref
No description