From 80d7a98d8406dbff58b388ab89cf9e6d4fc5dee6 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Wed, 14 Feb 2018 16:22:47 +0800 Subject: [PATCH] MDL-61397 blocks: Add null_providers for blocks with no user data --- .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_activity_modules.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_activity_results.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_admin_bookmarks.php | 1 + blocks/badges/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/badges/lang/en/block_badges.php | 1 + blocks/blog_menu/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/blog_menu/lang/en/block_blog_menu.php | 1 + .../blog_recent/classes/privacy/provider.php | 46 +++++++++++++++++++ .../blog_recent/lang/en/block_blog_recent.php | 1 + blocks/blog_tags/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/blog_tags/lang/en/block_blog_tags.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_calendar_month.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_calendar_upcoming.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_completionstatus.php | 1 + .../course_list/classes/privacy/provider.php | 46 +++++++++++++++++++ .../course_list/lang/en/block_course_list.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_course_summary.php | 1 + blocks/feedback/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/feedback/lang/en/block_feedback.php | 1 + .../globalsearch/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_globalsearch.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_glossary_random.php | 1 + blocks/login/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/login/lang/en/block_login.php | 1 + blocks/lp/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/lp/lang/en/block_lp.php | 1 + blocks/mentees/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/mentees/lang/en/block_mentees.php | 1 + .../mnet_hosts/classes/privacy/provider.php | 46 +++++++++++++++++++ .../mnet_hosts/lang/en/block_mnet_hosts.php | 1 + .../myoverview/classes/privacy/provider.php | 46 +++++++++++++++++++ .../myoverview/lang/en/block_myoverview.php | 1 + blocks/myprofile/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/myprofile/lang/en/block_myprofile.php | 1 + .../navigation/classes/privacy/provider.php | 46 +++++++++++++++++++ .../navigation/lang/en/block_navigation.php | 1 + .../news_items/classes/privacy/provider.php | 46 +++++++++++++++++++ .../news_items/lang/en/block_news_items.php | 1 + .../online_users/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_online_users.php | 1 + .../participants/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_participants.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_private_files.php | 2 +- .../quiz_results/classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_quiz_results.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_search_forums.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_section_links.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_selfcompletion.php | 1 + blocks/settings/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/settings/lang/en/block_settings.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_site_main_menu.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/block_social_activities.php | 1 + .../tag_flickr/classes/privacy/provider.php | 46 +++++++++++++++++++ .../tag_flickr/lang/en/block_tag_flickr.php | 1 + .../tag_youtube/classes/privacy/provider.php | 46 +++++++++++++++++++ .../tag_youtube/lang/en/block_tag_youtube.php | 1 + blocks/tags/classes/privacy/provider.php | 46 +++++++++++++++++++ blocks/tags/lang/en/block_tags.php | 2 +- 72 files changed, 1692 insertions(+), 2 deletions(-) create mode 100644 blocks/activity_modules/classes/privacy/provider.php create mode 100644 blocks/activity_results/classes/privacy/provider.php create mode 100644 blocks/admin_bookmarks/classes/privacy/provider.php create mode 100644 blocks/badges/classes/privacy/provider.php create mode 100644 blocks/blog_menu/classes/privacy/provider.php create mode 100644 blocks/blog_recent/classes/privacy/provider.php create mode 100644 blocks/blog_tags/classes/privacy/provider.php create mode 100644 blocks/calendar_month/classes/privacy/provider.php create mode 100644 blocks/calendar_upcoming/classes/privacy/provider.php create mode 100644 blocks/completionstatus/classes/privacy/provider.php create mode 100644 blocks/course_list/classes/privacy/provider.php create mode 100644 blocks/course_summary/classes/privacy/provider.php create mode 100644 blocks/feedback/classes/privacy/provider.php create mode 100644 blocks/globalsearch/classes/privacy/provider.php create mode 100644 blocks/glossary_random/classes/privacy/provider.php create mode 100644 blocks/login/classes/privacy/provider.php create mode 100644 blocks/lp/classes/privacy/provider.php create mode 100644 blocks/mentees/classes/privacy/provider.php create mode 100644 blocks/mnet_hosts/classes/privacy/provider.php create mode 100644 blocks/myoverview/classes/privacy/provider.php create mode 100644 blocks/myprofile/classes/privacy/provider.php create mode 100644 blocks/navigation/classes/privacy/provider.php create mode 100644 blocks/news_items/classes/privacy/provider.php create mode 100644 blocks/online_users/classes/privacy/provider.php create mode 100644 blocks/participants/classes/privacy/provider.php create mode 100644 blocks/private_files/classes/privacy/provider.php create mode 100644 blocks/quiz_results/classes/privacy/provider.php create mode 100644 blocks/search_forums/classes/privacy/provider.php create mode 100644 blocks/section_links/classes/privacy/provider.php create mode 100644 blocks/selfcompletion/classes/privacy/provider.php create mode 100644 blocks/settings/classes/privacy/provider.php create mode 100644 blocks/site_main_menu/classes/privacy/provider.php create mode 100644 blocks/social_activities/classes/privacy/provider.php create mode 100644 blocks/tag_flickr/classes/privacy/provider.php create mode 100644 blocks/tag_youtube/classes/privacy/provider.php create mode 100644 blocks/tags/classes/privacy/provider.php diff --git a/blocks/activity_modules/classes/privacy/provider.php b/blocks/activity_modules/classes/privacy/provider.php new file mode 100644 index 00000000000..121d9bc8585 --- /dev/null +++ b/blocks/activity_modules/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_activity_modules. + * + * @package block_activity_modules + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_activity_modules\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_activity_modules 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\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/blocks/activity_modules/lang/en/block_activity_modules.php b/blocks/activity_modules/lang/en/block_activity_modules.php index e20fa026fd3..38f388a0d0a 100644 --- a/blocks/activity_modules/lang/en/block_activity_modules.php +++ b/blocks/activity_modules/lang/en/block_activity_modules.php @@ -24,3 +24,4 @@ $string['activity_modules:addinstance'] = 'Add a new activities block'; $string['pluginname'] = 'Activities'; +$string['privacy:metadata'] = 'The Activites block only shows data stored in other locations.'; diff --git a/blocks/activity_results/classes/privacy/provider.php b/blocks/activity_results/classes/privacy/provider.php new file mode 100644 index 00000000000..3571724c22f --- /dev/null +++ b/blocks/activity_results/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_activity_results. + * + * @package block_activity_results + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_activity_results\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_activity_results 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\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/blocks/activity_results/lang/en/block_activity_results.php b/blocks/activity_results/lang/en/block_activity_results.php index 8a9b6314653..23a2b1014d3 100644 --- a/blocks/activity_results/lang/en/block_activity_results.php +++ b/blocks/activity_results/lang/en/block_activity_results.php @@ -65,3 +65,4 @@ $string['worstgrade'] = 'The lowest grade:'; $string['worstgrades'] = 'The {$a} lowest grades:'; $string['worstgroupgrade'] = 'The group with the lowest average:'; $string['worstgroupgrades'] = 'The {$a} groups with the lowest average:'; +$string['privacy:metadata'] = 'The Activites results block only shows data stored in other locations.'; diff --git a/blocks/admin_bookmarks/classes/privacy/provider.php b/blocks/admin_bookmarks/classes/privacy/provider.php new file mode 100644 index 00000000000..ed1f4db3669 --- /dev/null +++ b/blocks/admin_bookmarks/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_admin_bookmarks. + * + * @package block_admin_bookmarks + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_admin_bookmarks\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_admin_bookmarks 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\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/blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php b/blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php index 21bca583fee..956319ba043 100644 --- a/blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php @@ -25,3 +25,4 @@ $string['admin_bookmarks:addinstance'] = 'Add a new admin bookmarks block'; $string['admin_bookmarks:myaddinstance'] = 'Add a new admin bookmarks block to Dashboard'; $string['pluginname'] = 'Admin bookmarks'; +$string['privacy:metadata'] = 'The Admin bookmarks block only shows data stored in other locations.'; diff --git a/blocks/badges/classes/privacy/provider.php b/blocks/badges/classes/privacy/provider.php new file mode 100644 index 00000000000..48f2c10c42d --- /dev/null +++ b/blocks/badges/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_badges. + * + * @package block_badges + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_badges\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_badges 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\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/blocks/badges/lang/en/block_badges.php b/blocks/badges/lang/en/block_badges.php index ba4adafe562..df44819b135 100644 --- a/blocks/badges/lang/en/block_badges.php +++ b/blocks/badges/lang/en/block_badges.php @@ -28,3 +28,4 @@ $string['numbadgestodisplay'] = 'Number of latest badges to display'; $string['nothingtodisplay'] = 'You have no badges to display'; $string['badges:addinstance'] = 'Add a new My latest badges block'; $string['badges:myaddinstance'] = 'Add a new My latest badges block to Dashboard'; +$string['privacy:metadata'] = 'The Badges block only shows data stored in other locations.'; diff --git a/blocks/blog_menu/classes/privacy/provider.php b/blocks/blog_menu/classes/privacy/provider.php new file mode 100644 index 00000000000..b9b62b4f511 --- /dev/null +++ b/blocks/blog_menu/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_blog_menu. + * + * @package block_blog_menu + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_blog_menu\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_blog_menu 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\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/blocks/blog_menu/lang/en/block_blog_menu.php b/blocks/blog_menu/lang/en/block_blog_menu.php index d39550ee214..da6f57dae70 100644 --- a/blocks/blog_menu/lang/en/block_blog_menu.php +++ b/blocks/blog_menu/lang/en/block_blog_menu.php @@ -25,3 +25,4 @@ $string['blog_menu:addinstance'] = 'Add a new blog menu block'; $string['pluginname'] = 'Blog menu'; +$string['privacy:metadata'] = 'The Blog menu block only shows data stored in other locations.'; diff --git a/blocks/blog_recent/classes/privacy/provider.php b/blocks/blog_recent/classes/privacy/provider.php new file mode 100644 index 00000000000..0412b94f13b --- /dev/null +++ b/blocks/blog_recent/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_blog_recent. + * + * @package block_blog_recent + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_blog_recent\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_blog_recent 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\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/blocks/blog_recent/lang/en/block_blog_recent.php b/blocks/blog_recent/lang/en/block_blog_recent.php index 2da369cc494..021c4911552 100644 --- a/blocks/blog_recent/lang/en/block_blog_recent.php +++ b/blocks/blog_recent/lang/en/block_blog_recent.php @@ -28,3 +28,4 @@ $string['norecentblogentries'] = 'No recent entries'; $string['numentriestodisplay'] = 'Number of recent entries to display'; $string['pluginname'] = 'Recent blog entries'; $string['recentinterval'] = 'Interval of time considered "recent"'; +$string['privacy:metadata'] = 'The Recent blog entries block only shows data stored in other locations.'; diff --git a/blocks/blog_tags/classes/privacy/provider.php b/blocks/blog_tags/classes/privacy/provider.php new file mode 100644 index 00000000000..a6ed3326b0b --- /dev/null +++ b/blocks/blog_tags/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_blog_tags. + * + * @package block_blog_tags + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_blog_tags\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_blog_tags 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\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/blocks/blog_tags/lang/en/block_blog_tags.php b/blocks/blog_tags/lang/en/block_blog_tags.php index 408e19012aa..b162d5d8cf9 100644 --- a/blocks/blog_tags/lang/en/block_blog_tags.php +++ b/blocks/blog_tags/lang/en/block_blog_tags.php @@ -24,3 +24,4 @@ $string['blog_tags:addinstance'] = 'Add a new blog tags block'; $string['pluginname'] = 'Blog tags'; +$string['privacy:metadata'] = 'The Blog tags block only shows data stored in other locations.'; diff --git a/blocks/calendar_month/classes/privacy/provider.php b/blocks/calendar_month/classes/privacy/provider.php new file mode 100644 index 00000000000..37c5712b808 --- /dev/null +++ b/blocks/calendar_month/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_calendar_month. + * + * @package block_calendar_month + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_calendar_month\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_calendar_month 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\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/blocks/calendar_month/lang/en/block_calendar_month.php b/blocks/calendar_month/lang/en/block_calendar_month.php index f92ff5b74d4..38aeda761fb 100644 --- a/blocks/calendar_month/lang/en/block_calendar_month.php +++ b/blocks/calendar_month/lang/en/block_calendar_month.php @@ -25,3 +25,4 @@ $string['calendar_month:addinstance'] = 'Add a new calendar block'; $string['calendar_month:myaddinstance'] = 'Add a new calendar block to Dashboard'; $string['pluginname'] = 'Calendar'; +$string['privacy:metadata'] = 'The Calendar block only displays existing calendar data.'; diff --git a/blocks/calendar_upcoming/classes/privacy/provider.php b/blocks/calendar_upcoming/classes/privacy/provider.php new file mode 100644 index 00000000000..c7def04dfc3 --- /dev/null +++ b/blocks/calendar_upcoming/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_calendar_upcoming. + * + * @package block_calendar_upcoming + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_calendar_upcoming\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_calendar_upcoming 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\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/blocks/calendar_upcoming/lang/en/block_calendar_upcoming.php b/blocks/calendar_upcoming/lang/en/block_calendar_upcoming.php index dc8adc3df95..f565520140b 100644 --- a/blocks/calendar_upcoming/lang/en/block_calendar_upcoming.php +++ b/blocks/calendar_upcoming/lang/en/block_calendar_upcoming.php @@ -26,3 +26,4 @@ $string['calendar_upcoming:addinstance'] = 'Add a new upcoming events block'; $string['calendar_upcoming:myaddinstance'] = 'Add a new upcoming events block to Dashboard'; $string['gotocalendar'] = 'Go to calendar...'; $string['pluginname'] = 'Upcoming events'; +$string['privacy:metadata'] = 'The Upcoming calendar events block only displays existing calendar data.'; diff --git a/blocks/completionstatus/classes/privacy/provider.php b/blocks/completionstatus/classes/privacy/provider.php new file mode 100644 index 00000000000..947474875ba --- /dev/null +++ b/blocks/completionstatus/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_completionstatus. + * + * @package block_completionstatus + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_completionstatus\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_completionstatus 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\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/blocks/completionstatus/lang/en/block_completionstatus.php b/blocks/completionstatus/lang/en/block_completionstatus.php index 01c0dccdc45..dc93b6feb72 100644 --- a/blocks/completionstatus/lang/en/block_completionstatus.php +++ b/blocks/completionstatus/lang/en/block_completionstatus.php @@ -29,3 +29,4 @@ $string['firstofsecond'] = '{$a->first} of {$a->second}'; $string['pluginname'] = 'Course completion status'; $string['requirement'] = 'Requirement'; $string['returntocourse'] = 'Return to course'; +$string['privacy:metadata'] = 'The Course completion status block only shows information about course completion and does not store any data of its own.'; diff --git a/blocks/course_list/classes/privacy/provider.php b/blocks/course_list/classes/privacy/provider.php new file mode 100644 index 00000000000..ab392e1216a --- /dev/null +++ b/blocks/course_list/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_course_list. + * + * @package block_course_list + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_course_list\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_course_list 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\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/blocks/course_list/lang/en/block_course_list.php b/blocks/course_list/lang/en/block_course_list.php index 1b0e36aedaa..1cd9244376a 100644 --- a/blocks/course_list/lang/en/block_course_list.php +++ b/blocks/course_list/lang/en/block_course_list.php @@ -31,3 +31,4 @@ $string['course_list:myaddinstance'] = 'Add a new courses block to Dashboard'; $string['hideallcourseslink'] = 'Hide \'All courses\' link'; $string['owncourses'] = 'Admin user sees own courses'; $string['pluginname'] = 'Courses'; +$string['privacy:metadata'] = 'The Courses block only shows data about courses and does not store any data itself.'; diff --git a/blocks/course_summary/classes/privacy/provider.php b/blocks/course_summary/classes/privacy/provider.php new file mode 100644 index 00000000000..1c374a12bd7 --- /dev/null +++ b/blocks/course_summary/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_course_summary. + * + * @package block_course_summary + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_course_summary\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_course_summary 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\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/blocks/course_summary/lang/en/block_course_summary.php b/blocks/course_summary/lang/en/block_course_summary.php index e5e69bed0ae..4534d40b02e 100644 --- a/blocks/course_summary/lang/en/block_course_summary.php +++ b/blocks/course_summary/lang/en/block_course_summary.php @@ -26,3 +26,4 @@ $string['coursesummary'] = 'Course summary'; $string['course_summary:addinstance'] = 'Add a new course/site summary block'; $string['pluginname'] = 'Course/site summary'; +$string['privacy:metadata'] = 'The Course and site summaryblock only shows information about courses and does not store data itself.'; diff --git a/blocks/feedback/classes/privacy/provider.php b/blocks/feedback/classes/privacy/provider.php new file mode 100644 index 00000000000..b13a3d66ed9 --- /dev/null +++ b/blocks/feedback/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_feedback. + * + * @package block_feedback + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_feedback\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_feedback 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\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/blocks/feedback/lang/en/block_feedback.php b/blocks/feedback/lang/en/block_feedback.php index 4999f02772d..e9163f99d72 100644 --- a/blocks/feedback/lang/en/block_feedback.php +++ b/blocks/feedback/lang/en/block_feedback.php @@ -25,3 +25,4 @@ $string['feedback'] = 'Feedback'; $string['feedback:addinstance'] = 'Add a new feedback block'; $string['pluginname'] = 'Feedback'; +$string['privacy:metadata'] = 'The Feedback block only shows data stored in other locations.'; diff --git a/blocks/globalsearch/classes/privacy/provider.php b/blocks/globalsearch/classes/privacy/provider.php new file mode 100644 index 00000000000..ca12dd83936 --- /dev/null +++ b/blocks/globalsearch/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_globalsearch. + * + * @package block_globalsearch + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_globalsearch\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_globalsearch 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\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/blocks/globalsearch/lang/en/block_globalsearch.php b/blocks/globalsearch/lang/en/block_globalsearch.php index 8a0635bf71f..6fd21317065 100644 --- a/blocks/globalsearch/lang/en/block_globalsearch.php +++ b/blocks/globalsearch/lang/en/block_globalsearch.php @@ -25,3 +25,4 @@ $string['globalsearch:addinstance'] = 'Add a new global search block'; $string['globalsearch:myaddinstance'] = 'Add a new global search block to Dashboard'; $string['pluginname'] = 'Global search'; +$string['privacy:metadata'] = 'The Global search block only shows data stored in other locations.'; diff --git a/blocks/glossary_random/classes/privacy/provider.php b/blocks/glossary_random/classes/privacy/provider.php new file mode 100644 index 00000000000..9ed697a5f1b --- /dev/null +++ b/blocks/glossary_random/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_glossary_random. + * + * @package block_glossary_random + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_glossary_random\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_glossary_random 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\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/blocks/glossary_random/lang/en/block_glossary_random.php b/blocks/glossary_random/lang/en/block_glossary_random.php index 7f909e8d0b2..1c58f6f2828 100644 --- a/blocks/glossary_random/lang/en/block_glossary_random.php +++ b/blocks/glossary_random/lang/en/block_glossary_random.php @@ -45,3 +45,4 @@ $string['title'] = 'Title'; $string['type'] = 'How a new entry is chosen'; $string['viewglossary'] = 'View all entries'; $string['whichfooter'] = 'You can display links to actions of the glossary this block is associated with. The block will only display links to actions which are enabled for that glossary.'; +$string['privacy:metadata'] = 'The Random glossary entry block only shows data stored in other locations.'; diff --git a/blocks/login/classes/privacy/provider.php b/blocks/login/classes/privacy/provider.php new file mode 100644 index 00000000000..e04d24313da --- /dev/null +++ b/blocks/login/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_login. + * + * @package block_login + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_login\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_login 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\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/blocks/login/lang/en/block_login.php b/blocks/login/lang/en/block_login.php index 9237cabdf17..bf0f6d590a9 100644 --- a/blocks/login/lang/en/block_login.php +++ b/blocks/login/lang/en/block_login.php @@ -24,3 +24,4 @@ $string['login:addinstance'] = 'Add a new login block'; $string['pluginname'] = 'Login'; +$string['privacy:metadata'] = 'The Login block only provides a way to login and does not store any data itself.'; diff --git a/blocks/lp/classes/privacy/provider.php b/blocks/lp/classes/privacy/provider.php new file mode 100644 index 00000000000..289ddffe9bf --- /dev/null +++ b/blocks/lp/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_lp. + * + * @package block_lp + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_lp\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_lp 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\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/blocks/lp/lang/en/block_lp.php b/blocks/lp/lang/en/block_lp.php index 0c0ba9a6161..520f710e202 100644 --- a/blocks/lp/lang/en/block_lp.php +++ b/blocks/lp/lang/en/block_lp.php @@ -34,3 +34,4 @@ $string['planstoreview'] = 'Plans to review'; $string['pluginname'] = 'Learning plans'; $string['viewmore'] = 'View more...'; $string['viewotherplans'] = 'View other plans...'; +$string['privacy:metadata'] = 'The Learning plans block only shows data stored in other locations.'; diff --git a/blocks/mentees/classes/privacy/provider.php b/blocks/mentees/classes/privacy/provider.php new file mode 100644 index 00000000000..1a4519f1c08 --- /dev/null +++ b/blocks/mentees/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_mentees. + * + * @package block_mentees + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_mentees\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_mentees 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\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/blocks/mentees/lang/en/block_mentees.php b/blocks/mentees/lang/en/block_mentees.php index 3f3389bd59e..14640e93ba9 100644 --- a/blocks/mentees/lang/en/block_mentees.php +++ b/blocks/mentees/lang/en/block_mentees.php @@ -30,3 +30,4 @@ $string['mentees:addinstance'] = 'Add a new mentees block'; $string['mentees:myaddinstance'] = 'Add a new mentees block to Dashboard'; $string['newmenteesblock'] = '(new Mentees block)'; $string['pluginname'] = 'Mentees'; +$string['privacy:metadata'] = 'The Mentees block only shows data stored in other locations.'; diff --git a/blocks/mnet_hosts/classes/privacy/provider.php b/blocks/mnet_hosts/classes/privacy/provider.php new file mode 100644 index 00000000000..53ccaa5159f --- /dev/null +++ b/blocks/mnet_hosts/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_mnet_hosts. + * + * @package block_mnet_hosts + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_mnet_hosts\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_mnet_hosts 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\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/blocks/mnet_hosts/lang/en/block_mnet_hosts.php b/blocks/mnet_hosts/lang/en/block_mnet_hosts.php index e70fe345323..4275b75cd04 100644 --- a/blocks/mnet_hosts/lang/en/block_mnet_hosts.php +++ b/blocks/mnet_hosts/lang/en/block_mnet_hosts.php @@ -29,3 +29,4 @@ $string['mnet_hosts:addinstance'] = 'Add a new network servers block'; $string['mnet_hosts:myaddinstance'] = 'Add a new network servers block to Dashboard'; $string['pluginname'] = 'Network servers'; $string['server'] = 'Server'; +$string['privacy:metadata'] = 'The Network servers block only allows interaction with Network servers and neither stores or exports data itself.'; diff --git a/blocks/myoverview/classes/privacy/provider.php b/blocks/myoverview/classes/privacy/provider.php new file mode 100644 index 00000000000..0a6dd116c19 --- /dev/null +++ b/blocks/myoverview/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_myoverview. + * + * @package block_myoverview + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_myoverview\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_myoverview 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\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/blocks/myoverview/lang/en/block_myoverview.php b/blocks/myoverview/lang/en/block_myoverview.php index 2176ec5fcb8..c762db04ee5 100644 --- a/blocks/myoverview/lang/en/block_myoverview.php +++ b/blocks/myoverview/lang/en/block_myoverview.php @@ -44,3 +44,4 @@ $string['sortbydates'] = 'Sort by dates'; $string['timeline'] = 'Timeline'; $string['viewcourse'] = 'View course'; $string['viewcoursename'] = 'View course {$a}'; +$string['privacy:metadata'] = 'The Course overview block only shows data stored in other locations.'; diff --git a/blocks/myprofile/classes/privacy/provider.php b/blocks/myprofile/classes/privacy/provider.php new file mode 100644 index 00000000000..1c5448c755e --- /dev/null +++ b/blocks/myprofile/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_myprofile. + * + * @package block_myprofile + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_myprofile\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_myprofile 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\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/blocks/myprofile/lang/en/block_myprofile.php b/blocks/myprofile/lang/en/block_myprofile.php index fb71798e665..24a7767b60d 100644 --- a/blocks/myprofile/lang/en/block_myprofile.php +++ b/blocks/myprofile/lang/en/block_myprofile.php @@ -45,6 +45,7 @@ $string['myprofile:addinstance'] = 'Add a new logged in user block'; $string['myprofile:myaddinstance'] = 'Add a new logged in user block to Dashboard'; $string['myprofile_settings'] = 'Visible user information'; $string['pluginname'] = 'Logged in user'; +$string['privacy:metadata'] = 'The Logged in users block only shows information about logged in users and does not store data itself.'; // Deprecated since Moodle 3.2. $string['display_un'] = 'Display name'; diff --git a/blocks/navigation/classes/privacy/provider.php b/blocks/navigation/classes/privacy/provider.php new file mode 100644 index 00000000000..945e3029ea8 --- /dev/null +++ b/blocks/navigation/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_navigation. + * + * @package block_navigation + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_navigation\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_navigation 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\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/blocks/navigation/lang/en/block_navigation.php b/blocks/navigation/lang/en/block_navigation.php index 9876e6e9871..89c95e6b2ae 100644 --- a/blocks/navigation/lang/en/block_navigation.php +++ b/blocks/navigation/lang/en/block_navigation.php @@ -39,3 +39,4 @@ $string['trimmoderight'] = 'Trim characters from the right'; $string['trimmodeleft'] = 'Trim characters from the left'; $string['trimmodecenter'] = 'Trim characters from the center'; $string['trimlength'] = 'How many characters to trim to'; +$string['privacy:metadata'] = 'The Navigation block only shows data stored in other locations.'; diff --git a/blocks/news_items/classes/privacy/provider.php b/blocks/news_items/classes/privacy/provider.php new file mode 100644 index 00000000000..83adeb8e065 --- /dev/null +++ b/blocks/news_items/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_news_items. + * + * @package block_news_items + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_news_items\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_news_items 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\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/blocks/news_items/lang/en/block_news_items.php b/blocks/news_items/lang/en/block_news_items.php index ac124e21950..8287d4f0860 100644 --- a/blocks/news_items/lang/en/block_news_items.php +++ b/blocks/news_items/lang/en/block_news_items.php @@ -25,3 +25,4 @@ $string['news_items:addinstance'] = 'Add a new latest announcements block'; $string['news_items:myaddinstance'] = 'Add a new latest announcements block to Dashboard'; $string['pluginname'] = 'Latest announcements'; +$string['privacy:metadata'] = 'The Latest announcements block only shows data stored in the forum and does not store data itself.'; diff --git a/blocks/online_users/classes/privacy/provider.php b/blocks/online_users/classes/privacy/provider.php new file mode 100644 index 00000000000..402ecc0ae8a --- /dev/null +++ b/blocks/online_users/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_online_users. + * + * @package block_online_users + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_online_users\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_online_users 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\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/blocks/online_users/lang/en/block_online_users.php b/blocks/online_users/lang/en/block_online_users.php index 5d641eec3f2..b8b3db132e8 100644 --- a/blocks/online_users/lang/en/block_online_users.php +++ b/blocks/online_users/lang/en/block_online_users.php @@ -30,3 +30,4 @@ $string['online_users:viewlist'] = 'View list of online users'; $string['periodnminutes'] = 'last {$a} minutes'; $string['pluginname'] = 'Online users'; $string['timetosee'] = 'Remove after inactivity (minutes)'; +$string['privacy:metadata'] = 'The Online users block only shows data stored in other locations.'; diff --git a/blocks/participants/classes/privacy/provider.php b/blocks/participants/classes/privacy/provider.php new file mode 100644 index 00000000000..fc751b4d0a4 --- /dev/null +++ b/blocks/participants/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_participants. + * + * @package block_participants + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_participants\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_participants 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\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/blocks/participants/lang/en/block_participants.php b/blocks/participants/lang/en/block_participants.php index bdddf5f9139..20eb2ddbf71 100644 --- a/blocks/participants/lang/en/block_participants.php +++ b/blocks/participants/lang/en/block_participants.php @@ -24,3 +24,4 @@ $string['participants:addinstance'] = 'Add a new people block'; $string['pluginname'] = 'People'; +$string['privacy:metadata'] = 'The People block only shows data stored in other locations.'; diff --git a/blocks/private_files/classes/privacy/provider.php b/blocks/private_files/classes/privacy/provider.php new file mode 100644 index 00000000000..503b4055e2f --- /dev/null +++ b/blocks/private_files/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_private_files. + * + * @package block_private_files + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_private_files\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_private_files 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\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/blocks/private_files/lang/en/block_private_files.php b/blocks/private_files/lang/en/block_private_files.php index 6adb60b47bc..31a0066d2c2 100644 --- a/blocks/private_files/lang/en/block_private_files.php +++ b/blocks/private_files/lang/en/block_private_files.php @@ -26,4 +26,4 @@ $string['pluginname'] = 'Private files'; $string['privatefiles'] = 'Private files'; $string['private_files:addinstance'] = 'Add a new private files block'; $string['private_files:myaddinstance'] = 'Add a new private files block to Dashboard'; - +$string['privacy:metadata'] = 'The Private files block only provides a view of, and link to, the user private files.'; diff --git a/blocks/quiz_results/classes/privacy/provider.php b/blocks/quiz_results/classes/privacy/provider.php new file mode 100644 index 00000000000..6610d8ef868 --- /dev/null +++ b/blocks/quiz_results/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_quiz_results. + * + * @package block_quiz_results + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_quiz_results\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_quiz_results 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\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/blocks/quiz_results/lang/en/block_quiz_results.php b/blocks/quiz_results/lang/en/block_quiz_results.php index 7f8447bf07b..f822a2fd5ed 100644 --- a/blocks/quiz_results/lang/en/block_quiz_results.php +++ b/blocks/quiz_results/lang/en/block_quiz_results.php @@ -24,3 +24,4 @@ $string['pluginname'] = 'Quiz results (disabled)'; $string['quiz_results:addinstance'] = 'Add a new quiz results block'; +$string['privacy:metadata'] = 'The Quiz results block only shows data stored in other locations.'; diff --git a/blocks/search_forums/classes/privacy/provider.php b/blocks/search_forums/classes/privacy/provider.php new file mode 100644 index 00000000000..5f83799efa3 --- /dev/null +++ b/blocks/search_forums/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_search_forums. + * + * @package block_search_forums + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_search_forums\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_search_forums 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\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/blocks/search_forums/lang/en/block_search_forums.php b/blocks/search_forums/lang/en/block_search_forums.php index 1e4b32efa79..c87b74064d8 100644 --- a/blocks/search_forums/lang/en/block_search_forums.php +++ b/blocks/search_forums/lang/en/block_search_forums.php @@ -25,3 +25,4 @@ $string['advancedsearch'] = 'Advanced search'; $string['pluginname'] = 'Search forums'; $string['search_forums:addinstance'] = 'Add a new search forums block'; +$string['privacy:metadata'] = 'The Search forums block only shows data stored in other locations.'; diff --git a/blocks/section_links/classes/privacy/provider.php b/blocks/section_links/classes/privacy/provider.php new file mode 100644 index 00000000000..d598a469807 --- /dev/null +++ b/blocks/section_links/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_section_links. + * + * @package block_section_links + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_section_links\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_section_links 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\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/blocks/section_links/lang/en/block_section_links.php b/blocks/section_links/lang/en/block_section_links.php index 77cf69fb5d0..b2678987e34 100644 --- a/blocks/section_links/lang/en/block_section_links.php +++ b/blocks/section_links/lang/en/block_section_links.php @@ -36,3 +36,4 @@ $string['pluginname'] = 'Section links'; $string['section_links:addinstance'] = 'Add a new section links block'; $string['topics'] = 'Topics'; $string['weeks'] = 'Weeks'; +$string['privacy:metadata'] = 'The Section links block only shows data stored in other locations.'; diff --git a/blocks/selfcompletion/classes/privacy/provider.php b/blocks/selfcompletion/classes/privacy/provider.php new file mode 100644 index 00000000000..af779ce5496 --- /dev/null +++ b/blocks/selfcompletion/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_selfcompletion. + * + * @package block_selfcompletion + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_selfcompletion\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_selfcompletion 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\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/blocks/selfcompletion/lang/en/block_selfcompletion.php b/blocks/selfcompletion/lang/en/block_selfcompletion.php index 5d5f340f90a..2561b6ad9c3 100644 --- a/blocks/selfcompletion/lang/en/block_selfcompletion.php +++ b/blocks/selfcompletion/lang/en/block_selfcompletion.php @@ -27,3 +27,4 @@ $string['completecourse'] = 'Complete course'; $string['pluginname'] = 'Self completion'; $string['selfcompletionnotenabled'] = 'The self completion criteria has not been enabled for this course'; $string['selfcompletion:addinstance'] = 'Add a new self completion block'; +$string['privacy:metadata'] = 'The Self completion block only shows data stored in other locations.'; diff --git a/blocks/settings/classes/privacy/provider.php b/blocks/settings/classes/privacy/provider.php new file mode 100644 index 00000000000..0baacd4463f --- /dev/null +++ b/blocks/settings/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_settings. + * + * @package block_settings + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_settings\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_settings 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\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/blocks/settings/lang/en/block_settings.php b/blocks/settings/lang/en/block_settings.php index 05b94af939b..80e95b23d22 100644 --- a/blocks/settings/lang/en/block_settings.php +++ b/blocks/settings/lang/en/block_settings.php @@ -28,3 +28,4 @@ $string['enabledock'] = 'Allow the user to dock this block'; $string['pluginname'] = 'Administration'; $string['settings:addinstance'] = 'Add a new administration block'; $string['settings:myaddinstance'] = 'Add a new administration block to Dashboard'; +$string['privacy:metadata'] = 'The Administration block only shows data stored in other locations.'; diff --git a/blocks/site_main_menu/classes/privacy/provider.php b/blocks/site_main_menu/classes/privacy/provider.php new file mode 100644 index 00000000000..fda0914ef42 --- /dev/null +++ b/blocks/site_main_menu/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_site_main_menu. + * + * @package block_site_main_menu + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_site_main_menu\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_site_main_menu 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\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/blocks/site_main_menu/lang/en/block_site_main_menu.php b/blocks/site_main_menu/lang/en/block_site_main_menu.php index 7168054eef9..aba47e3ab47 100644 --- a/blocks/site_main_menu/lang/en/block_site_main_menu.php +++ b/blocks/site_main_menu/lang/en/block_site_main_menu.php @@ -25,3 +25,4 @@ $string['pluginname'] = 'Main menu'; $string['site_main_menu:addinstance'] = 'Add a new main menu block'; +$string['privacy:metadata'] = 'The Main menu block only shows data stored in other locations.'; diff --git a/blocks/social_activities/classes/privacy/provider.php b/blocks/social_activities/classes/privacy/provider.php new file mode 100644 index 00000000000..a3fad84e4e1 --- /dev/null +++ b/blocks/social_activities/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_social_activities. + * + * @package block_social_activities + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_social_activities\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_social_activities 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\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/blocks/social_activities/lang/en/block_social_activities.php b/blocks/social_activities/lang/en/block_social_activities.php index c8a467ac36f..3ec6b658b02 100644 --- a/blocks/social_activities/lang/en/block_social_activities.php +++ b/blocks/social_activities/lang/en/block_social_activities.php @@ -24,3 +24,4 @@ $string['pluginname'] = 'Social activities'; $string['social_activities:addinstance'] = 'Add a new social activities block'; +$string['privacy:metadata'] = 'The Social activities block only shows data stored in other locations.'; diff --git a/blocks/tag_flickr/classes/privacy/provider.php b/blocks/tag_flickr/classes/privacy/provider.php new file mode 100644 index 00000000000..4cb738dc653 --- /dev/null +++ b/blocks/tag_flickr/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_tag_flickr. + * + * @package block_tag_flickr + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_tag_flickr\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_tag_flickr 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\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/blocks/tag_flickr/lang/en/block_tag_flickr.php b/blocks/tag_flickr/lang/en/block_tag_flickr.php index 1057087991a..2255d156fdd 100644 --- a/blocks/tag_flickr/lang/en/block_tag_flickr.php +++ b/blocks/tag_flickr/lang/en/block_tag_flickr.php @@ -37,3 +37,4 @@ $string['pluginname'] = 'Flickr'; $string['relevance'] = 'Relevance'; $string['sortby'] = 'Sort by'; $string['tag_flickr:addinstance'] = 'Add a new flickr block'; +$string['privacy:metadata'] = 'The Flickr block only shows data stored in other locations.'; diff --git a/blocks/tag_youtube/classes/privacy/provider.php b/blocks/tag_youtube/classes/privacy/provider.php new file mode 100644 index 00000000000..e7f0c29cf81 --- /dev/null +++ b/blocks/tag_youtube/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_tag_youtube. + * + * @package block_tag_youtube + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_tag_youtube\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_tag_youtube 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\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/blocks/tag_youtube/lang/en/block_tag_youtube.php b/blocks/tag_youtube/lang/en/block_tag_youtube.php index 2016fd3b4f8..58796b5c95d 100644 --- a/blocks/tag_youtube/lang/en/block_tag_youtube.php +++ b/blocks/tag_youtube/lang/en/block_tag_youtube.php @@ -47,3 +47,4 @@ $string['scienceandtech'] = 'Science & Tech'; $string['sports'] = 'Sports'; $string['tag_youtube:addinstance'] = 'Add a new YouTube block'; $string['travel'] = 'Travel & Places'; +$string['privacy:metadata'] = 'The Youtube block only shows data stored in other locations.'; diff --git a/blocks/tags/classes/privacy/provider.php b/blocks/tags/classes/privacy/provider.php new file mode 100644 index 00000000000..0ecadd4fd8c --- /dev/null +++ b/blocks/tags/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for block_tags. + * + * @package block_tags + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace block_tags\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for block_tags 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\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/blocks/tags/lang/en/block_tags.php b/blocks/tags/lang/en/block_tags.php index 5fce06ebf01..9f06079175e 100644 --- a/blocks/tags/lang/en/block_tags.php +++ b/blocks/tags/lang/en/block_tags.php @@ -38,4 +38,4 @@ $string['taggeditemscontext'] = 'Tagged items context'; $string['taggeditemscontext_help'] = 'You can limit the tag cloud to the tags that are present in the current course category, course or module'; $string['tags:addinstance'] = 'Add a new tags block'; $string['tags:myaddinstance'] = 'Add a new tags block to Dashboard'; - +$string['privacy:metadata'] = 'The Tags block only shows data stored in other locations.';