This class is used for validating H5P files.
More...
This class is used for validating H5P files.
◆ __construct()
Moodle\H5PValidator::__construct |
( |
| $H5PFramework, |
|
|
| $H5PCore ) |
Constructor for the H5PValidator.
- Parameters
-
H5PFrameworkInterface | $H5PFramework | The frameworks implementation of the H5PFrameworkInterface |
H5PCore | $H5PCore | |
◆ getLibraryData()
Moodle\H5PValidator::getLibraryData |
( |
| $file, |
|
|
| $filePath, |
|
|
| $tmpDir ) |
Validates a H5P library.
- Parameters
-
string | $file | Name of the library folder |
string | $filePath | Path to the library folder |
string | $tmpDir | Path to the temporary upload directory |
- Return values
-
boolean|array | H5P data from library.json and semantics if the library is valid FALSE if the library isn't valid |
◆ isValidPackage()
Moodle\H5PValidator::isValidPackage |
( |
| $skipContent = FALSE, |
|
|
| $upgradeOnly = FALSE ) |
Validates a .h5p file.
- Parameters
-
bool | $skipContent | |
bool | $upgradeOnly | |
- Return values
-
bool | TRUE if the .h5p file is valid TRUE if the .h5p file is valid |
The documentation for this class was generated from the following file:
- h5p/h5plib/v126/joubel/core/h5p.classes.php