Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)

Functions

 quiz_statistics_question_preview_pluginfile ($previewcontext, $questionid, $filecontext, $filecomponent, $filearea, $args, $forcedownload, $options=[])
 Serve questiontext files in the question text when they are displayed in this report.
 

Detailed Description

Function Documentation

◆ quiz_statistics_question_preview_pluginfile()

quiz_statistics_question_preview_pluginfile ( $previewcontext,
$questionid,
$filecontext,
$filecomponent,
$filearea,
$args,
$forcedownload,
$options = [] )

Serve questiontext files in the question text when they are displayed in this report.

Parameters
context$previewcontextthe quiz context
int$questionidthe question id.
context$filecontextthe file (question) context
string$filecomponentthe component the file belongs to.
string$fileareathe file area.
array$argsremaining file args.
bool$forcedownload,.
array$optionsadditional options affecting the file serving.