Skip to content

Commit

Permalink
MDL-66609 core_h5p: New core_h5p subsystem
Browse files Browse the repository at this point in the history
New H5P libraries have been added to Moodle core_h5p in /lib/h5p.
  • Loading branch information
Amaia Anabitarte authored and andrewnicols committed Oct 29, 2019
1 parent 50a1d93 commit 4589956
Show file tree
Hide file tree
Showing 51 changed files with 15,480 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Expand Up @@ -63,6 +63,7 @@ lib/geopattern-php/
lib/php-jwt/
lib/babel-polyfill/
lib/emoji-data/
lib/h5p/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
Expand All @@ -86,4 +87,4 @@ theme/boost/amd/src/toast.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/boost/scss/fontawesome/
theme/boost/scss/fontawesome/
3 changes: 2 additions & 1 deletion .stylelintignore
Expand Up @@ -64,6 +64,7 @@ lib/geopattern-php/
lib/php-jwt/
lib/babel-polyfill/
lib/emoji-data/
lib/h5p/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
Expand All @@ -87,4 +88,4 @@ theme/boost/amd/src/toast.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/boost/scss/fontawesome/
theme/boost/scss/fontawesome/
45 changes: 45 additions & 0 deletions h5p/classes/privacy/provider.php
@@ -0,0 +1,45 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Privacy provider implementation for h5p core subsytem.
*
* @package core_h5p
* @copyright 2019 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace core_h5p\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy provider implementation for h5p core subsystem.
*
* @copyright 2019 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {
/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
*
* @return string
*/
public static function get_reason() : string {
return 'privacy:metadata';
}
}
24 changes: 24 additions & 0 deletions lang/en/h5p.php
@@ -0,0 +1,24 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'h5p', language 'en', branch 'master'
*
* @package core_h5p
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['privacy:metadata'] = 'H5P subsystem does not store any personal data.';
8 changes: 8 additions & 0 deletions lib/classes/component.php
Expand Up @@ -90,6 +90,14 @@ class core_component {
'RedeyeVentures\\GeoPattern' => 'lib/geopattern-php/GeoPattern',
'MongoDB' => 'cache/stores/mongodb/MongoDB',
'Firebase\\JWT' => 'lib/php-jwt/src',
'H5PCore' => '/lib/h5p/h5p.classes',
'H5PFrameworkInterface' => '/lib/h5p/h5p.classes',
'H5PContentValidator' => 'lib/h5p/h5p.classes',
'H5PValidator' => '/lib/h5p/h5p.classes',
'H5PStorage' => '/lib/h5p/h5p.classes',
'H5PDevelopment' => '/lib/h5p/h5p-development.class',
'H5PFileStorage' => '/lib/h5p/h5p-file-storage.interface',
'H5PMetadata' => '/lib/h5p/h5p-metadata.class',
);

/**
Expand Down
1 change: 1 addition & 0 deletions lib/components.json
Expand Up @@ -77,6 +77,7 @@
"group": "group",
"help": null,
"hub": null,
"h5p": "h5p",
"imscc": null,
"install": null,
"iso6392": null,
Expand Down

0 comments on commit 4589956

Please sign in to comment.