From 59a8a5c0b8eb9bb47c490939ab66283a06b72084 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Mudr=C3=A1k?= Date: Fri, 27 Apr 2018 11:19:25 +0200 Subject: [PATCH] MDL-61905 workshop: Implement privacy API in grading evaluators Standard workshop ships with only one evaluation method and that one holds no personal data. --- .../eval/best/classes/privacy/provider.php | 46 ++++++++++++++++++++++ .../eval/best/lang/en/workshopeval_best.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 mod/workshop/eval/best/classes/privacy/provider.php diff --git a/mod/workshop/eval/best/classes/privacy/provider.php b/mod/workshop/eval/best/classes/privacy/provider.php new file mode 100644 index 00000000000..501727655d6 --- /dev/null +++ b/mod/workshop/eval/best/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Provides the class {@link workshopeval_best\privacy\provider} + * + * @package workshopeval_best + * @category privacy + * @copyright 2018 David Mudrák + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace workshopeval_best\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy API implementation for the Comparison with the best assessment method. + * + * @copyright 2018 David Mudrák + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Explain that this plugin stores no personal data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/mod/workshop/eval/best/lang/en/workshopeval_best.php b/mod/workshop/eval/best/lang/en/workshopeval_best.php index 6af9f37dbaf..e6c813f266d 100644 --- a/mod/workshop/eval/best/lang/en/workshopeval_best.php +++ b/mod/workshop/eval/best/lang/en/workshopeval_best.php @@ -33,3 +33,4 @@ $string['comparisonlevel7'] = 'lax'; $string['comparisonlevel9'] = 'very lax'; $string['configcomparison'] = 'Default value of the factor that influence the grading evaluation.'; $string['pluginname'] = 'Comparison with the best assessment'; +$string['privacy:metadata'] = 'The Comparison with the best assessment plugin does not store any personal data. Actual personal data user\'s grades are stored by the Workshop module itself and are attached to the exported submissions and assessments data.'; -- 2.11.4.GIT