Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 38... Línea 38...
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
39
 */
40
abstract class plagiarism_plugin {
40
abstract class plagiarism_plugin {
Línea 41... Línea 41...
41
 
41
 
42
    /**
-
 
43
     * Return the list of form element names.
-
 
44
     * @deprecated Since Moodle 4.0 - this function was a placeholder and not used in core.
-
 
45
     * @todo MDL-71326 Remove this method.
-
 
46
     * @return array contains the form element names.
-
 
47
     */
-
 
48
    public function get_configs() {
-
 
49
        return array();
-
 
50
    }
-
 
51
 
-
 
52
    /**
42
    /**
53
     * hook to allow plagiarism specific information to be displayed beside a submission
43
     * hook to allow plagiarism specific information to be displayed beside a submission
54
     * @param array  $linkarraycontains all relevant information for the plugin to generate a link
44
     * @param array  $linkarraycontains all relevant information for the plugin to generate a link
55
     * @return string
45
     * @return string
56
     */
46
     */
57
    public function get_links($linkarray) {
47
    public function get_links($linkarray) {
58
        return '';
48
        return '';
59
    }
-
 
60
    /**
-
 
61
     * hook to allow plagiarism specific information to be returned unformatted
-
 
62
     * @deprecated Since Moodle 4.0 - this function was a placeholder and not used in core Moodle code.
-
 
63
     * @todo MDL-71326 Remove this method.
-
 
64
     * @param int $cmid
-
 
65
     * @param int $userid
-
 
66
     * @param $file file object
-
 
67
     * @return array containing at least:
-
 
68
     *   - 'analyzed' - whether the file has been successfully analyzed
-
 
69
     *   - 'score' - similarity score - ('' if not known)
-
 
70
     *   - 'reporturl' - url of originality report - '' if unavailable
-
 
71
     */
-
 
72
    public function get_file_results($cmid, $userid, $file) {
-
 
73
        return array('analyzed' => '', 'score' => '', 'reporturl' => '');
49
    }
74
    }
50
 
75
    /**
51
    /**
76
     * hook to allow a disclosure to be printed notifying users what will happen with their submission
52
     * hook to allow a disclosure to be printed notifying users what will happen with their submission
77
     * @param int $cmid - course module id
53
     * @param int $cmid - course module id
78
     * @return string
54
     * @return string
79
     */
55
     */
80
    public function print_disclosure($cmid) {
56
    public function print_disclosure($cmid) {
81
    }
-
 
82
    /**
-
 
83
     * hook to allow status of submitted files to be updated - called on grading/report pages.
-
 
84
     * @deprecated Since Moodle 4.0 - Please use {plugin name}_before_standard_top_of_body_html instead.
-
 
85
     * @todo MDL-71326 Remove this method.
-
 
86
     * @param object $course - full Course object
-
 
87
     * @param object $cm - full cm object
-
 
88
     */
-
 
89
    public function update_status($course, $cm) {
-
 
90
    }
57
    }