|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Functions | |
| if(!defined('MOODLE_INTERNAL')) | plagiarism_get_links ($linkarray) |
| plagiarism_get_file_results ($cmid, $userid, $file) | |
| plagiarism_save_form_elements ($data) | |
| plagiarism_get_form_elements_module ($mform, $context) | |
| plagiarism_update_status ($course, $cm) | |
| plagiarism_print_disclosure ($cmid) | |
| plagiarism_cron () | |
| plagiarism_load_available_plugins () | |
| plagiarism_cron | ( | ) |
used by admin/cron.php to get similarity scores from submitted files.
Definition at line 166 of file plagiarismlib.php.


| plagiarism_get_file_results | ( | $ | cmid, |
| $ | userid, | ||
| $ | file | ||
| ) |
returns array of plagiarism details about specified file
| int | $cmid | |
| int | $userid | |
| object | $file | moodle file object |
Definition at line 65 of file plagiarismlib.php.

| plagiarism_get_form_elements_module | ( | $ | mform, |
| $ | context | ||
| ) |
adds the list of plagiarism settings to a form - called inside modules that have enabled plagiarism
| object | $mform | - Moodle form object |
| object | $context | - context object |
Definition at line 106 of file plagiarismlib.php.


| if (!defined('MOODLE_INTERNAL')) plagiarism_get_links | ( | $ | linkarray | ) |
displays the similarity score and provides a link to the full report if allowed.
| object | $linkarray | contains all relevant information for the plugin to generate a link |
Definition at line 40 of file plagiarismlib.php.


helper function - also loads lib file of plagiarism plugin
Definition at line 183 of file plagiarismlib.php.


| plagiarism_print_disclosure | ( | $ | cmid | ) |
Function that prints the student disclosure notifying that the files will be checked for plagiarism
| integer | $cmid | - the cmid of this module |
Definition at line 147 of file plagiarismlib.php.


| plagiarism_save_form_elements | ( | $ | data | ) |
saves/updates plagiarism settings from a modules config page - called by course/modedit.php
| object | $data | - form data |
Definition at line 86 of file plagiarismlib.php.

| plagiarism_update_status | ( | $ | course, |
| $ | cm | ||
| ) |
updates the status of all files within a module
| object | $course | - full Course object |
| object | $cm | - full cm object |
Definition at line 126 of file plagiarismlib.php.

