Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
// This file is part of Moodle - http://moodle.org/
4
//
5
// Moodle is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// Moodle is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17
 
18
/**
19
 * lib.php - Contains Plagiarism base class used by plugins.
20
 *
21
 * @since Moodle 2.0
22
 * @package    core_plagiarism
23
 * @copyright  2010 Dan Marsden http://danmarsden.com
24
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
26
 
27
if (!defined('MOODLE_INTERNAL')) {
28
    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
29
}
30
 
31
 
32
/**
33
 * Plagiarism base class used by plugins.
34
 *
35
 * @since Moodle 2.0
36
 * @package    core_plagiarism
37
 * @copyright  2010 Dan Marsden http://danmarsden.com
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
40
abstract class plagiarism_plugin {
41
 
42
    /**
43
     * hook to allow plagiarism specific information to be displayed beside a submission
44
     * @param array  $linkarraycontains all relevant information for the plugin to generate a link
45
     * @return string
46
     */
47
    public function get_links($linkarray) {
48
        return '';
49
    }
1441 ariadna 50
 
1 efrain 51
    /**
52
     * hook to allow a disclosure to be printed notifying users what will happen with their submission
53
     * @param int $cmid - course module id
54
     * @return string
55
     */
56
    public function print_disclosure($cmid) {
57
    }
58
}