H5P autoloader management class.
Copyright: | 2019 Sara Arjona <sara@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 169 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
autoloader:: (10 methods):
get_all_handlers()
get_default_handler()
get_default_handler_library()
get_handler_classname()
get_h5p_version()
get_h5p_core_library_url()
get_h5p_editor_library_url()
get_h5p_editor_library_base()
get_h5p_string()
register()
Class: autoloader - X-Ref
H5P autoloader management class.get_all_handlers() X-Ref |
Returns the list of plugins that can work as H5P library handlers (have class PLUGINNAME\local\library\handler) return: array with the format: pluginname => class |
get_default_handler() X-Ref |
Returns the default H5P library handler class. return: string|null H5P library handler class |
get_default_handler_library() X-Ref |
Returns the default H5P library handler. return: string|null H5P library handler |
get_handler_classname() X-Ref |
Returns the current H5P library handler class. return: string H5P library handler class |
get_h5p_version() X-Ref |
Get the current version of the H5P core library. return: string |
get_h5p_core_library_url(?string $filepath = null, ?array $params = null) X-Ref |
Get a URL for the current H5P Core Library. return: null|moodle_url param: string $filepath The path within the h5p root param: array $params these params override current params or add new |
get_h5p_editor_library_url(?string $filepath = null, ?array $params = null) X-Ref |
Get a URL for the current H5P Editor Library. return: null|\moodle_url The moodle_url instance to a file in the H5P Editor library. param: string $filepath The path within the h5p root. param: array $params These params override current params or add new. |
get_h5p_editor_library_base(?string $filepath = null) X-Ref |
Get the base path for the current H5P Editor Library. return: string Path to a file in the H5P Editor library. param: string $filepath The path within the h5p root. |
get_h5p_string(string $identifier, string $language) X-Ref |
Returns a localized string, if it exists in the h5plib plugin and the value it's different from the English version. return: string|null The localized string or null if it doesn't exist in this H5P library plugin. param: string $identifier The key identifier for the localized string param: string $language Language to get the localized string. |
register() X-Ref |
Register the H5P autoloader. |