From da6c6664414365f7e3662f117857c307162d615e Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:26:32 +0800 Subject: [PATCH 01/15] MDL-61881 report_backup: Implement null privacy provider --- report/backups/classes/privacy/provider.php | 46 +++++++++++++++++++++ report/backups/lang/en/report_backups.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/backups/classes/privacy/provider.php diff --git a/report/backups/classes/privacy/provider.php b/report/backups/classes/privacy/provider.php new file mode 100644 index 00000000000..cef83f65851 --- /dev/null +++ b/report/backups/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_backups. + * + * @package report_backups + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_backups\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_backups 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/backups/lang/en/report_backups.php b/report/backups/lang/en/report_backups.php index 3128d3f2dac..c413f33c735 100644 --- a/report/backups/lang/en/report_backups.php +++ b/report/backups/lang/en/report_backups.php @@ -30,3 +30,4 @@ $string['nologsfound'] = 'There were no logs found for this backup.'; $string['pluginname'] = 'Backups report'; $string['strftimetime'] = '%I:%M:%S %p'; $string['viewlogs'] = 'View logs'; +$string['privacy:metadata'] = 'The report_backups plugin does not store any personal data.'; From a2881f0511b84e92bb7488aa1ba6268d3c66da44 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:27:17 +0800 Subject: [PATCH 02/15] MDL-61881 report_competency: Implement null privacy provider --- .../competency/classes/privacy/provider.php | 46 +++++++++++++++++++ .../competency/lang/en/report_competency.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/competency/classes/privacy/provider.php diff --git a/report/competency/classes/privacy/provider.php b/report/competency/classes/privacy/provider.php new file mode 100644 index 00000000000..97ed1bf610e --- /dev/null +++ b/report/competency/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_competency. + * + * @package report_competency + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +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() { + 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.'; From 4017db1b69072dee354322169e4e6cb3ad523988 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:32:27 +0800 Subject: [PATCH 03/15] MDL-61881 report_configlog: Implement null privacy provider --- report/configlog/classes/privacy/provider.php | 46 +++++++++++++++++++ report/configlog/lang/en/report_configlog.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/configlog/classes/privacy/provider.php diff --git a/report/configlog/classes/privacy/provider.php b/report/configlog/classes/privacy/provider.php new file mode 100644 index 00000000000..2c30531fcd0 --- /dev/null +++ b/report/configlog/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_configlog. + * + * @package report_configlog + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_configlog\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_configlog 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/configlog/lang/en/report_configlog.php b/report/configlog/lang/en/report_configlog.php index e2c331ca631..b53ec45b1a0 100644 --- a/report/configlog/lang/en/report_configlog.php +++ b/report/configlog/lang/en/report_configlog.php @@ -30,3 +30,4 @@ $string['pluginname'] = 'Config changes'; $string['setting'] = 'Setting'; $string['timemodified'] = 'Date'; $string['value'] = 'New value'; +$string['privacy:metadata'] = 'The report_configlog plugin does not store any personal data.'; From dee60ecadba84a9d13a33b9189421fe586f2f3ca Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:33:43 +0800 Subject: [PATCH 04/15] MDL-61881 report_courseoverview: Implement null privacy provider --- .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/report_courseoverview.php | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 report/courseoverview/classes/privacy/provider.php diff --git a/report/courseoverview/classes/privacy/provider.php b/report/courseoverview/classes/privacy/provider.php new file mode 100644 index 00000000000..b7877b06565 --- /dev/null +++ b/report/courseoverview/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_courseoverview. + * + * @package report_courseoverview + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_courseoverview\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_courseoverview 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/courseoverview/lang/en/report_courseoverview.php b/report/courseoverview/lang/en/report_courseoverview.php index 8928a86e629..5d0fc1dbea8 100644 --- a/report/courseoverview/lang/en/report_courseoverview.php +++ b/report/courseoverview/lang/en/report_courseoverview.php @@ -24,4 +24,5 @@ */ $string['courseoverview:view'] = 'View course overview report'; -$string['pluginname'] = 'Course overview'; \ No newline at end of file +$string['pluginname'] = 'Course overview'; +$string['privacy:metadata'] = 'The report_courseoverview plugin does not store any personal data.'; From 09913a019bb4c61906b61f96d31a0c4793e38456 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:35:10 +0800 Subject: [PATCH 05/15] MDL-61881 report_eventlist: Implement null privacy provider --- report/eventlist/classes/privacy/provider.php | 46 +++++++++++++++++++ report/eventlist/lang/en/report_eventlist.php | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 report/eventlist/classes/privacy/provider.php diff --git a/report/eventlist/classes/privacy/provider.php b/report/eventlist/classes/privacy/provider.php new file mode 100644 index 00000000000..d0a563f8e7f --- /dev/null +++ b/report/eventlist/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_eventlist. + * + * @package report_eventlist + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_eventlist\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_eventlist 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/eventlist/lang/en/report_eventlist.php b/report/eventlist/lang/en/report_eventlist.php index dc8ffb91b1d..4e15eb4fc01 100644 --- a/report/eventlist/lang/en/report_eventlist.php +++ b/report/eventlist/lang/en/report_eventlist.php @@ -56,4 +56,4 @@ $string['teaching'] = 'Teaching'; $string['typedeclaration'] = 'Other event parameters'; $string['update'] = 'update'; $string['yes'] = 'yes'; - +$string['privacy:metadata'] = 'The report_eventlist plugin does not store any personal data.'; From 932689aa5e5bfb3015096bddf8bdcd32dde58ab5 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:36:53 +0800 Subject: [PATCH 06/15] MDL-61881 report_log: Implement null privacy provider --- report/log/classes/privacy/provider.php | 46 +++++++++++++++++++++++++ report/log/lang/en/report_log.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/log/classes/privacy/provider.php diff --git a/report/log/classes/privacy/provider.php b/report/log/classes/privacy/provider.php new file mode 100644 index 00000000000..67d787926da --- /dev/null +++ b/report/log/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_log. + * + * @package report_log + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_log\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_log 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/log/lang/en/report_log.php b/report/log/lang/en/report_log.php index 82d6f238242..43706f8aac3 100644 --- a/report/log/lang/en/report_log.php +++ b/report/log/lang/en/report_log.php @@ -49,3 +49,4 @@ $string['restore'] = 'Restore'; $string['selectlogreader'] = 'Select log reader'; $string['web'] = 'Web'; $string['ws'] = 'Web service'; +$string['privacy:metadata'] = 'The report_log plugin does not store any personal data.'; From 168d335990299e6ba9ad5d3f252fcb460d53e313 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:37:49 +0800 Subject: [PATCH 07/15] MDL-61881 report_loglive: Implement null privacy provider --- report/loglive/classes/privacy/provider.php | 46 +++++++++++++++++++++ report/loglive/lang/en/report_loglive.php | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 report/loglive/classes/privacy/provider.php diff --git a/report/loglive/classes/privacy/provider.php b/report/loglive/classes/privacy/provider.php new file mode 100644 index 00000000000..9499550ea59 --- /dev/null +++ b/report/loglive/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_loglive. + * + * @package report_loglive + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_loglive\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_loglive 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/loglive/lang/en/report_loglive.php b/report/loglive/lang/en/report_loglive.php index e8c98f1b93d..bb83efd9767 100644 --- a/report/loglive/lang/en/report_loglive.php +++ b/report/loglive/lang/en/report_loglive.php @@ -36,4 +36,5 @@ $string['nologreaderenabled'] = 'No log reader enabled'; $string['pause'] = 'Pause live updates'; $string['pluginname'] = 'Live logs'; $string['resume'] = 'Resume live updates'; -$string['selectlogreader'] = 'Select log reader'; \ No newline at end of file +$string['selectlogreader'] = 'Select log reader'; +$string['privacy:metadata'] = 'The report_loglive plugin does not store any personal data.'; From 31b0b0202593f6204967fc6ea101f896f52a13a0 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:39:22 +0800 Subject: [PATCH 08/15] MDL-61881 report_outline: Implement null privacy provider --- report/outline/classes/privacy/provider.php | 46 +++++++++++++++++++++ report/outline/lang/en/report_outline.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/outline/classes/privacy/provider.php diff --git a/report/outline/classes/privacy/provider.php b/report/outline/classes/privacy/provider.php new file mode 100644 index 00000000000..03233cb16ec --- /dev/null +++ b/report/outline/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_outline. + * + * @package report_outline + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_outline\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_outline 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/outline/lang/en/report_outline.php b/report/outline/lang/en/report_outline.php index 245838f5b07..1d60dd795d7 100644 --- a/report/outline/lang/en/report_outline.php +++ b/report/outline/lang/en/report_outline.php @@ -34,3 +34,4 @@ $string['page-report-outline-x'] = 'Any outline report'; $string['page-report-outline-index'] = 'Course outline report'; $string['page-report-outline-user'] = 'User course outline report'; $string['pluginname'] = 'Activity report'; +$string['privacy:metadata'] = 'The report_outline plugin does not store any personal data.'; From 747373c3f6c404e243c671754afaf5b86d6291a1 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:40:20 +0800 Subject: [PATCH 09/15] MDL-61881 report_participation: Implement null privacy provider --- .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/report_participation.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/participation/classes/privacy/provider.php diff --git a/report/participation/classes/privacy/provider.php b/report/participation/classes/privacy/provider.php new file mode 100644 index 00000000000..3e6d14c6356 --- /dev/null +++ b/report/participation/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_participation. + * + * @package report_participation + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_participation\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_participation 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/participation/lang/en/report_participation.php b/report/participation/lang/en/report_participation.php index b32232f49e2..aa94c31d0b5 100644 --- a/report/participation/lang/en/report_participation.php +++ b/report/participation/lang/en/report_participation.php @@ -29,3 +29,4 @@ $string['participation:view'] = 'View course participation report'; $string['page-report-participation-x'] = 'Any participation report'; $string['page-report-participation-index'] = 'Course participation report'; $string['pluginname'] = 'Course participation'; +$string['privacy:metadata'] = 'The report_participation plugin does not store any personal data.'; From 6bc3ca7a4cb3353d23e34623a23ed14ddf623a5c Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:41:15 +0800 Subject: [PATCH 10/15] MDL-61881 report_performance: Implement null privacy provider --- .../performance/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/report_performance.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/performance/classes/privacy/provider.php diff --git a/report/performance/classes/privacy/provider.php b/report/performance/classes/privacy/provider.php new file mode 100644 index 00000000000..32c733acfa4 --- /dev/null +++ b/report/performance/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_performance. + * + * @package report_performance + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_performance\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_performance 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/performance/lang/en/report_performance.php b/report/performance/lang/en/report_performance.php index d460eccc66d..ae0f3bbb9f7 100644 --- a/report/performance/lang/en/report_performance.php +++ b/report/performance/lang/en/report_performance.php @@ -48,3 +48,4 @@ $string['performance:view'] = 'View performance report'; $string['performancereportdesc'] = 'This report lists issues which may affect performance of the site {$a}'; $string['pluginname'] = 'Performance overview'; $string['value'] = 'Value'; +$string['privacy:metadata'] = 'The report_performance plugin does not store any personal data.'; From 63de5af9688a72ecf3453940d878e337062e7625 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:46:18 +0800 Subject: [PATCH 11/15] MDL-61881 report_questioninstances: Implement null privacy provider --- .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/report_questioninstances.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/questioninstances/classes/privacy/provider.php diff --git a/report/questioninstances/classes/privacy/provider.php b/report/questioninstances/classes/privacy/provider.php new file mode 100644 index 00000000000..35f202252d3 --- /dev/null +++ b/report/questioninstances/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_questioninstances. + * + * @package report_questioninstances + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_questioninstances\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_questioninstances 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/questioninstances/lang/en/report_questioninstances.php b/report/questioninstances/lang/en/report_questioninstances.php index d66beb92c08..f27581f3f39 100644 --- a/report/questioninstances/lang/en/report_questioninstances.php +++ b/report/questioninstances/lang/en/report_questioninstances.php @@ -36,3 +36,4 @@ $string['reportforqtype'] = 'Report for question type \'{$a}\''; $string['reportsettings'] = 'Report settings'; $string['totalquestions'] = 'Total'; $string['visiblequestions'] = 'Visible'; +$string['privacy:metadata'] = 'The report_questioninstances plugin does not store any personal data.'; From 652ce0a4ddd0f70691d3e8758c997c47ec43e849 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:46:55 +0800 Subject: [PATCH 12/15] MDL-61881 report_security: Implement null privacy provider --- report/security/classes/privacy/provider.php | 46 ++++++++++++++++++++ report/security/lang/en/report_security.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/security/classes/privacy/provider.php diff --git a/report/security/classes/privacy/provider.php b/report/security/classes/privacy/provider.php new file mode 100644 index 00000000000..ee73cdbafa0 --- /dev/null +++ b/report/security/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_security. + * + * @package report_security + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_security\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_security 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/security/lang/en/report_security.php b/report/security/lang/en/report_security.php index 1cdb6a9e5aa..3471f8fee96 100644 --- a/report/security/lang/en/report_security.php +++ b/report/security/lang/en/report_security.php @@ -141,3 +141,4 @@ $string['statusok'] = 'OK'; $string['statusserious'] = 'Serious'; $string['statuswarning'] = 'Warning'; $string['timewarning'] = 'Data processing may take a long time, please be patient...'; +$string['privacy:metadata'] = 'The report_security plugin does not store any personal data.'; From 737ab6eff805e8a8e902fdd6252858373abcccd2 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:47:57 +0800 Subject: [PATCH 13/15] MDL-61881 report_stats: Implement null privacy provider --- report/stats/classes/privacy/provider.php | 46 +++++++++++++++++++++++ report/stats/lang/en/report_stats.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/stats/classes/privacy/provider.php diff --git a/report/stats/classes/privacy/provider.php b/report/stats/classes/privacy/provider.php new file mode 100644 index 00000000000..72cd05a3e09 --- /dev/null +++ b/report/stats/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_stats. + * + * @package report_stats + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_stats\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_stats 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/stats/lang/en/report_stats.php b/report/stats/lang/en/report_stats.php index 1ee3034b9c7..947981d7e09 100644 --- a/report/stats/lang/en/report_stats.php +++ b/report/stats/lang/en/report_stats.php @@ -31,3 +31,4 @@ $string['page-report-stats-x'] = 'Any statistics report'; $string['page-report-stats-index'] = 'Course statistics report'; $string['page-report-stats-user'] = 'User course statistics report'; $string['stats:view'] = 'View course statistics report'; +$string['privacy:metadata'] = 'The report_stats plugin does not store any personal data.'; From 192e9b2e1e59e93bf771a9af7106bd0b144fc07c Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Mon, 9 Apr 2018 10:48:37 +0800 Subject: [PATCH 14/15] MDL-61881 report_usersessions: Implement null privacy provider --- .../usersessions/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/report_usersessions.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 report/usersessions/classes/privacy/provider.php diff --git a/report/usersessions/classes/privacy/provider.php b/report/usersessions/classes/privacy/provider.php new file mode 100644 index 00000000000..882526c70a6 --- /dev/null +++ b/report/usersessions/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_usersessions. + * + * @package report_usersessions + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_usersessions\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_usersessions 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/usersessions/lang/en/report_usersessions.php b/report/usersessions/lang/en/report_usersessions.php index ebbaf93ead9..51424d0a481 100644 --- a/report/usersessions/lang/en/report_usersessions.php +++ b/report/usersessions/lang/en/report_usersessions.php @@ -28,3 +28,4 @@ $string['mysessions'] = 'My active sessions'; $string['pluginname'] = 'User sessions report'; $string['thissession'] = 'Current session'; $string['usersessions:manageownsessions'] = 'Manage own browser sessions'; +$string['privacy:metadata'] = 'The report_usersessions plugin does not store any personal data.'; From cd0173d0778c9691d98806ced0dc41c7eaec2820 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Wed, 11 Apr 2018 10:12:23 +0800 Subject: [PATCH 15/15] MDL-61881 report: fix privacy lang strings --- report/backups/lang/en/report_backups.php | 2 +- report/competency/lang/en/report_competency.php | 2 +- report/configlog/lang/en/report_configlog.php | 2 +- report/courseoverview/lang/en/report_courseoverview.php | 2 +- report/eventlist/lang/en/report_eventlist.php | 2 +- report/log/lang/en/report_log.php | 2 +- report/loglive/lang/en/report_loglive.php | 2 +- report/outline/lang/en/report_outline.php | 2 +- report/participation/lang/en/report_participation.php | 2 +- report/performance/lang/en/report_performance.php | 2 +- report/questioninstances/lang/en/report_questioninstances.php | 2 +- report/security/lang/en/report_security.php | 2 +- report/stats/lang/en/report_stats.php | 2 +- report/usersessions/lang/en/report_usersessions.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/report/backups/lang/en/report_backups.php b/report/backups/lang/en/report_backups.php index c413f33c735..715fba5fe96 100644 --- a/report/backups/lang/en/report_backups.php +++ b/report/backups/lang/en/report_backups.php @@ -30,4 +30,4 @@ $string['nologsfound'] = 'There were no logs found for this backup.'; $string['pluginname'] = 'Backups report'; $string['strftimetime'] = '%I:%M:%S %p'; $string['viewlogs'] = 'View logs'; -$string['privacy:metadata'] = 'The report_backups plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Backups report plugin does not store any personal data.'; diff --git a/report/competency/lang/en/report_competency.php b/report/competency/lang/en/report_competency.php index f2e4dfa1b2e..a49ae5f613e 100644 --- a/report/competency/lang/en/report_competency.php +++ b/report/competency/lang/en/report_competency.php @@ -28,4 +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.'; +$string['privacy:metadata'] = 'The Competency breakdown plugin does not store any personal data.'; diff --git a/report/configlog/lang/en/report_configlog.php b/report/configlog/lang/en/report_configlog.php index b53ec45b1a0..a6f4fcbfbd8 100644 --- a/report/configlog/lang/en/report_configlog.php +++ b/report/configlog/lang/en/report_configlog.php @@ -30,4 +30,4 @@ $string['pluginname'] = 'Config changes'; $string['setting'] = 'Setting'; $string['timemodified'] = 'Date'; $string['value'] = 'New value'; -$string['privacy:metadata'] = 'The report_configlog plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Config changes plugin does not store any personal data.'; diff --git a/report/courseoverview/lang/en/report_courseoverview.php b/report/courseoverview/lang/en/report_courseoverview.php index 5d0fc1dbea8..c7eb97d788f 100644 --- a/report/courseoverview/lang/en/report_courseoverview.php +++ b/report/courseoverview/lang/en/report_courseoverview.php @@ -25,4 +25,4 @@ $string['courseoverview:view'] = 'View course overview report'; $string['pluginname'] = 'Course overview'; -$string['privacy:metadata'] = 'The report_courseoverview plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Course overview plugin does not store any personal data.'; diff --git a/report/eventlist/lang/en/report_eventlist.php b/report/eventlist/lang/en/report_eventlist.php index 4e15eb4fc01..892ea16c452 100644 --- a/report/eventlist/lang/en/report_eventlist.php +++ b/report/eventlist/lang/en/report_eventlist.php @@ -56,4 +56,4 @@ $string['teaching'] = 'Teaching'; $string['typedeclaration'] = 'Other event parameters'; $string['update'] = 'update'; $string['yes'] = 'yes'; -$string['privacy:metadata'] = 'The report_eventlist plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Events list plugin does not store any personal data.'; diff --git a/report/log/lang/en/report_log.php b/report/log/lang/en/report_log.php index 43706f8aac3..abf6fb4bdaf 100644 --- a/report/log/lang/en/report_log.php +++ b/report/log/lang/en/report_log.php @@ -49,4 +49,4 @@ $string['restore'] = 'Restore'; $string['selectlogreader'] = 'Select log reader'; $string['web'] = 'Web'; $string['ws'] = 'Web service'; -$string['privacy:metadata'] = 'The report_log plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Logs plugin does not store any personal data.'; diff --git a/report/loglive/lang/en/report_loglive.php b/report/loglive/lang/en/report_loglive.php index bb83efd9767..c0e1ad18eb6 100644 --- a/report/loglive/lang/en/report_loglive.php +++ b/report/loglive/lang/en/report_loglive.php @@ -37,4 +37,4 @@ $string['pause'] = 'Pause live updates'; $string['pluginname'] = 'Live logs'; $string['resume'] = 'Resume live updates'; $string['selectlogreader'] = 'Select log reader'; -$string['privacy:metadata'] = 'The report_loglive plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Live logs plugin does not store any personal data.'; diff --git a/report/outline/lang/en/report_outline.php b/report/outline/lang/en/report_outline.php index 1d60dd795d7..849e25edf02 100644 --- a/report/outline/lang/en/report_outline.php +++ b/report/outline/lang/en/report_outline.php @@ -34,4 +34,4 @@ $string['page-report-outline-x'] = 'Any outline report'; $string['page-report-outline-index'] = 'Course outline report'; $string['page-report-outline-user'] = 'User course outline report'; $string['pluginname'] = 'Activity report'; -$string['privacy:metadata'] = 'The report_outline plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Activity report plugin does not store any personal data.'; diff --git a/report/participation/lang/en/report_participation.php b/report/participation/lang/en/report_participation.php index aa94c31d0b5..793f4f97ff0 100644 --- a/report/participation/lang/en/report_participation.php +++ b/report/participation/lang/en/report_participation.php @@ -29,4 +29,4 @@ $string['participation:view'] = 'View course participation report'; $string['page-report-participation-x'] = 'Any participation report'; $string['page-report-participation-index'] = 'Course participation report'; $string['pluginname'] = 'Course participation'; -$string['privacy:metadata'] = 'The report_participation plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Course participation plugin does not store any personal data.'; diff --git a/report/performance/lang/en/report_performance.php b/report/performance/lang/en/report_performance.php index ae0f3bbb9f7..17e36c1165b 100644 --- a/report/performance/lang/en/report_performance.php +++ b/report/performance/lang/en/report_performance.php @@ -48,4 +48,4 @@ $string['performance:view'] = 'View performance report'; $string['performancereportdesc'] = 'This report lists issues which may affect performance of the site {$a}'; $string['pluginname'] = 'Performance overview'; $string['value'] = 'Value'; -$string['privacy:metadata'] = 'The report_performance plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Performance overview plugin does not store any personal data.'; diff --git a/report/questioninstances/lang/en/report_questioninstances.php b/report/questioninstances/lang/en/report_questioninstances.php index f27581f3f39..6230d11cd8e 100644 --- a/report/questioninstances/lang/en/report_questioninstances.php +++ b/report/questioninstances/lang/en/report_questioninstances.php @@ -36,4 +36,4 @@ $string['reportforqtype'] = 'Report for question type \'{$a}\''; $string['reportsettings'] = 'Report settings'; $string['totalquestions'] = 'Total'; $string['visiblequestions'] = 'Visible'; -$string['privacy:metadata'] = 'The report_questioninstances plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Question instances plugin does not store any personal data.'; diff --git a/report/security/lang/en/report_security.php b/report/security/lang/en/report_security.php index 3471f8fee96..4677695ba68 100644 --- a/report/security/lang/en/report_security.php +++ b/report/security/lang/en/report_security.php @@ -141,4 +141,4 @@ $string['statusok'] = 'OK'; $string['statusserious'] = 'Serious'; $string['statuswarning'] = 'Warning'; $string['timewarning'] = 'Data processing may take a long time, please be patient...'; -$string['privacy:metadata'] = 'The report_security plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Security overview plugin does not store any personal data.'; diff --git a/report/stats/lang/en/report_stats.php b/report/stats/lang/en/report_stats.php index 947981d7e09..c0dc7f4b476 100644 --- a/report/stats/lang/en/report_stats.php +++ b/report/stats/lang/en/report_stats.php @@ -31,4 +31,4 @@ $string['page-report-stats-x'] = 'Any statistics report'; $string['page-report-stats-index'] = 'Course statistics report'; $string['page-report-stats-user'] = 'User course statistics report'; $string['stats:view'] = 'View course statistics report'; -$string['privacy:metadata'] = 'The report_stats plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The Statistics plugin does not store any personal data.'; diff --git a/report/usersessions/lang/en/report_usersessions.php b/report/usersessions/lang/en/report_usersessions.php index 51424d0a481..1fbc317a408 100644 --- a/report/usersessions/lang/en/report_usersessions.php +++ b/report/usersessions/lang/en/report_usersessions.php @@ -28,4 +28,4 @@ $string['mysessions'] = 'My active sessions'; $string['pluginname'] = 'User sessions report'; $string['thissession'] = 'Current session'; $string['usersessions:manageownsessions'] = 'Manage own browser sessions'; -$string['privacy:metadata'] = 'The report_usersessions plugin does not store any personal data.'; +$string['privacy:metadata'] = 'The User sessions report plugin does not store any personal data.';