diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..76e971c --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,35 @@ +. + +namespace local_cohort_profile\privacy; +defined('MOODLE_INTERNAL') || die(); + +/** + * @package local_cohort_profile + * @copyright 2019, Yuriy Yurinskiy + * @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'; + } +} \ No newline at end of file diff --git a/lang/en/local_cohort_profile.php b/lang/en/local_cohort_profile.php index 0d20d03..cf908a8 100644 --- a/lang/en/local_cohort_profile.php +++ b/lang/en/local_cohort_profile.php @@ -18,9 +18,11 @@ * Strings for component 'local_cohort_profile', language 'en' * * @package local_cohort_profile - * @copyright 2019, YuriyYurinskiy + * @copyright 2019, Yuriy Yurinskiy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'Cohorts in profile'; -$string['hidden'] = 'The cohort is hidden'; \ No newline at end of file +$string['hidden'] = 'The cohort is hidden'; + +$string['privacy:metadata'] = 'The Cohorts in profile plugin does not store any personal data.'; diff --git a/lang/ru/local_cohort_profile.php b/lang/ru/local_cohort_profile.php index 32abafb..8e08177 100644 --- a/lang/ru/local_cohort_profile.php +++ b/lang/ru/local_cohort_profile.php @@ -18,9 +18,11 @@ * Strings for component 'local_cohort_profile', language 'ru' * * @package local_cohort_profile - * @copyright 2019, YuriyYurinskiy + * @copyright 2019, Yuriy Yurinskiy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'Глобальные группы в профиле'; -$string['hidden'] = 'Эта глобальная группа скрыта'; \ No newline at end of file +$string['hidden'] = 'Эта глобальная группа скрыта'; + +$string['privacy:metadata'] = 'Плагин Глобальные группы в профиле не хранит никаких персональных данных.'; \ No newline at end of file diff --git a/lib.php b/lib.php index d420c5e..9790dc3 100644 --- a/lib.php +++ b/lib.php @@ -18,7 +18,7 @@ * This file contains the code for the plugin integration. * * @package local_cohort_profile - * @copyright 2019, YuriyYurinskiy + * @copyright 2019, Yuriy Yurinskiy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/version.php b/version.php index 7752811..bf88fec 100644 --- a/version.php +++ b/version.php @@ -18,7 +18,7 @@ * Version details. * * @package local_cohort_profile - * @copyright 2019, YuriyYurinskiy + * @copyright 2019, Yuriy Yurinskiy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */