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.

Question behaviour where the student can submit questions one at a time for immediate feedback.

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

Defines 1 class


Class: qbehaviour_interactive  - X-Ref

Question behaviour for the interactive model.

Each question has a submit button next to it which the student can use to
submit it. Once the question is submitted, it is not possible for the
student to change their answer any more, but the student gets full feedback
straight away.

is_compatible_question(question_definition $question)   X-Ref
Constant used only in {@link adjust_display_options()} below and
{@link (qbehaviour_interactive_renderer}.


can_finish_during_attempt()   X-Ref
No description

get_right_answer_summary()   X-Ref
No description

is_try_again_state()   X-Ref

return: bool are we are currently in the try_again state.

adjust_display_options(question_display_options $options)   X-Ref
No description

get_applicable_hint()   X-Ref
No description

get_expected_data()   X-Ref
No description

get_expected_qt_data()   X-Ref
No description

get_state_string($showcorrectness)   X-Ref
No description

init_first_step(question_attempt_step $step, $variant)   X-Ref
No description

process_action(question_attempt_pending_step $pendingstep)   X-Ref
No description

summarise_action(question_attempt_step $step)   X-Ref
No description

process_try_again(question_attempt_pending_step $pendingstep)   X-Ref
No description

process_submit(question_attempt_pending_step $pendingstep)   X-Ref
No description

adjust_fraction($fraction, question_attempt_pending_step $pendingstep)   X-Ref
No description

process_finish(question_attempt_pending_step $pendingstep)   X-Ref
No description

process_save(question_attempt_pending_step $pendingstep)   X-Ref
No description