Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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 = 2023041800
 
$plugin component = 'customfield_textarea'
 
$plugin version = 2023042400
 

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