Skip to content

Commit

Permalink
MDL-61918 assignment: Implement null privacy provider
Browse files Browse the repository at this point in the history
Implement null privacy provider to offline, online, upload and uploadsingle assignment plugins.
  • Loading branch information
Mihail Geshoski committed Apr 16, 2018
1 parent e1ed5f7 commit fbf8d40
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 0 deletions.
46 changes: 46 additions & 0 deletions mod/assignment/type/offline/classes/privacy/provider.php
@@ -0,0 +1,46 @@
<?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/>.

/**
* Privacy provider implementation for assignment_offline.
*
* @package assignment_offline
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace assignment_offline\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy provider implementation for assignment_offline.
*
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @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() {
return 'privacy:metadata';
}
}
1 change: 1 addition & 0 deletions mod/assignment/type/offline/lang/en/assignment_offline.php
Expand Up @@ -23,3 +23,4 @@
*/

$string['pluginname'] = 'Offline';
$string['privacy:metadata'] = 'The Offline assignment plugin does not store any personal data.';
46 changes: 46 additions & 0 deletions mod/assignment/type/online/classes/privacy/provider.php
@@ -0,0 +1,46 @@
<?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/>.

/**
* Privacy provider implementation for assignment_online.
*
* @package assignment_online
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace assignment_online\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy provider implementation for assignment_online.
*
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @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() {
return 'privacy:metadata';
}
}
1 change: 1 addition & 0 deletions mod/assignment/type/online/lang/en/assignment_online.php
Expand Up @@ -24,3 +24,4 @@

$string['event_assessable_uploaded'] = 'An online text has been uploaded.';
$string['pluginname'] = 'Online';
$string['privacy:metadata'] = 'The Online assignment plugin does not store any personal data.';
46 changes: 46 additions & 0 deletions mod/assignment/type/upload/classes/privacy/provider.php
@@ -0,0 +1,46 @@
<?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/>.

/**
* Privacy provider implementation for assignment_upload.
*
* @package assignment_upload
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace assignment_upload\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy provider implementation for assignment_upload.
*
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @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() {
return 'privacy:metadata';
}
}
1 change: 1 addition & 0 deletions mod/assignment/type/upload/lang/en/assignment_upload.php
Expand Up @@ -25,3 +25,4 @@
$string['event_assessable_submitted'] = 'An upload submission has been submitted.';
$string['event_assessable_uploaded'] = 'A file has been uploaded.';
$string['pluginname'] = 'Upload';
$string['privacy:metadata'] = 'The Upload assignment plugin does not store any personal data.';
46 changes: 46 additions & 0 deletions mod/assignment/type/uploadsingle/classes/privacy/provider.php
@@ -0,0 +1,46 @@
<?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/>.

/**
* Privacy provider implementation for assignment_uploadsingle.
*
* @package assignment_uploadsingle
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace assignment_uploadsingle\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy provider implementation for assignment_uploadsingle.
*
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
* @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() {
return 'privacy:metadata';
}
}
Expand Up @@ -23,3 +23,4 @@
*/

$string['pluginname'] = 'Upload single';
$string['privacy:metadata'] = 'The Upload single assignment plugin does not store any personal data.';

0 comments on commit fbf8d40

Please sign in to comment.