|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Enumerations | |
| enum | QUESTION_PREVIEW_MAX_VARIANTS |
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $question = question_bank::load_question($id) | |
| $maxvariant = min($question->get_num_variants(), QUESTION_PREVIEW_MAX_VARIANTS) | |
| $options = new question_preview_options($question) | |
| $previewid = optional_param('previewid', 0, PARAM_INT) | |
| $options | maxmark = $quba->get_question_max_mark($slot) |
| $optionsform | |
| if($newoptions=$optionsform-> get_submitted_data()) | $actionurl = question_preview_action_url($question->id, $quba->get_id(), $options, $context) |
| $finishdisabled = '' | |
| $filldisabled = '' | |
| if($quba->get_question_state($slot)-> is_finished()) if(is_null($quba-> get_correct_response($slot))) if(!$previewid) | $title = get_string('previewquestion', 'question', format_string($question->name)) |
| $headtags = question_engine::initialise_js() . $quba->render_question_head_html($slot) | |
| n | |
Definition at line 42 of file preview.php.
| if ($newoptions=$optionsform->get_submitted_data()) $actionurl = question_preview_action_url($question->id, $quba->get_id(), $options, $context) |
Definition at line 144 of file preview.php.
| $filldisabled = '' |
Definition at line 210 of file preview.php.
| $finishdisabled = '' |
Definition at line 209 of file preview.php.
| $headtags = question_engine::initialise_js() . $quba->render_question_head_html($slot) |
Definition at line 225 of file preview.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 45 of file preview.php.
| $maxvariant = min($question->get_num_variants(), QUESTION_PREVIEW_MAX_VARIANTS) |
Definition at line 71 of file preview.php.
| $options = new question_preview_options($question) |
Definition at line 72 of file preview.php.
| $optionsform |
new preview_options_form(question_preview_form_url($question->id, $context), array('quba' => $quba, 'maxvariant' => $maxvariant))
Definition at line 129 of file preview.php.
| $previewid = optional_param('previewid', 0, PARAM_INT) |
Definition at line 79 of file preview.php.
Definition at line 46 of file preview.php.
| if ($quba->get_question_state($slot)->is_finished()) if (is_null($quba->get_correct_response($slot))) if (!$previewid) $title = get_string('previewquestion', 'question', format_string($question->name)) |
Definition at line 224 of file preview.php.
| $options maxmark = $quba->get_question_max_mark($slot) |
Definition at line 126 of file preview.php.
Definition at line 228 of file preview.php.