Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Renderer for outputting parts of a question belonging to the legacy adaptive behaviour.

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

Defines 1 class

qbehaviour_adaptive_renderer:: (5 methods):
  controls()
  feedback()
  render_adaptive_marks()
  grading_details()
  disregarded_info()


Class: qbehaviour_adaptive_renderer  - X-Ref

Renderer for outputting parts of a question belonging to the legacy
adaptive behaviour.

controls(question_attempt $qa, question_display_options $options)   X-Ref
No description

feedback(question_attempt $qa, question_display_options $options)   X-Ref
No description

render_adaptive_marks(qbehaviour_adaptive_mark_details $details, question_display_options $options)   X-Ref
Display the scoring information about an adaptive attempt.

param: qbehaviour_adaptive_mark_details contains all the score details we need.
param: question_display_options $options display options.

grading_details(qbehaviour_adaptive_mark_details $details, question_display_options $options)   X-Ref
Display the information about the penalty calculations.

param: qbehaviour_adaptive_mark_details contains all the score details we need.
param: question_display_options $options display options.
return: string html fragment

disregarded_info()   X-Ref
Display information about a disregarded (incomplete) response.