Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/plagiarismlib.php File Reference

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 ()

Function Documentation

used by admin/cron.php to get similarity scores from submitted files.

Definition at line 166 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

plagiarism_get_file_results ( cmid,
userid,
file 
)

returns array of plagiarism details about specified file

Parameters:
int$cmid
int$userid
object$filemoodle file object
Returns:
array - sets of details about specified file, one array of details per plagiarism plugin
  • each set contains at least 'analyzed', 'score', 'reporturl'

Definition at line 65 of file plagiarismlib.php.

Here is the call graph for this function:

plagiarism_get_form_elements_module ( mform,
context 
)

adds the list of plagiarism settings to a form - called inside modules that have enabled plagiarism

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

Definition at line 106 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

if (!defined('MOODLE_INTERNAL')) plagiarism_get_links ( linkarray)

displays the similarity score and provides a link to the full report if allowed.

Parameters:
object$linkarraycontains all relevant information for the plugin to generate a link
Returns:
string - url to allow login/viewing of a similarity report

Definition at line 40 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

helper function - also loads lib file of plagiarism plugin

Returns:
array of available plugins

Definition at line 183 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Function that prints the student disclosure notifying that the files will be checked for plagiarism

Parameters:
integer$cmid- the cmid of this module
Returns:
string

Definition at line 147 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

saves/updates plagiarism settings from a modules config page - called by course/modedit.php

Parameters:
object$data- form data

Definition at line 86 of file plagiarismlib.php.

Here is the call graph for this function:

plagiarism_update_status ( course,
cm 
)

updates the status of all files within a module

Parameters:
object$course- full Course object
object$cm- full cm object
Returns:
string

Definition at line 126 of file plagiarismlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations