From 65f6e6ad896fceb98b94f0561eae851a3cff2f94 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Tue, 17 Apr 2018 10:21:03 +0800 Subject: [PATCH] MDL-61568 repository_webdav: Implement null privacy provider --- .../webdav/classes/privacy/provider.php | 46 +++++++++++++++++++ .../webdav/lang/en/repository_webdav.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 repository/webdav/classes/privacy/provider.php diff --git a/repository/webdav/classes/privacy/provider.php b/repository/webdav/classes/privacy/provider.php new file mode 100644 index 0000000000000..1150547d39cb5 --- /dev/null +++ b/repository/webdav/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_webdav. + * + * @package repository_webdav + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_webdav\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_webdav 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'; + } +} diff --git a/repository/webdav/lang/en/repository_webdav.php b/repository/webdav/lang/en/repository_webdav.php index 5e6b73974261a..13939a0a489a3 100644 --- a/repository/webdav/lang/en/repository_webdav.php +++ b/repository/webdav/lang/en/repository_webdav.php @@ -37,3 +37,4 @@ $string['webdavdigestauth'] = 'WebDAV digest authentication'; $string['webdav'] = 'WebDAV'; $string['webdav:view'] = 'View WebDav repository'; +$string['privacy:metadata'] = 'The WebDAV repository plugin does not store any personal data, but it is transmitted from Moodle to the remote system.';