Merge branch 'MDL-61751-master-fix' of https://github.com/snake/moodle

This commit is contained in:
Andrew Nicols 2018-04-04 09:10:32 +08:00
commit b9201e1b2b
2 changed files with 5 additions and 5 deletions

View file

@ -34,10 +34,7 @@ defined('MOODLE_INTERNAL') || die();
*/ */
interface plagiarism_provider extends interface plagiarism_provider extends
// The plagiarism_provider should be implemented by plugins which only provide information to a subsystem. // The plagiarism_provider should be implemented by plugins which only provide information to a subsystem.
\core_privacy\local\request\plugin\subsystem_provider, \core_privacy\local\request\plugin\subsystem_provider {
// All plagiarism plugins should also implement the metadata provider.
\core_privacy\local\metadata\provider {
/** /**
* Export all plagiarism data from each plagiarism plugin for the specified userid and context. * Export all plagiarism data from each plagiarism plugin for the specified userid and context.

View file

@ -94,9 +94,12 @@ class core_plagiarism_privacy_legacy_polyfill_test extends advanced_testcase {
* @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com> * @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class test_legacy_polyfill_plagiarism_provider implements \core_plagiarism\privacy\plagiarism_provider { class test_legacy_polyfill_plagiarism_provider implements
\core_privacy\local\metadata\provider,
\core_plagiarism\privacy\plagiarism_provider {
use \core_plagiarism\privacy\legacy_polyfill; use \core_plagiarism\privacy\legacy_polyfill;
use \core_privacy\local\legacy_polyfill;
/** /**
* @var test_legacy_polyfill_plagiarism_provider $mock. * @var test_legacy_polyfill_plagiarism_provider $mock.