Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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