Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
/plagiarism/ -> lib.php (source)

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

lib.php - Contains Plagiarism base class used by plugins.

Copyright: 2010 Dan Marsden http://danmarsden.com
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 91 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

plagiarism_plugin:: (5 methods):
  get_configs()
  get_links()
  get_file_results()
  print_disclosure()
  update_status()


Class: plagiarism_plugin  - X-Ref

Plagiarism base class used by plugins.

get_configs()   X-Ref
Return the list of form element names.

return: array contains the form element names.

get_links($linkarray)   X-Ref
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

get_file_results($cmid, $userid, $file)   X-Ref
hook to allow plagiarism specific information to be returned unformatted

param: int $cmid
param: int $userid
param: $file file object
return: array containing at least:

print_disclosure($cmid)   X-Ref
hook to allow a disclosure to be printed notifying users what will happen with their submission

param: int $cmid - course module id
return: string

update_status($course, $cm)   X-Ref
hook to allow status of submitted files to be updated - called on grading/report pages.

param: object $course - full Course object
param: object $cm - full cm object