diff --git a/report/participation/classes/privacy/provider.php b/report/participation/classes/privacy/provider.php new file mode 100644 index 0000000000000..b29f19d18120d --- /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() : string { + 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 b32232f49e21f..aa94c31d0b5c1 100644 --- a/report/participation/lang/en/report_participation.php +++ b/report/participation/lang/en/report_participation.php @@ -29,3 +29,4 @@ $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.';