From e9251c0fe57c219fb3472e22739172e9d1686c07 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 09:48:55 +0800 Subject: [PATCH] MDL-61881 report_competency: Implement null privacy provider --- .../privacy/provider.php} | 32 ++++++++++++++++------ report/competency/lang/en/report_competency.php | 1 + 2 files changed, 25 insertions(+), 8 deletions(-) copy report/competency/{lang/en/report_competency.php => classes/privacy/provider.php} (52%) diff --git a/report/competency/lang/en/report_competency.php b/report/competency/classes/privacy/provider.php similarity index 52% copy from report/competency/lang/en/report_competency.php copy to report/competency/classes/privacy/provider.php index 1c368f96662..e2966980e57 100644 --- a/report/competency/lang/en/report_competency.php +++ b/report/competency/classes/privacy/provider.php @@ -15,16 +15,32 @@ // along with Moodle. If not, see . /** - * Strings for component 'report_competency', language 'en' + * Privacy Subsystem implementation for report_competency. * * @package report_competency - * @copyright 2015 Damyon Wiese + * @copyright 2018 Zig Tan * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string['competency'] = 'Competency'; -$string['coursecompetencybreakdownsummary'] = 'A report of all the students in the course, and their progress towards the course competencies'; -$string['notrated'] = 'Not rated'; -$string['pluginname'] = 'Competency breakdown'; -$string['rating'] = 'Rating'; -$string['usercompetencysummary'] = 'User competency summary'; +namespace report_competency\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_competency 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'; + } +} \ No newline at end of file diff --git a/report/competency/lang/en/report_competency.php b/report/competency/lang/en/report_competency.php index 1c368f96662..f2e4dfa1b2e 100644 --- a/report/competency/lang/en/report_competency.php +++ b/report/competency/lang/en/report_competency.php @@ -28,3 +28,4 @@ $string['notrated'] = 'Not rated'; $string['pluginname'] = 'Competency breakdown'; $string['rating'] = 'Rating'; $string['usercompetencysummary'] = 'User competency summary'; +$string['privacy:metadata'] = 'The report_competency plugin does not store any personal data.'; -- 2.11.4.GIT