From 4dc61ed547e996cb62192d90d36340f3616430f1 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 4 Apr 2018 15:03:25 +0800 Subject: [PATCH] MDL-61843 report_completion: Add privacy files --- .../completion/classes/privacy/provider.php | 45 +++++++++++++++++++ .../completion/lang/en/report_completion.php | 1 + 2 files changed, 46 insertions(+) create mode 100644 report/completion/classes/privacy/provider.php diff --git a/report/completion/classes/privacy/provider.php b/report/completion/classes/privacy/provider.php new file mode 100644 index 00000000000..b1b1c68ddbf --- /dev/null +++ b/report/completion/classes/privacy/provider.php @@ -0,0 +1,45 @@ +. + +/** + * Privacy provider implementation for report_completion. + * + * @package report_completion + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_completion\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for report_completion. + * + * @copyright 2018 Mihail Geshoski + * @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/report/completion/lang/en/report_completion.php b/report/completion/lang/en/report_completion.php index 82b0a1026cb..7266eeba3c1 100644 --- a/report/completion/lang/en/report_completion.php +++ b/report/completion/lang/en/report_completion.php @@ -34,5 +34,6 @@ $string['page-report-completion-x'] = 'Any completion report'; $string['page-report-completion-index'] = 'Course completion report'; $string['page-report-completion-user'] = 'User course completion report'; $string['pluginname'] = 'Course completion'; +$string['privacy:metadata'] = 'The Course completion report only shows data stored in other locations.'; $string['eventreportviewed'] = 'Completion report viewed'; $string['eventuserreportviewed'] = 'Completion user report viewed';