Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Functions | |
question_preview_action_url ($questionid, $qubaid, question_preview_options $options, $context) | |
The the URL to use for actions relating to this preview. | |
question_preview_form_url ($questionid, $context, $previewid=null) | |
The the URL to use for actions relating to this preview. | |
question_preview_question_pluginfile ($course, $context, $component, $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) | |
Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview. | |
restart_preview ($previewid, $questionid, $displayoptions, $context) | |
Delete the current preview, if any, and redirect to start a new preview. | |
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. |
context | $context |
question_preview_form_url | ( | $questionid, | |
$context, | |||
$previewid = null ) |
The the URL to use for actions relating to this preview.
int | $questionid | the question being previewed. |
context | $context | the current moodle context. |
int | $previewid | optional previewid to sign post saved previewed answers. |
question_preview_question_pluginfile | ( | $course, | |
$context, | |||
$component, | |||
$filearea, | |||
$qubaid, | |||
$slot, | |||
$args, | |||
$forcedownload, | |||
$fileoptions ) |
Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview.
stdClass | $course | course settings object |
stdClass | $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. |
array | $fileoptions |
void | false if file not found, does not return if found - justsend the file |
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 |