Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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