Skip to content

Commit

Permalink
Merge pull request #10 from turnitin/develop
Browse files Browse the repository at this point in the history
Develop to master for release 2018121801
  • Loading branch information
dwinn authored Dec 20, 2018
2 parents 4e0594d + c5cb05e commit 3d987c9
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Date: 2018-December-18
### Release: v2018121801

- Moodle's Privacy API is now supported. (Thanks to @olive007).

---

### Date: 2016-April-11
### Release: v2016011105

Expand Down
51 changes: 51 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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 Subsystem implementation for block_turnitin.
*
* @package block_turnitin
* @copyright 2018 Olivier SECRET <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace block_turnitin\privacy;

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

use core_privacy\local\request\context;

/**
* @copyright 2018 Olivier SECRET <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements
\core_privacy\local\metadata\null_provider {

use \core_privacy\local\legacy_polyfill;

/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
*
* This function is compatible with old php version. (Diff is the underscore '_' in the beginning)
* But the get_reason is still available because of the trait legacy_polyfill.
*
* @return string
*/
public static function _get_reason() {
return 'privacy:no_data_reason';
}
}
1 change: 1 addition & 0 deletions lang/en/block_turnitin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
$string['turnitin'] = 'Turnitin';
$string['coursestomigrate'] = 'You have {$a} classes available to restore from Turnitin';
$string['helpdesklink'] = 'Need Help with Turnitin?';
$string['privacy:no_data_reason'] = "The Turnitin block doesn't store any personal data.";
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$plugin->version = 2016011105; // YYYYMMDDHH (year, month, day, 24-hr time)
$plugin->requires = 2012062500; // YYYYMMDDHH (This is the release version for Moodle 2.3)
$plugin->version = 2018121801; // YYYYMMDDHH (year, month, day, 24-hr time)
$plugin->requires = 2014051200; // YYYYMMDDHH (This is the release version for Moodle 2.7)
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '2.6+';
$plugin->dependencies = array('mod_turnitintooltwo' => 2016011104);
$plugin->release = '2.7+';
$plugin->dependencies = array('mod_turnitintooltwo' => 2018042701);
$plugin->component = 'block_turnitin';

0 comments on commit 3d987c9

Please sign in to comment.