Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | Static Protected Member Functions | List of all members
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. More...
 
static delete_data_for_user (approved_contextlist $contextlist)
 Delete all user data for this user only. More...
 
static delete_data_for_users (approved_userlist $userlist)
 Delete multiple users within a single context. More...
 
static export_user_data (approved_contextlist $contextlist)
 Export all event monitor information for the list of contexts and this user. More...
 
static get_contexts_for_userid (int $userid)
 Return all contexts for this userid. More...
 
static get_metadata (collection $collection)
 Get information about the user data stored by this plugin. More...
 
static get_users_in_context (userlist $userlist)
 Get the list of users who have data within a context. More...
 

Static Protected Member Functions

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

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: