Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_h5p

Namespaces

namespace  core\task
  
 
namespace  core_h5p
  
 
namespace  core_h5p\form
  
 
namespace  core_h5p\local\library
  
 
namespace  core_h5p\output
  
 
namespace  core_h5p\privacy
  
 

Classes

class  core\task\h5p_clean_orphaned_records_task
 
class  core_h5p\api
 Contains API class for the H5P area. More...
 
class  core_h5p\core
 
class  core_h5p\editor
 H5P editor class, for editing local H5P content. More...
 
class  core_h5p\editor_ajax
 Moodle's implementation of the H5P Editor Ajax interface. More...
 
class  core_h5p\editor_framework
 Moodle's implementation of the H5P Editor storage interface. More...
 
class  core_h5p\external
 
class  core_h5p\factory
 H5P factory class. More...
 
class  core_h5p\file_storage
 Class to handle storage and export of H5P Content. More...
 
class  core_h5p\form\editcontent_form
 
class  core_h5p\form\uploadlibraries_form
 Upload a zip or h5p content to update the content libraries. More...
 
class  core_h5p\framework
 
class  core_h5p\local\library\autoloader
 H5P autoloader management class. More...
 
class  core_h5p\local\library\handler
 Base class for library handlers. More...
 
class  core_h5p\output\h5peditor
 Displays the H5P Editor. More...
 
class  core_h5p\output\libraries
 Class to help display H5P library management table. More...
 
class  core_h5p\output\renderer
 
class  core_h5p\player
 H5P player class, for displaying any local H5P content. More...
 
class  core_h5p\privacy\provider
 Privacy provider implementation for h5p core subsystem. More...
 
class  core_h5p_generator
 

Functions

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

Variables

 $defaulth5plib = core_h5p\local\library\autoloader::get_default_handler_library()
 

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.