diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..6c1f6ec --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,48 @@ +. + +/** + * Privacy Subsystem implementation for availability_ipaddress. + * + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * + * @package availability_ipaddress + * @copyright 2019-05-14 Mfreak.nl | LdesignMedia.nl - Luuk Verhoeven + * @author Luuk Verhoeven + **/ + +namespace availability_ipaddress\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for availability_ipaddress implementing null_provider. + * + * @copyright 2019-05-14 Mfreak.nl | LdesignMedia.nl - Luuk Verhoeven + * @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/lang/en/availability_ipaddress.php b/lang/en/availability_ipaddress.php index 165c87b..baa7295 100644 --- a/lang/en/availability_ipaddress.php +++ b/lang/en/availability_ipaddress.php @@ -32,4 +32,7 @@ $string['require_condition'] = 'Matching ip-address/subnet'; $string['js:ipaddress'] = 'Require network address'; // Errors. -$string['error_ipaddress'] = 'Incorrect ip-address/subnet format'; \ No newline at end of file +$string['error_ipaddress'] = 'Incorrect ip-address/subnet format'; + +// Privacy provider. +$string['privacy:metadata'] = 'The restriction by activity ipaddress plugin does not store any personal data.'; \ No newline at end of file diff --git a/version.php b/version.php index 0275a82..bd0e3de 100644 --- a/version.php +++ b/version.php @@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'availability_ipaddress'; -$plugin->version = 2019051501; -$plugin->release = 'v3.5.1'; +$plugin->version = 2019052100; +$plugin->release = 'v3.5.2'; $plugin->requires = 2016120500; $plugin->maturity = MATURITY_BETA; \ No newline at end of file