|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | preview_options_form |
| class | question_preview_options |
Namespaces | |
| namespace | moodlecore |
Functions | |
| question_preview_question_pluginfile ($course, $context, $component, $filearea, $qubaid, $slot, $args, $forcedownload) | |
| question_preview_action_url ($questionid, $qubaid, question_preview_options $options, $context) | |
| question_preview_form_url ($questionid, $context) | |
| restart_preview ($previewid, $questionid, $displayoptions, $context) | |
| question_preview_action_url | ( | $ | questionid, |
| $ | qubaid, | ||
| question_preview_options $ | options, | ||
| $ | context | ||
| ) |
The the URL to use for actions relating to this preview.
| int | $questionid | the question being previewed. |
| int | $qubaid | the id of the question usage for this preview. |
| question_preview_options | $options | the options in use. |
Definition at line 265 of file previewlib.php.

| question_preview_form_url | ( | $ | questionid, |
| $ | context | ||
| ) |
The the URL to use for actions relating to this preview.
| int | $questionid | the question being previewed. |
| int | $qubaid | the id of the question usage for this preview. |
| question_preview_options | $options | the options in use. |
Definition at line 286 of file previewlib.php.
| question_preview_question_pluginfile | ( | $ | course, |
| $ | context, | ||
| $ | component, | ||
| $ | filearea, | ||
| $ | qubaid, | ||
| $ | slot, | ||
| $ | args, | ||
| $ | forcedownload | ||
| ) |
Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview.
| object | $course | course settings object |
| object | $context | context object |
| string | $component | the name of the component we are serving files for. |
| string | $filearea | the name of the file area. |
| int | $qubaid | the question_usage this image belongs to. |
| int | $slot | the relevant slot within the usage. |
| array | $args | the remaining bits of the file path. |
| bool | $forcedownload | whether the user must be forced to download the file. |
Definition at line 227 of file previewlib.php.


| restart_preview | ( | $ | previewid, |
| $ | questionid, | ||
| $ | displayoptions, | ||
| $ | context | ||
| ) |
Delete the current preview, if any, and redirect to start a new preview.
| int | $previewid | |
| int | $questionid | |
| object | $displayoptions | |
| object | $context |
Definition at line 305 of file previewlib.php.
