Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
previewlib.php File Reference

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.