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

Privacy provider for tool_monitor. More...

Inheritance diagram for tool_monitor\privacy\provider:
core_privacy\local\metadata\provider core_privacy\local\request\core_userlist_provider core_privacy\local\request\plugin\provider core_privacy\local\request\userlist_provider core_privacy\local\request\core_user_data_provider core_privacy\local\request\core_data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static delete_data_for_all_users_in_context (\context $context)
 Delete all user data for this context.
 
static delete_data_for_user (approved_contextlist $contextlist)
 Delete all user data for this user only.
 
static delete_data_for_users (approved_userlist $userlist)
 Delete multiple users within a single context.
 
static export_user_data (approved_contextlist $contextlist)
 Export all event monitor information for the list of contexts and this user.
 
static get_contexts_for_userid (int $userid)
 Return all contexts for this userid.
 
static get_metadata (collection $collection)
 Get information about the user data stored by this plugin.
 
static get_users_in_context (userlist $userlist)
 Get the list of users who have data within a context.
 

Static Protected Member Functions

static delete_user_data (int $userid)
 This does the deletion of user data for the event monitor.
 
static export_monitor_rules (array $rules, context_user $context)
 This formats and then exports the monitor rules.
 
static export_monitor_subscriptions (array $subscriptions, context_user $context)
 This formats and then exports the event monitor subscriptions.
 

Detailed Description

Privacy provider for tool_monitor.

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

Member Function Documentation

◆ delete_data_for_all_users_in_context()

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

Delete all user data for this context.

Parameters
context$contextThe context to delete data for.

Implements core_privacy\local\request\core_user_data_provider.

◆ delete_data_for_user()

static tool_monitor\privacy\provider::delete_data_for_user ( approved_contextlist $contextlist)
static

Delete all user data for this user only.

Parameters
approved_contextlist$contextlistThe list of approved contexts for a user.

Implements core_privacy\local\request\core_user_data_provider.

◆ delete_data_for_users()

static tool_monitor\privacy\provider::delete_data_for_users ( approved_userlist $userlist)
static

Delete multiple users within a single context.

Parameters
approved_userlist$userlistThe approved context and user information to delete information for.

Implements core_privacy\local\request\core_userlist_provider.

◆ delete_user_data()

static tool_monitor\privacy\provider::delete_user_data ( int $userid)
staticprotected

This does the deletion of user data for the event monitor.

Parameters
int$useridThe user ID

◆ export_monitor_rules()

static tool_monitor\privacy\provider::export_monitor_rules ( array $rules,
context_user $context )
staticprotected

This formats and then exports the monitor rules.

Parameters
array$rulesThe monitor rules.
context_user$contextThe user context

◆ export_monitor_subscriptions()

static tool_monitor\privacy\provider::export_monitor_subscriptions ( array $subscriptions,
context_user $context )
staticprotected

This formats and then exports the event monitor subscriptions.

Parameters
array$subscriptionsSubscriptions
context_user$contextThe user context

◆ export_user_data()

static tool_monitor\privacy\provider::export_user_data ( approved_contextlist $contextlist)
static

Export all event monitor information for the list of contexts and this user.

Parameters
approved_contextlist$contextlistThe list of approved contexts for a user.

Implements core_privacy\local\request\core_user_data_provider.

◆ get_contexts_for_userid()

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

Return all contexts for this userid.

In this situation the user context.

Parameters
int$useridThe user ID.
Return values
contextlistThe list of context IDs.

Implements core_privacy\local\request\core_user_data_provider.

◆ get_metadata()

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

Get information about the user data stored by this plugin.

Parameters
collection$collectionAn object for storing metadata.
Return values
collectionThe metadata.

Implements core_privacy\local\metadata\provider.

◆ get_users_in_context()

static tool_monitor\privacy\provider::get_users_in_context ( userlist $userlist)
static

Get the list of users who have data within a context.

Parameters
userlist$userlistThe userlist containing the list of users who have data in this context/plugin combination.

Implements core_privacy\local\request\core_userlist_provider.


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