From 664753b7873f3dcc200f255bfb5a7535424f9eca Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Wed, 9 May 2018 18:26:58 +0200 Subject: Add privacy provider --- classes/privacy/provider.php | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 classes/privacy/provider.php (limited to 'classes') diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..65b0a17 --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,50 @@ +. + +/** + * Privacy main class. + * + * @package qtype_algebra + * @copyright 2018 Jean-Michel vedrine + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace qtype_algebra\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy main class. + * + * @package qtype_algebra + * @copyright 2018 Jean-Michel Vedrine + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + // To provide php 5.6 (33_STABLE) and up support. + use \core_privacy\local\legacy_polyfill; + + /** + * 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'; + } +} \ No newline at end of file -- cgit v1.2.3