[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/plagiarism/ -> lib.php (summary)

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: 113 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  get_configs()
  get_links()
  get_file_results()
  get_form_elements_module()
  save_form_elements()
  print_disclosure()
  update_status()
  plagiarism_cron()

Functions
Functions that are not part of a class:

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:

get_form_elements_module($mform, $context, $modulename = "")   X-Ref
hook to add plagiarism specific settings to a module settings page

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

save_form_elements($data)   X-Ref
No description

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

plagiarism_cron()   X-Ref
Deprecated cron method.

This method was added by mistake in the previous versions of Moodle, do not override it since it is never called.
To implement cron you need to register a scheduled task, see https://docs.moodle.org/dev/Task_API.
For backward compatibility with the old cron API the method cron() from this class can also be used.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1