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.

Question behaviour for questions that can only be graded manually.

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

Defines 1 class

qbehaviour_manualgraded:: (6 methods):
  is_compatible_question()
  adjust_display_options()
  process_action()
  process_save()
  summarise_action()
  process_finish()


Class: qbehaviour_manualgraded  - X-Ref

Question behaviour for questions that can only be graded manually.

The student enters their response during the attempt, and it is saved. Later,
when the whole attempt is finished, the attempt goes into the NEEDS_GRADING
state, and the teacher must grade it manually.

is_compatible_question(question_definition $question)   X-Ref
No description

adjust_display_options(question_display_options $options)   X-Ref
No description

process_action(question_attempt_pending_step $pendingstep)   X-Ref
No description

process_save(question_attempt_pending_step $pendingstep)   X-Ref
Like the parent method, except that when a response is gradable, but not
completely, we move it to the invalid state.

param: question_attempt_pending_step $pendingstep a partially initialised step
return: bool either {@link question_attempt::KEEP} or {@link question_attempt::DISCARD}

summarise_action(question_attempt_step $step)   X-Ref
No description

process_finish(question_attempt_pending_step $pendingstep)   X-Ref
No description