From e6df7dfedd2d9069f7f9dc06a4c98b8e8223276f Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 16 Apr 2018 15:23:23 +0800 Subject: [PATCH] MDL-61568 repository_coursefiles: Implement null privacy provider --- .../coursefiles/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/repository_coursefiles.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 repository/coursefiles/classes/privacy/provider.php diff --git a/repository/coursefiles/classes/privacy/provider.php b/repository/coursefiles/classes/privacy/provider.php new file mode 100644 index 00000000000..ea3cc6e7acc --- /dev/null +++ b/repository/coursefiles/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_coursefiles. + * + * @package repository_coursefiles + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_coursefiles\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_coursefiles 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/coursefiles/lang/en/repository_coursefiles.php b/repository/coursefiles/lang/en/repository_coursefiles.php index 1b92cd80241..c92a9c9262e 100644 --- a/repository/coursefiles/lang/en/repository_coursefiles.php +++ b/repository/coursefiles/lang/en/repository_coursefiles.php @@ -30,3 +30,4 @@ $string['remember'] = 'Remember me'; $string['pluginname_help'] = 'Legacy course files'; $string['pluginname'] = 'Legacy course files'; $string['coursefiles:view'] = 'Use course files repository plugin'; +$string['privacy:metadata'] = 'The Legacy course files repository plugin does not store or transmit any personal data.';