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.

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.