Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Moodle\H5PEditorAjaxInterface Interface Reference
Inheritance diagram for Moodle\H5PEditorAjaxInterface:
core_h5p\editor_ajax

Public Member Functions

 getAuthorsRecentlyUsedLibraries ()
 Gets recently used libraries for the current author.
 
 getContentTypeCache ($machineName=NULL)
 Get locally stored Content Type Cache.
 
 getLatestLibraryVersions ()
 Gets latest library versions that exists locally.
 
 getTranslations ($libraries, $language_code)
 Get translations for a language for a list of libraries.
 
 validateEditorToken ($token)
 Checks if the provided token is valid for this endpoint.
 

Member Function Documentation

◆ getAuthorsRecentlyUsedLibraries()

Moodle\H5PEditorAjaxInterface::getAuthorsRecentlyUsedLibraries ( )

Gets recently used libraries for the current author.

Return values
arraymachine 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
$machineName
Return values
array|object|nullReturns results from querying the database

Implemented in core_h5p\editor_ajax.

◆ getLatestLibraryVersions()

Moodle\H5PEditorAjaxInterface::getLatestLibraryVersions ( )

Gets latest library versions that exists locally.

Return values
arrayLatest 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$librariesAn array of libraries, in the form "<machineName> <majorVersion>.<minorVersion>
string$language_code
Return values
array

Implemented in core_h5p\editor_ajax.

◆ validateEditorToken()

Moodle\H5PEditorAjaxInterface::validateEditorToken ( $token)

Checks if the provided token is valid for this endpoint.

Parameters
string$tokenThe token that will be validated for.
Return values
boolTrue if successful validation

Implemented in core_h5p\editor_ajax.


The documentation for this interface was generated from the following file: