MDL-76691 core_h5p: Add core lib changes after upgrading it
commitca37dd3bafbede2c964fce82945c775c86a89ad8
authorSara Arjona <sara@moodle.com>
Fri, 16 Dec 2022 10:55:26 +0000 (16 11:55 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 6 Feb 2023 15:48:07 +0000 (6 16:48 +0100)
tree183544d3812a373bc74435ce86afd47bd2980ea2
parentd18d90602b4d528f9e3049befdbd468865d05478
MDL-76691 core_h5p: Add core lib changes after upgrading it

Apart from applying the points described in readme_moodle.txt, the following
changes have been done too:

- The parameter $folderName from the method libraryToString() have been removed
and a new method, libraryToFolderName() has been added to the H5PCore API.
References to libraryToString() with the $folderName set to true have been
replaced to the new method.
- missing-main-library has been added and replaces in some cases to
missing-required-library.
- The framework saveLibraryData method must be called before saveLibrary
(h5p.classes.php file has been patched to leave the original order because
libraryid is required to save the itemid).
- The getLibraryId() method from H5PCore has been rewritten to use MUC, in
order to avoid PHPUnit failures.
20 files changed:
contentbank/contenttype/h5p/tests/behat/teacher_upload_content.feature
h5p/classes/api.php
h5p/classes/core.php
h5p/classes/file_storage.php
h5p/classes/framework.php
h5p/h5plib/v124/joubel/core/h5p-default-storage.class.php
h5p/h5plib/v124/joubel/core/h5p-development.class.php
h5p/h5plib/v124/joubel/core/h5p-event-base.class.php
h5p/h5plib/v124/joubel/core/h5p-file-storage.interface.php
h5p/h5plib/v124/joubel/core/h5p-metadata.class.php
h5p/h5plib/v124/joubel/core/h5p.classes.php
h5p/h5plib/v124/joubel/core/readme_moodle.txt
h5p/h5plib/v124/thirdpartylibs.xml
h5p/tests/helper_test.php
lang/en/cache.php
lang/en/h5p.php
lib/db/caches.php
lib/editor/atto/plugins/h5p/tests/behat/h5p.feature
lib/editor/tiny/plugins/h5p/tests/behat/h5p.feature
mod/h5pactivity/tests/behat/add_h5pactivity.feature