Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)

Functions

 qtype_multichoice_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Checks file access for multiple choice questions.
 

Detailed Description

Function Documentation

◆ qtype_multichoice_pluginfile()

qtype_multichoice_pluginfile ( $course,
$cm,
$context,
$filearea,
$args,
$forcedownload,
array $options = array() )

Checks file access for multiple choice questions.

Parameters
stdClass$coursecourse object
stdClass$cmcourse module object
stdClass$contextcontext object
string$fileareafile area
array$argsextra arguments
bool$forcedownloadwhether or not force download
array$optionsadditional options affecting the file serving
Return values
bool