Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Moodle Namespace Reference

  More...

Classes

class  H5PContentHubSyncStatus
 
class  H5PContentStatus
 
class  H5PContentValidator
 
class  H5PCore
 Functions and storage shared by the other H5P classes. More...
 
class  H5PDevelopment
 
class  H5PDisplayOptionBehaviour
 
class  H5peditor
 
interface  H5PEditorAjaxInterface
 
class  H5peditorFile
 
interface  H5peditorStorage
 
interface  H5PFileStorage
 Interface needed to handle storage and export of H5P Content. More...
 
interface  H5PFrameworkInterface
 
class  H5PHubEndpoints
 
class  H5PMetadata
 
class  H5PPermission
 
class  H5PStorage
 This class is used for saving H5P files. More...
 
class  H5PValidator
 This class is used for validating H5P files. More...
 

Functions

 __construct (H5PFrameworkInterface $H5PFramework, H5PCore $H5PCore)
 Constructor for the H5PExport.
 
 createExportFile ($content)
 Return path to h5p package.
 
 deleteExport ($content)
 Delete .h5p file.
 

Variables

 $h5pC
 
Class H5PExport
 This class is used for exporting zips.
 

Detailed Description

 

Function Documentation

◆ __construct()

Moodle\__construct ( H5PFrameworkInterface $H5PFramework,
H5PCore $H5PCore )

Constructor for the H5PExport.

Parameters
H5PFrameworkInterface | object$H5PFrameworkThe frameworks implementation of the H5PFrameworkInterface
H5PCore$H5PCoreReference to an instance of H5PCore

◆ createExportFile()

Moodle\createExportFile ( $content)

Return path to h5p package.

Creates package if not already created

Parameters
array$content
Return values
string

◆ deleteExport()

Moodle\deleteExport ( $content)

Delete .h5p file.

Parameters
array$contentobject

Variable Documentation

◆ H5PExport

Class Moodle\H5PExport
Initial value:
{
public $h5pF

This class is used for exporting zips.