This class is used for saving H5P files.
More...
|
| $contentId = NULL |
|
| $h5pC |
|
| $h5pF |
|
This class is used for saving H5P files.
◆ __construct()
Constructor for the H5PStorage.
- Parameters
-
H5PFrameworkInterface | object | $H5PFramework | The frameworks implementation of the H5PFrameworkInterface |
H5PCore | $H5PCore | |
◆ copyPackage()
Moodle\H5PStorage::copyPackage |
( |
| $contentId, |
|
|
| $copyFromId, |
|
|
| $contentMainId = NULL ) |
Copy/clone an H5P package.
May for instance be used if the content is being revisioned without uploading a new H5P package
- Parameters
-
int | $contentId | The new content id |
int | $copyFromId | The content id of the content that should be cloned |
int | $contentMainId | The main id of the new content (used in frameworks that support revisioning) |
◆ deletePackage()
Moodle\H5PStorage::deletePackage |
( |
| $content | ) |
|
Delete an H5P package.
- Parameters
-
◆ savePackage()
Moodle\H5PStorage::savePackage |
( |
| $content = NULL, |
|
|
| $contentMainId = NULL, |
|
|
| $skipContent = FALSE, |
|
|
| $options = array() ) |
Saves a H5P file.
- Parameters
-
null | $content | |
int | $contentMainId | The main id for the content we are saving. This is used if the framework we're integrating with uses content id's and version id's |
bool | $skipContent | |
array | $options | |
- Return values
-
bool | TRUE if one or more libraries were updated TRUE if one or more libraries were updated FALSE otherwise |
The documentation for this class was generated from the following file:
- h5p/h5plib/v126/joubel/core/h5p.classes.php