Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 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