Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
<?php

> namespace Moodle;
/** * Handles Ajax functionality that must be implemented separately for each of the * H5P plugins */ interface H5PEditorAjaxInterface { /** * Gets latest library versions that exists locally * * @return array Latest version of all local libraries */ public function getLatestLibraryVersions(); /** * Get locally stored Content Type Cache. If machine name is provided * it will only get the given content type from the cache * * @param $machineName * * @return array|object|null Returns results from querying the database */ public function getContentTypeCache($machineName = NULL); /** * Gets recently used libraries for the current author * * @return array machine names. The first element in the array is the * most recently used. */ public function getAuthorsRecentlyUsedLibraries(); /** * Checks if the provided token is valid for this endpoint * * @param string $token The token that will be validated for. * * @return bool True if successful validation */ public function validateEditorToken($token); /** * Get translations for a language for a list of libraries * * @param array $libraries An array of libraries, in the form "<machineName> <majorVersion>.<minorVersion> * @param string $language_code * @return array */ public function getTranslations($libraries, $language_code); }