Privacy provider.
More...
◆ delete_data_for_all_users_in_context()
static tool_mfa\privacy\provider::delete_data_for_all_users_in_context |
( |
\context | $context | ) |
|
|
static |
Deletes data for all users in context.
- Parameters
-
context | $context | The context to delete for. |
- Return values
-
◆ delete_data_for_user()
Deletes all data in all provided contexts for user.
- Parameters
-
approved_contextlist | $contextlist | the list of contexts to delete for. |
- Return values
-
◆ delete_data_for_users()
static tool_mfa\privacy\provider::delete_data_for_users |
( |
approved_userlist | $userlist | ) |
|
|
static |
Given a userlist, deletes all data in all provided contexts for the users.
- Parameters
-
approved_userlist | $userlist | the list of users to delete data for |
- Return values
-
◆ export_user_data()
Exports all data stored in provided contexts for user.
Secrets should not be exported as they are transient.
- Parameters
-
approved_contextlist | $contextlist | the list of contexts to export for. |
- Return values
-
◆ get_contexts_for_userid()
static tool_mfa\privacy\provider::get_contexts_for_userid |
( |
int | $userid | ) |
|
|
static |
Get the list of contexts that contain user information for the given user.
- Parameters
-
int | $userid | the userid to search. |
- Return values
-
contextlist | the contexts in which data is contained. |
◆ get_metadata()
static tool_mfa\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Returns metadata about this plugin's privacy policy.
- Parameters
-
collection | $collection | The initialised collection to add items to. |
- Return values
-
collection | A listing of user data stored through this system. |
Implements core_privacy\local\metadata\provider.
◆ get_users_in_context()
static tool_mfa\privacy\provider::get_users_in_context |
( |
userlist | $userlist | ) |
|
|
static |
Gets the list of users who have data with a context.
Secrets context is a subset of this table.
- Parameters
-
userlist | $userlist | the userlist containing users who have data in this context. |
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/mfa/classes/privacy/provider.php