Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Upgrade library code for the multianswer question type.

Copyright: 2011 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 173 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

qtype_multianswer_qe2_attempt_updater:: (10 methods):
  question_summary()
  right_answer()
  explode_answer()
  display_response()
  response_summary()
  was_answered()
  set_first_step_data_elements()
  supply_missing_first_step_data()
  set_data_elements_for_step()
  add_prefix()


Class: qtype_multianswer_qe2_attempt_updater  - X-Ref

Class for converting attempt data for multianswer questions when upgrading
attempts to the new question engine.

This class is used by the code in question/engine/upgrade/upgradelib.php.

question_summary()   X-Ref
No description

right_answer()   X-Ref
No description

explode_answer($answer)   X-Ref
No description

display_response($response)   X-Ref
No description

response_summary($state)   X-Ref
No description

was_answered($state)   X-Ref
No description

set_first_step_data_elements($state, &$data)   X-Ref
No description

supply_missing_first_step_data(&$data)   X-Ref
No description

set_data_elements_for_step($state, &$data)   X-Ref
No description

add_prefix($field, $i)   X-Ref
No description