Skip to content

Commit

Permalink
CTP-919 - adding privacy api
Browse files Browse the repository at this point in the history
  • Loading branch information
cceaean authored and cceaean committed Jun 8, 2022
1 parent 82b9483 commit e487297
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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 enrol_dbuserrel\privacy;

class provider implements
// This plugin does not store any personal user data.
\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';
}
}
2 changes: 1 addition & 1 deletion lang/en/enrol_dbuserrel.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
$string['failure_uidtranslateprofile'] = 'Failed to translate Moodle user Id {$a->u} into a {$a->id} profile field value';
$string['failure_moodleuidtrl'] = 'Unable to translate user table value {$a->v} to a Moodle user ID because {$a->err}';
$string['failure_profilevaluetranslate'] = 'Unable to translate profile value {$a->v} to a Moodle user ID because {$a->err}';

$string['privacy:metadata'] = 'plugin does not store any personal data.';

0 comments on commit e487297

Please sign in to comment.