Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)

Directories

directory h5plib
  
 

Functions

 core_h5p_pluginfile ($course, $cm, $context, string $filearea, array $args, bool $forcedownload, array $options=[])
 Serve the files from the core_h5p file areas.
 

Detailed Description

Function Documentation

◆ core_h5p_pluginfile()

core_h5p_pluginfile ( $course,
$cm,
$context,
string $filearea,
array $args,
bool $forcedownload,
array $options = [] )

Serve the files from the core_h5p file areas.

Parameters
stdClass$coursethe course object
stdClass$cmthe course module object
stdClass$contextthe newmodule's 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
boolReturns false if we don't find a file.