From b8bea9d1b75f0971f3bf2178b5a984f210b7be11 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Fri, 13 Apr 2018 11:30:27 +0800 Subject: [PATCH] MDL-61663 portfolio_download: add privacy provider implementation --- .../download/classes/privacy/provider.php | 48 +++++++++++++++++++ .../download/lang/en/portfolio_download.php | 1 + 2 files changed, 49 insertions(+) create mode 100644 portfolio/download/classes/privacy/provider.php diff --git a/portfolio/download/classes/privacy/provider.php b/portfolio/download/classes/privacy/provider.php new file mode 100644 index 00000000000..44fa942bb1e --- /dev/null +++ b/portfolio/download/classes/privacy/provider.php @@ -0,0 +1,48 @@ +. + +/** + * Privacy class for requesting user data. + * + * @package portfolio_download + * @copyright 2018 Jake Dallimore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace portfolio_download\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Provider for the portfolio_download plugin. + * + * @copyright 2018 Jake Dallimore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements + // This portfolio plugin does not store any data itself. + // It has no database tables, and it purely acts as a conduit, sending data externally. + \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'; + } +} diff --git a/portfolio/download/lang/en/portfolio_download.php b/portfolio/download/lang/en/portfolio_download.php index d0d7af2b0b6..7936700a9c8 100644 --- a/portfolio/download/lang/en/portfolio_download.php +++ b/portfolio/download/lang/en/portfolio_download.php @@ -26,3 +26,4 @@ $string['downloadfile'] = 'Download your portfolio export file'; $string['downloading'] = 'Downloading ...'; $string['pluginname'] = 'File download'; +$string['privacy:metadata'] = 'This plugin does not store personal data, nor does it export personal data to an external location.';