From ef86897b465c4d5b21619bfaab58c5eb37f2ec1f Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 6 Mar 2018 11:59:48 +0800 Subject: [PATCH] MDL-61597 calendartype: Implement the privacy API --- .../gregorian/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/calendartype_gregorian.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 calendar/type/gregorian/classes/privacy/provider.php diff --git a/calendar/type/gregorian/classes/privacy/provider.php b/calendar/type/gregorian/classes/privacy/provider.php new file mode 100644 index 00000000000..8f7f01722c9 --- /dev/null +++ b/calendar/type/gregorian/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_activity_modules. + * + * @package calendartype_gregorian + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace calendartype_gregorian\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for calendartype_gregorian implementing null_provider. + * + * @copyright 2018 Andrew Nicols + * @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/calendar/type/gregorian/lang/en/calendartype_gregorian.php b/calendar/type/gregorian/lang/en/calendartype_gregorian.php index 9d2c5ba4529..8471cf8cdaf 100644 --- a/calendar/type/gregorian/lang/en/calendartype_gregorian.php +++ b/calendar/type/gregorian/lang/en/calendartype_gregorian.php @@ -24,3 +24,4 @@ $string['name'] = 'Gregorian'; $string['pluginname'] = 'Gregorian calendar type'; +$string['privacy:metadata'] = 'The Gregorian Calendar format plugin does not store any personal data.';