Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
report_infectedfiles\privacy\provider Class Reference

Infected file report. More...

Inheritance diagram for report_infectedfiles\privacy\provider:
core_privacy\local\metadata\provider

Static Public Member Functions

static delete_data_for_all_users_in_context (\context $context)
 As this report tracks potential attempted security violations, This data should not be deleted at request.
 
static delete_data_for_user (request\approved_contextlist $contextlist)
 As this report tracks potential attempted security violations, This data should not be deleted at request.
 
static delete_data_for_users (request\approved_userlist $userlist)
 As this report tracks potential attempted security violations, This data should not be deleted at request.
 
static export_user_data (request\approved_contextlist $contextlist)
 This function exports user data on infected files from the contextlist provided.
 
static get_contexts_for_userid (int $userid)
 This function gets the contexts containing data for a userid.
 
static get_metadata (collection $collection)
 This plugin stores the userid of infected users.
 
static get_users_in_context (request\userlist $userlist)
 This gets the list of users inside of the provided context.
 

Detailed Description

Infected file report.

Author
Nathan Nguyen natha.nosp@m.nngu.nosp@m.yen@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ delete_data_for_all_users_in_context()

static report_infectedfiles\privacy\provider::delete_data_for_all_users_in_context ( \context $context)
static

As this report tracks potential attempted security violations, This data should not be deleted at request.

This would allow for an avenue for a malicious user to cover their tracks. This function deliberately does no deletes.

Parameters
context$contextthe context to delete for.
Return values
void

◆ delete_data_for_user()

static report_infectedfiles\privacy\provider::delete_data_for_user ( request\approved_contextlist $contextlist)
static

As this report tracks potential attempted security violations, This data should not be deleted at request.

This would allow for an avenue for a malicious user to cover their tracks. This function deliberately does no deletes.

Parameters
core_privacy\local\request\approved_contextlist$contextlistthe contextlist to delete for.
Return values
void

◆ delete_data_for_users()

static report_infectedfiles\privacy\provider::delete_data_for_users ( request\approved_userlist $userlist)
static

As this report tracks potential attempted security violations, This data should not be deleted at request.

This would allow for an avenue for a malicious user to cover their tracks. This function deliberately does no deletes.

Parameters
request\approved_userlist$userlist
Return values
void

◆ export_user_data()

static report_infectedfiles\privacy\provider::export_user_data ( request\approved_contextlist $contextlist)
static

This function exports user data on infected files from the contextlist provided.

Parameters
request\approved_contextlist$contextlist
Return values
void

◆ get_contexts_for_userid()

static report_infectedfiles\privacy\provider::get_contexts_for_userid ( int $userid)
static

This function gets the contexts containing data for a userid.

Parameters
int$useridThe userid to get contexts for.
Return values
request\contextlistthe context list for the user.

◆ get_metadata()

static report_infectedfiles\privacy\provider::get_metadata ( collection $collection)
static

This plugin stores the userid of infected users.

Parameters
collection$collectionthe collection object to add data to.
Return values
collectionThe populated collection.

Implements core_privacy\local\metadata\provider.

◆ get_users_in_context()

static report_infectedfiles\privacy\provider::get_users_in_context ( request\userlist $userlist)
static

This gets the list of users inside of the provided context.

In this case, its only system context which contains users.

Parameters
core_privacy\local\request\userlist$userlist
Return values
void

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