mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
7c5199bdc9
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
<?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/>.
|
|
|
|
/**
|
|
* lib.php - Contains Plagiarism base class used by plugins.
|
|
*
|
|
* @since Moodle 2.0
|
|
* @package core_plagiarism
|
|
* @copyright 2010 Dan Marsden http://danmarsden.com
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
if (!defined('MOODLE_INTERNAL')) {
|
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
|
}
|
|
|
|
|
|
/**
|
|
* Plagiarism base class used by plugins.
|
|
*
|
|
* @since Moodle 2.0
|
|
* @package core_plagiarism
|
|
* @copyright 2010 Dan Marsden http://danmarsden.com
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
abstract class plagiarism_plugin {
|
|
|
|
/**
|
|
* hook to allow plagiarism specific information to be displayed beside a submission
|
|
* @param array $linkarraycontains all relevant information for the plugin to generate a link
|
|
* @return string
|
|
*/
|
|
public function get_links($linkarray) {
|
|
return '';
|
|
}
|
|
|
|
/**
|
|
* hook to allow a disclosure to be printed notifying users what will happen with their submission
|
|
* @param int $cmid - course module id
|
|
* @return string
|
|
*/
|
|
public function print_disclosure($cmid) {
|
|
}
|
|
}
|