Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yurinskiy committed Feb 22, 2020
1 parent cab904c commit 2aff01c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
35 changes: 35 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

namespace local_cohort_profile\privacy;
defined('MOODLE_INTERNAL') || die();

/**
* @package local_cohort_profile
* @copyright 2019, Yuriy Yurinskiy <[email protected]>
* @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';
}
}
6 changes: 4 additions & 2 deletions lang/en/local_cohort_profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
* Strings for component 'local_cohort_profile', language 'en'
*
* @package local_cohort_profile
* @copyright 2019, YuriyYurinskiy <[email protected]>
* @copyright 2019, Yuriy Yurinskiy <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Cohorts in profile';
$string['hidden'] = 'The cohort is hidden';
$string['hidden'] = 'The cohort is hidden';

$string['privacy:metadata'] = 'The Cohorts in profile plugin does not store any personal data.';
6 changes: 4 additions & 2 deletions lang/ru/local_cohort_profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
* Strings for component 'local_cohort_profile', language 'ru'
*
* @package local_cohort_profile
* @copyright 2019, YuriyYurinskiy <[email protected]>
* @copyright 2019, Yuriy Yurinskiy <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Глобальные группы в профиле';
$string['hidden'] = 'Эта глобальная группа скрыта';
$string['hidden'] = 'Эта глобальная группа скрыта';

$string['privacy:metadata'] = 'Плагин Глобальные группы в профиле не хранит никаких персональных данных.';
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* This file contains the code for the plugin integration.
*
* @package local_cohort_profile
* @copyright 2019, YuriyYurinskiy <[email protected]>
* @copyright 2019, Yuriy Yurinskiy <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Version details.
*
* @package local_cohort_profile
* @copyright 2019, YuriyYurinskiy <[email protected]>
* @copyright 2019, Yuriy Yurinskiy <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

Expand Down

0 comments on commit 2aff01c

Please sign in to comment.