From 9f5aecebfe244de7df7449f22726e2183a43ecfb Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 5 Apr 2018 14:56:02 +0800 Subject: [PATCH] MDL-61867 fileconverter_unoconv: Add privacy files --- .../unoconv/classes/privacy/provider.php | 46 +++++++++++++++++++ .../unoconv/lang/en/fileconverter_unoconv.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 files/converter/unoconv/classes/privacy/provider.php diff --git a/files/converter/unoconv/classes/privacy/provider.php b/files/converter/unoconv/classes/privacy/provider.php new file mode 100644 index 00000000000..5aacf511aa5 --- /dev/null +++ b/files/converter/unoconv/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy provider implementation for fileconverter_unoconv. + * + * @package fileconverter_unoconv + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace fileconverter_unoconv\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for fileconverter_unoconv. + * + * @copyright 2018 Mihail Geshoski + * @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/files/converter/unoconv/lang/en/fileconverter_unoconv.php b/files/converter/unoconv/lang/en/fileconverter_unoconv.php index b01fda30397..1b2a99b5b30 100644 --- a/files/converter/unoconv/lang/en/fileconverter_unoconv.php +++ b/files/converter/unoconv/lang/en/fileconverter_unoconv.php @@ -27,6 +27,7 @@ defined('MOODLE_INTERNAL') || die(); $string['pathtounoconv'] = 'Path to unoconv document converter'; $string['pathtounoconv_help'] = 'Path to unoconv document converter. This is an executable that is capable of converting between document formats supported by LibreOffice. This is optional, but if specified, Moodle will use it to automatically convert between document formats. This is used to support a wider range of input files for the assignment annotate PDF feature.'; $string['pluginname'] = 'Unoconv'; +$string['privacy:metadata'] = 'The Unoconv document converter plugin does not store any personal data.'; $string['test_unoconv'] = 'Test unoconv path'; $string['test_unoconvdoesnotexist'] = 'The unoconv path does not point to the unoconv program. Please review your path settings.'; $string['test_unoconvdownload'] = 'Download the converted pdf test file.';