Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
plagiarism_plugin Class Reference

Plagiarism base class used by plugins. More...

Public Member Functions

 get_configs ()
 Return the list of form element names. More...
 
 get_file_results ($cmid, $userid, $file)
 hook to allow plagiarism specific information to be returned unformatted More...
 
 get_form_elements_module ($mform, $context, $modulename="")
 hook to add plagiarism specific settings to a module settings page More...
 
 get_links ($linkarray)
 hook to allow plagiarism specific information to be displayed beside a submission More...
 
 print_disclosure ($cmid)
 hook to allow a disclosure to be printed notifying users what will happen with their submission More...
 
 save_form_elements ($data)
 
 update_status ($course, $cm)
 hook to allow status of submitted files to be updated - called on grading/report pages. More...
 

Detailed Description

Plagiarism base class used by plugins.

Since
Moodle 2.0
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_configs()

plagiarism_plugin::get_configs ( )

Return the list of form element names.

Return values
arraycontains the form element names.

◆ get_file_results()

plagiarism_plugin::get_file_results (   $cmid,
  $userid,
  $file 
)

hook to allow plagiarism specific information to be returned unformatted

Parameters
int$cmid
int$userid
$filefile object
Return values
arraycontaining at least:
  • 'analyzed' - whether the file has been successfully analyzed
  • 'score' - similarity score - ('' if not known)
  • 'reporturl' - url of originality report - '' if unavailable

◆ get_form_elements_module()

plagiarism_plugin::get_form_elements_module (   $mform,
  $context,
  $modulename = "" 
)

hook to add plagiarism specific settings to a module settings page

Parameters
object$mform- Moodle form
object$context- current context
string$modulename- Name of the module

◆ get_links()

plagiarism_plugin::get_links (   $linkarray)

hook to allow plagiarism specific information to be displayed beside a submission

Parameters
array$linkarraycontainsall relevant information for the plugin to generate a link
Return values
string

◆ print_disclosure()

plagiarism_plugin::print_disclosure (   $cmid)

hook to allow a disclosure to be printed notifying users what will happen with their submission

Parameters
int$cmid- course module id
Return values
string

◆ update_status()

plagiarism_plugin::update_status (   $course,
  $cm 
)

hook to allow status of submitted files to be updated - called on grading/report pages.

Parameters
object$course- full Course object
object$cm- full cm object

The documentation for this class was generated from the following file: