1 |
efrain |
1 |
This files describes API changes in core libraries and APIs,
|
|
|
2 |
information provided here is intended especially for developers.
|
|
|
3 |
|
|
|
4 |
=== 4.4 ===
|
|
|
5 |
* Added new methods, 'generate_custom_styles' and 'get_custom_styles' to 'core_h5p\file_storage' to generate then
|
|
|
6 |
provide a CSS file to be used by the 'core_h5p\output\renderer\h5p_alter_styles' method, reference:
|
|
|
7 |
(https://h5p.org/documentation/for-developers/visual-changes) when there is custom CSS in the 'core_h5p\h5pcustomcss'
|
|
|
8 |
setting. This will then apply to the H5P content.
|
|
|
9 |
|
|
|
10 |
=== 4.3 ===
|
|
|
11 |
* The `\core_h5p\file_storage::EDITOR_FILEAREA` constant has been removed, as all editor files are stored in user draft
|
|
|
12 |
|
|
|
13 |
=== 4.0 ===
|
|
|
14 |
* Added new methods to api: get_original_content_from_pluginfile_url and can_edit_content.
|
|
|
15 |
* Added edit.php and editcontent_form class, for modifying H5P content given an H5P identifier (from the h5p table).
|
|
|
16 |
* Added a new parameter to the player::display method, to define whether the edit button should be displayed below the
|
|
|
17 |
H5P content or not. Default value for this parameter is false.
|
|
|
18 |
* H5P subsystem is allowed to act as an API (level 2) too.
|
|
|
19 |
* Plugins can now implement h5p\canedit::can_edit_content method to define, if required, any custom behaviour for deciding
|
|
|
20 |
whether an H5P content can be edited or not. The specific plugin check will completely override the generic check.
|
|
|
21 |
* The third-party library h5p/h5plib/v124/core has been updated to version 1.24.3.
|
|
|
22 |
|
|
|
23 |
=== 3.11 ===
|
|
|
24 |
* Added $skipcapcheck parameter to H5P constructor, api::create_content_from_pluginfile_url() and
|
|
|
25 |
api::get_content_from_pluginfile_url() to let skip capabilities check to get the pluginfile URL.
|
|
|
26 |
* Added new field "enabled" to h5p_libraries to let define if a content type is enabled (1) or not (0).
|
|
|
27 |
For now, only runnable content-types can be disabled/enabled. When a content-type is disabled, their
|
|
|
28 |
contents are not displayed and no new contents using it can be created/uploaded.
|
|
|
29 |
Some extra methods have been added to the api too in order to support this field:
|
|
|
30 |
- set_library_enabled
|
|
|
31 |
- is_library_enabled
|
|
|
32 |
- is_valid_package
|
|
|
33 |
* The third-party library h5p/h5plib/v124/core has been updated to version 1.24.2.
|
|
|
34 |
|
|
|
35 |
=== 3.10 ===
|
|
|
36 |
* Added a new cache for h5p_library_files (MDL-69207)
|
|
|
37 |
|
|
|
38 |
=== 3.9 ===
|
|
|
39 |
* A new plugintype has been created, h5plib, for having installed more
|
|
|
40 |
than one H5P library version.
|
|
|
41 |
* H5P third-party libraries have been moved from /lib/h5p to h5p/h5plib/v124,
|
|
|
42 |
as an h5plib plugintype.
|
|
|
43 |
* H5P Editor PHP library added to h5plib v124 plugin.
|