[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/behaviour/interactive/ -> behaviour.php (summary)

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: 248 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

qbehaviour_interactive:: (17 methods):
  is_compatible_question()
  can_finish_during_attempt()
  get_right_answer_summary()
  is_try_again_state()
  adjust_display_options()
  get_applicable_hint()
  get_expected_data()
  get_expected_qt_data()
  get_state_string()
  init_first_step()
  process_action()
  summarise_action()
  process_try_again()
  process_submit()
  adjust_fraction()
  process_finish()
  process_save()


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 qustion 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
Special value used for {@link question_display_options::$readonly when
we are showing the try again button to the student during an attempt.
The particular number was chosen randomly. PHP will treat it the same
as true, but in the renderer we reconginse it display the try again
button enabled even though the rest of the question is disabled.


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



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1