H5P autoloader management class.
More...
|
static | get_all_handlers () |
| Returns the list of plugins that can work as H5P library handlers (have class PLUGINNAME\local\library\handler)
|
|
static | get_default_handler () |
| Returns the default H5P library handler class.
|
|
static | get_default_handler_library () |
| Returns the default H5P library handler.
|
|
static | get_h5p_core_library_url (?string $filepath=null, ?array $params=null) |
| Get a URL for the current H5P Core Library.
|
|
static | get_h5p_editor_library_base (?string $filepath=null) |
| Get the base path for the current H5P Editor Library.
|
|
static | get_h5p_editor_library_url (?string $filepath=null, ?array $params=null) |
| Get a URL for the current H5P Editor Library.
|
|
static | get_h5p_string (string $identifier, string $language) |
| Returns a localized string, if it exists in the h5plib plugin and the value it's different from the English version.
|
|
static | get_h5p_version () |
| Get the current version of the H5P core library.
|
|
static | get_handler_classname () |
| Returns the current H5P library handler class.
|
|
static | register () |
| Register the H5P autoloader.
|
|
H5P autoloader management class.
- Copyright
- 2019 Sara Arjona sara@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_all_handlers()
static core_h5p\local\library\autoloader::get_all_handlers |
( |
| ) |
|
|
static |
Returns the list of plugins that can work as H5P library handlers (have class PLUGINNAME\local\library\handler)
- Return values
-
array | with the format: pluginname => class |
◆ get_default_handler()
static core_h5p\local\library\autoloader::get_default_handler |
( |
| ) |
|
|
static |
Returns the default H5P library handler class.
- Return values
-
string|null | H5P library handler class |
◆ get_default_handler_library()
static core_h5p\local\library\autoloader::get_default_handler_library |
( |
| ) |
|
|
static |
Returns the default H5P library handler.
- Return values
-
string|null | H5P library handler |
◆ get_h5p_core_library_url()
static core_h5p\local\library\autoloader::get_h5p_core_library_url |
( |
?string | $filepath = null, |
|
|
?array | $params = null ) |
|
static |
Get a URL for the current H5P Core Library.
- Parameters
-
string | $filepath | The path within the h5p root |
array | $params | these params override current params or add new |
- Return values
-
◆ get_h5p_editor_library_base()
static core_h5p\local\library\autoloader::get_h5p_editor_library_base |
( |
?string | $filepath = null | ) |
|
|
static |
Get the base path for the current H5P Editor Library.
- Parameters
-
string | $filepath | The path within the h5p root. |
- Return values
-
string | Path to a file in the H5P Editor library. |
◆ get_h5p_editor_library_url()
static core_h5p\local\library\autoloader::get_h5p_editor_library_url |
( |
?string | $filepath = null, |
|
|
?array | $params = null ) |
|
static |
Get a URL for the current H5P Editor Library.
- Parameters
-
string | $filepath | The path within the h5p root. |
array | $params | These params override current params or add new. |
- Return values
-
null|moodle_url | The moodle_url instance to a file in the H5P Editor library. |
◆ get_h5p_string()
static core_h5p\local\library\autoloader::get_h5p_string |
( |
string | $identifier, |
|
|
string | $language ) |
|
static |
Returns a localized string, if it exists in the h5plib plugin and the value it's different from the English version.
- Parameters
-
string | $identifier | The key identifier for the localized string |
string | $language | Language to get the localized string. |
- Return values
-
string|null | The localized string or null if it doesn't exist in this H5P library plugin. |
◆ get_h5p_version()
static core_h5p\local\library\autoloader::get_h5p_version |
( |
| ) |
|
|
static |
Get the current version of the H5P core library.
- Return values
-
◆ get_handler_classname()
static core_h5p\local\library\autoloader::get_handler_classname |
( |
| ) |
|
|
static |
Returns the current H5P library handler class.
- Return values
-
string | H5P library handler class |
- Exceptions
-
The documentation for this class was generated from the following file:
- h5p/classes/local/library/autoloader.php