From 2496cd7ffde7bed4bc2fa6e55694eb7765a28f85 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 4 Apr 2018 13:34:00 +0800 Subject: [PATCH] MDL-61838 report_progress: Add privacy files --- report/progress/classes/privacy/provider.php | 46 ++++++++++++++++++++ report/progress/lang/en/report_progress.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/progress/classes/privacy/provider.php diff --git a/report/progress/classes/privacy/provider.php b/report/progress/classes/privacy/provider.php new file mode 100644 index 0000000000000..3c61a6ddbe4b5 --- /dev/null +++ b/report/progress/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for report_progress. + * + * @package report_progress + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_progress\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for report_progress. + * + * @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/progress/lang/en/report_progress.php b/report/progress/lang/en/report_progress.php index fde6c70a05604..0a6f7641ea63d 100644 --- a/report/progress/lang/en/report_progress.php +++ b/report/progress/lang/en/report_progress.php @@ -27,4 +27,5 @@ $string['page-report-progress-x'] = 'Any activity completion report'; $string['page-report-progress-index'] = 'Activity completion report'; $string['page-report-progress-user'] = 'User activity completion report'; +$string['privacy:metadata'] = 'The Activity completion report only shows data stored in other locations.'; $string['progress:view'] = 'View activity completion reports';