diff --git a/repository/equella/classes/privacy/provider.php b/repository/equella/classes/privacy/provider.php new file mode 100644 index 00000000000..2b85397e5a2 --- /dev/null +++ b/repository/equella/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_equella. + * + * @package repository_equella + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_equella\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_equella 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'; + } +} diff --git a/repository/equella/lang/en/repository_equella.php b/repository/equella/lang/en/repository_equella.php index 48cc558149d..e00ca203662 100644 --- a/repository/equella/lang/en/repository_equella.php +++ b/repository/equella/lang/en/repository_equella.php @@ -46,3 +46,4 @@ $string['group'] = '{$a} role settings'; $string['groupdefault'] = 'Default'; $string['sharedidtitle'] = 'Shared secret ID'; $string['sharedsecrettitle'] = 'Shared secret'; +$string['privacy:metadata'] = 'The EQUELLA repository plugin does not store any personal data, but does transmit user data from Moodle to the remote system.';