Skip to content

Commit

Permalink
MDL-61307 core: Define a new privacy component
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 9, 2018
1 parent f4e99c5 commit 24125dd
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -2072,6 +2072,7 @@
$string['userselectorsearchanywhere'] = 'Match the search text anywhere in the displayed fields';
$string['usersnew'] = 'New users';
$string['usersnoaccesssince'] = 'Inactive for more than';
$string['userpreferences'] = 'User preferences';
$string['userswithfiles'] = 'Users with files';
$string['useruploadtype'] = 'User upload type: {$a}';
$string['userzones'] = 'User zones';
Expand Down
23 changes: 23 additions & 0 deletions lang/en/privacy.php
@@ -0,0 +1,23 @@
<?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/>.

/**
* Strings for component 'privacy', language 'en', branch 'master'
*
* @package core_privacy
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
1 change: 1 addition & 0 deletions lib/classes/component.php
Expand Up @@ -470,6 +470,7 @@ protected static function fetch_subsystems() {
'plagiarism' => $CFG->dirroot.'/plagiarism',
'plugin' => null,
'portfolio' => $CFG->dirroot.'/portfolio',
'privacy' => $CFG->dirroot . '/privacy',
'publish' => $CFG->dirroot.'/course/publish',
'question' => $CFG->dirroot.'/question',
'rating' => $CFG->dirroot.'/rating',
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/component_test.php
Expand Up @@ -36,7 +36,7 @@ class core_component_testcase extends advanced_testcase {
* this is defined here to annoy devs that try to add more without any thinking,
* always verify that it does not collide with any existing add-on modules and subplugins!!!
*/
const SUBSYSTEMCOUNT = 67;
const SUBSYSTEMCOUNT = 68;

public function setUp() {
$psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces');
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Expand Up @@ -93,6 +93,9 @@
<testsuite name="core_course_testsuite">
<directory suffix="_test.php">course/tests</directory>
</testsuite>
<testsuite name="core_privacy_testsuite">
<directory suffix="_test.php">privacy/tests</directory>
</testsuite>
<testsuite name="core_question_testsuite">
<directory suffix="_test.php">question/engine/tests</directory>
<directory suffix="_test.php">question/tests</directory>
Expand Down

0 comments on commit 24125dd

Please sign in to comment.