Skip to content

Commit

Permalink
media_jwplayer: Add privacy provider (php7).
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Jun 26, 2018
1 parent d3f51bd commit 551136a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
46 changes: 46 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?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 Subsystem implementation for media_jwplayer.
*
* @package media_jwplayer
* @copyright 2018 Ruslan Kabalin, Lancaster University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace media_jwplayer\privacy;

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

/**
* Privacy Subsystem for media_jwplayer implementing null_provider.
*
* @copyright 2018 Ruslan Kabalin, Lancaster University
* @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';
}
}
1 change: 1 addition & 0 deletions lang/en/media_jwplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
$string['paideditionsconfig'] = 'Settings for paid editions of JW Player';
$string['paideditionsconfigdescr'] = 'Settings below only work with Pro, Premium and Ads editions. They have no effect for free edition.';
$string['pluginname'] = 'JW Player';
$string['privacy:metadata'] = 'JWPlayer plugin does not store any personal data.';
$string['standardskin'] = 'standard';
$string['supportrtmp'] = 'RTMP streams';
$string['supportrtmpdesc'] = 'If enabled, links that start with rtmp:// will be handled by the plugin, irrespective of whether its extension is enabled in the supported extensions setting.';
Expand Down
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

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

$plugin->version = 2017071000; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2016120500; // Requires Moodle 3.2
$plugin->version = 2018072600; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2018051700; // Requires Moodle 3.5
$plugin->component = 'media_jwplayer'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_BETA;
$plugin->release = '7-0.1 for Moodle 3.2+, JW7 CDN 7.12.1)';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '7-0.2 for Moodle 3.2+, JW7 CDN 7.12.13)';

0 comments on commit 551136a

Please sign in to comment.