|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| hide_all_feedback () | |
Static Public Member Functions | |
| static | get_dp_options () |
Data Fields | |
| const | HIDDEN = 0 |
| const | VISIBLE = 1 |
| const | EDITABLE = 2 |
| const | MAX_ONLY = 1 |
| const | MARK_AND_MAX = 2 |
| const | MAX_DP = 7 |
| $readonly = false | |
| $clearwrong = false | |
| $correctness = self::VISIBLE | |
| $marks = self::MARK_AND_MAX | |
| $markdp = 2 | |
| $flags = self::VISIBLE | |
| $feedback = self::VISIBLE | |
| $numpartscorrect = self::VISIBLE | |
| $generalfeedback = self::VISIBLE | |
| $rightanswer = self::VISIBLE | |
| $manualcomment = self::VISIBLE | |
| $manualcommentlink = null | |
| $questionreviewlink = null | |
| $history = self::HIDDEN | |
| $editquestionparams = array() | |
| $context | |
This class contains all the options that controls how a question is displayed.
Normally, what will happen is that the calling code will set up some display options to indicate what sort of question display it wants, and then before the question is rendered, the behaviour will be given a chance to modify the display options, so that, for example, A question that is finished will only be shown read-only, and a question that has not been submitted will not have any sort of feedback displayed.
| static get_dp_options | ( | ) | [static] |
Returns the valid choices for the number of decimal places for showing question marks. For use in the user interface.
Calling code should probably use question_engine::get_dp_options() rather than calling this method directly.
Set all the feedback-related fields $feedback, generalfeedback, rightanswer and manualcomment to question_display_options::HIDDEN.
Definition at line 522 of file lib.php.

| integer link HIDDEN = 0 |
The the mark and/or the maximum available mark for this question be visible?
question_display_options::MAX_ONLY or question_display_options::MARK_AND_MAX
Should the flag this question UI element be visible, and if so, should the flag state be changable?
question_display_options::VISIBLE or question_display_options::EDITABLE
Should the manually added marker's comment be visible. Should the link for adding/editing the comment be there.
question_display_options::VISIBLE, or question_display_options::EDITABLE. Editable means that form fields are displayed inline.
| const MARK_AND_MAX = 2 |