Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
customfield_textarea

Namespaces

namespace  customfield_textarea
  
 
namespace  customfield_textarea\privacy
  
 

Classes

class  customfield_textarea\data_controller
 Class data. More...
 
class  customfield_textarea\field_controller
 Class field. More...
 
class  customfield_textarea\privacy\provider
 Privacy Subsystem for customfield_textarea implementing null_provider. More...
 

Functions

 customfield_textarea_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Serve the files from the customfield_textarea file areas.
 

Variables

 $plugin = 2024041600
 
$plugin component = 'customfield_textarea'
 
$plugin version = 2024042200
 

Detailed Description

Function Documentation

◆ customfield_textarea_pluginfile()

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

Serve the files from the customfield_textarea file areas.

Parameters
stdClass$coursethe course object
stdClass$cmthe course module object
context$contextthe context
string$fileareathe name of the file area
array$argsextra arguments (itemid, path)
bool$forcedownloadwhether or not force download
array$optionsadditional options affecting the file serving
Return values
boolfalse if the file not found, just send the file otherwise and do not return