|
| __construct (H5PFrameworkInterface $H5PFramework, $filesPath, $language, $libraries=NULL) |
| Constructor.
|
|
| getLanguage ($name, $majorVersion, $minorVersion, $language) |
| Get translations for the given library.
|
|
| getLibraries () |
|
| getLibrary ($name, $majorVersion, $minorVersion) |
| Get library.
|
|
| getSemantics ($name, $majorVersion, $minorVersion) |
| Get semantics for the given library.
|
|
|
static | libraryToString ($name, $majorVersion, $minorVersion) |
| Writes library as string on the form "name majorVersion.minorVersion".
|
|
|
const | MODE_CONTENT = 1 |
|
const | MODE_LIBRARY = 2 |
|
const | MODE_NONE = 0 |
|
◆ __construct()
Moodle\H5PDevelopment::__construct |
( |
H5PFrameworkInterface | $H5PFramework, |
|
|
| $filesPath, |
|
|
| $language, |
|
|
| $libraries = NULL ) |
Constructor.
- Parameters
-
H5PFrameworkInterface | object | $H5PFramework | The frameworks implementation of the H5PFrameworkInterface |
string | $filesPath | Path to where H5P should store its files |
| $language | |
array | $libraries | Optional cache input. |
◆ getLanguage()
Moodle\H5PDevelopment::getLanguage |
( |
| $name, |
|
|
| $majorVersion, |
|
|
| $minorVersion, |
|
|
| $language ) |
Get translations for the given library.
- Parameters
-
string | $name | of the library. |
int | $majorVersion | of the library. |
int | $minorVersion | of the library. |
| $language | |
- Return values
-
◆ getLibraries()
Moodle\H5PDevelopment::getLibraries |
( |
| ) |
|
- Return values
-
array | Libraries in development folder. |
◆ getLibrary()
Moodle\H5PDevelopment::getLibrary |
( |
| $name, |
|
|
| $majorVersion, |
|
|
| $minorVersion ) |
Get library.
- Parameters
-
string | $name | of the library. |
int | $majorVersion | of the library. |
int | $minorVersion | of the library. |
- Return values
-
◆ getSemantics()
Moodle\H5PDevelopment::getSemantics |
( |
| $name, |
|
|
| $majorVersion, |
|
|
| $minorVersion ) |
Get semantics for the given library.
- Parameters
-
string | $name | of the library. |
int | $majorVersion | of the library. |
int | $minorVersion | of the library. |
- Return values
-
◆ libraryToString()
static Moodle\H5PDevelopment::libraryToString |
( |
| $name, |
|
|
| $majorVersion, |
|
|
| $minorVersion ) |
|
static |
Writes library as string on the form "name majorVersion.minorVersion".
- Parameters
-
string | $name | Machine readable library name |
integer | $majorVersion | |
| $minorVersion | |
- Return values
-
string | Library identifier. |
The documentation for this class was generated from the following file:
- h5p/h5plib/v126/joubel/core/h5p-development.class.php