From 8338bf65936e7b4e877f8d3b63312f21663430df Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 16 Apr 2018 15:45:14 +0800 Subject: [PATCH] MDL-61568 repository_url: Implement null privacy provider --- repository/url/classes/privacy/provider.php | 46 +++++++++++++++++++++ repository/url/lang/en/repository_url.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 repository/url/classes/privacy/provider.php diff --git a/repository/url/classes/privacy/provider.php b/repository/url/classes/privacy/provider.php new file mode 100644 index 00000000000..1c4aef2f60e --- /dev/null +++ b/repository/url/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_url. + * + * @package repository_url + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_url\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_url implementing null_provider. + * + * @copyright 2018 Zig Tan + * @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'; + } +} diff --git a/repository/url/lang/en/repository_url.php b/repository/url/lang/en/repository_url.php index 2714500c416..1fef91d766a 100644 --- a/repository/url/lang/en/repository_url.php +++ b/repository/url/lang/en/repository_url.php @@ -31,3 +31,4 @@ $string['url:view'] = 'Use URL downloader in file picker'; $string['validname'] = 'You must provide a valid file name'; $string['configplugin'] = 'URL repository type configuration'; $string['validfiletype'] = 'You must provide a URL to an image file or a page containing images.'; +$string['privacy:metadata'] = 'The URL downloader repository plugin does not store or tranmit any personal data.';