Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
qtype_shortanswer

Namespaces

namespace  qtype_shortanswer\privacy
  
 

Classes

class  qtype_shortanswer\privacy\provider
 Privacy Subsystem for qtype_shortanswer implementing user_preference_provider. More...
 
class  qtype_shortanswer_test_helper
 Test helper class for the shortanswer question type. More...
 

Functions

 qtype_shortanswer_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Checks file access for short answer questions.
 

Detailed Description

Function Documentation

◆ qtype_shortanswer_pluginfile()

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

Checks file access for short answer 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