|
boolean | $attempt = true |
| #-
|
|
boolean | $clearwrong = false |
| whether the question type should output hidden form fields to reset any incorrect parts of the resonse to blank.
|
|
context | $context |
| the context the attempt being output belongs to.
|
|
integer | $correctness = self::VISIBLE |
| Should the student have what they got right and wrong clearly indicated.
|
|
array | $editquestionparams = array() |
| If not empty, then a link to edit the question will be included in the info box for the question.
|
|
string | $extrahistorycontent = '' |
|
string | $extrainfocontent = '' |
|
integer | $feedback = self::VISIBLE |
| Should the specific feedback be visible.
|
|
integer | $flags = self::VISIBLE |
| Should the flag this question UI element be visible, and if so, should the flag state be changable? question_display_options::HIDDEN, question_display_options::VISIBLE or question_display_options::EDITABLE.
|
|
integer | $generalfeedback = self::VISIBLE |
| Should the general feedback be visible? question_display_options::HIDDEN or question_display_options::VISIBLE.
|
|
integer | $history = self::HIDDEN |
| Should the history of previous question states table be visible? question_display_options::HIDDEN or question_display_options::VISIBLE.
|
|
integer | $manualcomment = self::VISIBLE |
| Should the manually added marker's comment be visible.
|
|
string | $manualcommentlink = null |
| Should we show a 'Make comment or override grade' link? base URL for the edit comment script, which will be shown if $manualcomment = self::VISIBLE.
|
|
number | $markdp = 2 |
| of decimal places to use when formatting marks for output.
|
|
integer | $marks = self::MARK_AND_MAX |
| The the mark and/or the maximum available mark for this question be visible? question_display_options::HIDDEN, question_display_options::MAX_ONLY or question_display_options::MARK_AND_MAX.
|
|
integer | $numpartscorrect = self::VISIBLE |
| For questions with a number of sub-parts (like matching, or multiple-choice, multiple-reponse) display the number of sub-parts that were correct.
|
|
boolean | $overallfeedback = self::VISIBLE |
| if this is false, then the student is not allowed to review anything about the attempt.
|
|
string | $questionidentifier = null |
| This identifier should be added to the labels of all input fields in the question.
|
|
moodle_url | $questionreviewlink = null |
| Used in places like the question history table, to show a link to review this question in a certain state.
|
|
boolean | $readonly = false |
| whether the question should be displayed as a read-only review, or in an active state where you can change the answer.
|
|
integer | $rightanswer = self::VISIBLE |
| Should the automatically generated display of what the correct answer is be visible? question_display_options::HIDDEN or question_display_options::VISIBLE.
|
|
int | $userinfoinhistory = self::HIDDEN |
| The option to show the action author in the response history.
|
|
const | AFTER_CLOSE = 0x00010 |
|
integer const | DURING = 0x10000 |
| #+ bits used to indicate various times in relation to a quiz attempt.
|
|
const | EDITABLE = 2 |
|
const | HIDDEN = 0 |
|
const | IMMEDIATELY_AFTER = 0x01000 |
|
const | LATER_WHILE_OPEN = 0x00100 |
|
const | MARK_AND_MAX = 2 |
|
integer const | MAX_DP = 7 |
| #-
|
|
integer const | MAX_ONLY = 1 |
| #-
|
|
integer const | SHOW_ALL = -1 |
| #+ named constants for the values that most of the options take.
|
|
const | VISIBLE = 1 |
|
An extension of question_display_options that includes the extra options used by the quiz.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
array question_display_options::$editquestionparams = array() |
|
inherited |
If not empty, then a link to edit the question will be included in the info box for the question.
If used, this array must contain an element courseid or cmid.
It shoudl also contain a parameter returnurl => moodle_url giving a sensible URL to go back to when the editing form is submitted or cancelled.
url parameter for the edit link. id => questiosnid will be added automatically.
string question_display_options::$questionidentifier = null |
|
inherited |
This identifier should be added to the labels of all input fields in the question.
This is so people using assistive technology can easily tell which input belong to which question. The helper {
- See also
- self::add_question_identifier_to_label() makes this easier.
If not set before the question is rendered, then it defaults to 'Question N'. (lang string)
The identifier that the question being rendered is associated with. E.g. The question number when it is rendered on a quiz.