From 77e4535fd9faba7bf29b3b06dcdddf2800fadedf Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 12 Apr 2018 13:28:06 +0800 Subject: [PATCH] MDL-60848 atto_recordrtc: implemented privacy provider --- .../recordrtc/classes/privacy/provider.php | 46 +++++++++++++++++++ .../recordrtc/lang/en/atto_recordrtc.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 lib/editor/atto/plugins/recordrtc/classes/privacy/provider.php diff --git a/lib/editor/atto/plugins/recordrtc/classes/privacy/provider.php b/lib/editor/atto/plugins/recordrtc/classes/privacy/provider.php new file mode 100644 index 00000000000..07aafd28315 --- /dev/null +++ b/lib/editor/atto/plugins/recordrtc/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for atto_recordrtc. + * + * @package atto_recordrtc + * @copyright 2018 Mark Nelson + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace atto_recordrtc\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for atto_recordrtc implementing null_provider. + * + * @copyright 2018 Mark Nelson + * @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/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php b/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php index a4e6e4827f4..2377f5e6a41 100755 --- a/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php +++ b/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php @@ -60,6 +60,7 @@ $string['nowebrtc_title'] = 'WebRTC not supported'; $string['onlyaudio'] = 'Audio only'; $string['onlyvideo'] = 'Video only'; $string['pluginname'] = 'RecordRTC'; +$string['privacy:metadata'] = 'The RecordRTC plugin does not store any personal data.'; $string['recordagain'] = 'Record again'; $string['recordingfailed'] = 'Recording failed, try again'; $string['settings'] = 'RecordRTC settings';