From d9602ba8fa687ae63012af210bc160f410545801 Mon Sep 17 00:00:00 2001 From: Nicolas Dunand Date: Wed, 23 May 2018 08:41:45 +0200 Subject: [PATCH] Implemented privacy API (null_provider) --- classes/privacy/provider.php | 40 ++++++++++++++++++++++++++++++++++++ lang/en/choicegroup.php | 1 + 2 files changed, 41 insertions(+) create mode 100644 classes/privacy/provider.php diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..8d57be6 --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,40 @@ +. + +/** + * Privacy Subsystem implementation for mod_choicegroup. + * + * @package mod_choicegroup + * @copyright 2018 Nicolas Dunand + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mod_choicegroup\privacy; + +defined('MOODLE_INTERNAL') || die(); + +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/lang/en/choicegroup.php b/lang/en/choicegroup.php index 630bf5b..2e9f846 100644 --- a/lang/en/choicegroup.php +++ b/lang/en/choicegroup.php @@ -152,5 +152,6 @@ $string['collapse_all_groupings'] = 'Collapse All Groupings'; $string['double_click_grouping_legend'] = 'Double click on a grouping to expand/collapse individually.'; $string['double_click_group_legend'] = 'Double click on a group to add it.'; +$string['privacy:metadata'] = 'The Group Choice plugin does not store any personal data. All user data is stored by the group component of Moodle core (core_group).';