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.';