Moodle  2.2.1
http://www.collinsharper.com
plagiarism_plugin Class Reference

Public Member Functions

 get_links ($linkarray)
 get_file_results ($cmid, $userid, $file)
 get_form_elements_module ($mform, $context)
 save_form_elements ($data)
 print_disclosure ($cmid)
 update_status ($course, $cm)
 plagiarism_cron ()

Detailed Description

Definition at line 33 of file lib.php.


Member Function Documentation

get_file_results ( cmid,
userid,
file 
)

hook to allow plagiarism specific information to be returned unformatted

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

Definition at line 53 of file lib.php.

get_form_elements_module ( mform,
context 
)

hook to add plagiarism specific settings to a module settings page

Parameters:
object$mform- Moodle form
object$context- current context

Definition at line 61 of file lib.php.

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
Returns:
string

Definition at line 40 of file lib.php.

hook for cron

Definition at line 87 of file lib.php.

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
Returns:
string

Definition at line 73 of file lib.php.

save_form_elements ( data)

Definition at line 66 of file lib.php.

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

Definition at line 81 of file lib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations