◆ getAuthorsRecentlyUsedLibraries()
Moodle\H5PEditorAjaxInterface::getAuthorsRecentlyUsedLibraries |
( |
| ) |
|
Gets recently used libraries for the current author.
- Return values
-
array | machine names. The first element in the array is the most recently used. |
Implemented in core_h5p\editor_ajax.
◆ getContentTypeCache()
Moodle\H5PEditorAjaxInterface::getContentTypeCache |
( |
| $machineName = NULL | ) |
|
Get locally stored Content Type Cache.
If machine name is provided it will only get the given content type from the cache
- Parameters
-
- Return values
-
array|object|null | Returns results from querying the database |
Implemented in core_h5p\editor_ajax.
◆ getLatestLibraryVersions()
Moodle\H5PEditorAjaxInterface::getLatestLibraryVersions |
( |
| ) |
|
Gets latest library versions that exists locally.
- Return values
-
array | Latest version of all local libraries |
Implemented in core_h5p\editor_ajax.
◆ getTranslations()
Moodle\H5PEditorAjaxInterface::getTranslations |
( |
| $libraries, |
|
|
| $language_code ) |
Get translations for a language for a list of libraries.
- Parameters
-
array | $libraries | An array of libraries, in the form "<machineName> <majorVersion>.<minorVersion> |
string | $language_code | |
- Return values
-
Implemented in core_h5p\editor_ajax.
◆ validateEditorToken()
Moodle\H5PEditorAjaxInterface::validateEditorToken |
( |
| $token | ) |
|
Checks if the provided token is valid for this endpoint.
- Parameters
-
string | $token | The token that will be validated for. |
- Return values
-
bool | True if successful validation |
Implemented in core_h5p\editor_ajax.
The documentation for this interface was generated from the following file:
- h5p/h5plib/v126/joubel/editor/h5peditor-ajax.interface.php