From f143179a66dafc3a7ef95b3c68b55541c6aa2f48 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 12 Apr 2018 10:14:07 +0800 Subject: [PATCH] MDL-61948 core_media: Implement null privacy provider --- lang/en/media.php | 1 + media/classes/privacy/provider.php | 46 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 media/classes/privacy/provider.php diff --git a/lang/en/media.php b/lang/en/media.php index 134c92195e1ab..03fe641ae4e36 100644 --- a/lang/en/media.php +++ b/lang/en/media.php @@ -33,6 +33,7 @@ $string['mediaformats_desc'] = 'When players are enabled, media files can be embedded using the multimedia plugins filter (if enabled) or using a file or URL resource. When not enabled, these formats are not embedded and users can download or follow links to these resources. Where two players support the same format, enabling both increases compatibility across different devices such as mobile phones. It is possible to increase compatibility further by providing multiple files in different formats for a single audio or video clip.'; +$string['privacy:metadata'] = 'Media embedding does not store any personal data.'; $string['supports'] = 'Supports'; $string['videoextensions'] = 'Video: {$a}'; diff --git a/media/classes/privacy/provider.php b/media/classes/privacy/provider.php new file mode 100644 index 0000000000000..9b77205a0d8ee --- /dev/null +++ b/media/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for core_media. + * + * @package core_media + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace core_media\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for core_media. + * + * @copyright 2018 Mihail Geshoski + * @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'; + } +}