Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core_plagiarism\privacy\plagiarism_provider Interface Reference

Provider for the plagiarism API. More...

Inheritance diagram for core_plagiarism\privacy\plagiarism_provider:
core_privacy\local\request\plugin\subsystem_provider core_privacy\local\request\shared_data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static delete_plagiarism_for_context (\context $context)
 Delete all user information for the provided context. More...
 
static delete_plagiarism_for_user (int $userid, context $context)
 Delete all user information for the provided user and context. More...
 
static export_plagiarism_user_data (int $userid, context $context, array $subcontext, array $linkarray)
 Export all plagiarism data from each plagiarism plugin for the specified userid and context. More...
 

Detailed Description

Provider for the plagiarism API.

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

Member Function Documentation

◆ delete_plagiarism_for_context()

static core_plagiarism\privacy\plagiarism_provider::delete_plagiarism_for_context ( \context  $context)
static

Delete all user information for the provided context.

Parameters
context$contextThe context to delete user data for.

◆ delete_plagiarism_for_user()

static core_plagiarism\privacy\plagiarism_provider::delete_plagiarism_for_user ( int  $userid,
context  $context 
)
static

Delete all user information for the provided user and context.

Parameters
int$useridThe user to delete
context$contextThe context to refine the deletion.

◆ export_plagiarism_user_data()

static core_plagiarism\privacy\plagiarism_provider::export_plagiarism_user_data ( int  $userid,
context  $context,
array  $subcontext,
array  $linkarray 
)
static

Export all plagiarism data from each plagiarism plugin for the specified userid and context.

Parameters
int$useridThe user to export.
context$contextThe context to export.
array$subcontextThe subcontext within the context to export this information to.
array$linkarrayThe weird and wonderful link array used to display information for a specific item

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