Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
auth_oauth2\privacy\provider Class Reference

Privacy provider for auth_oauth2. More...

Inheritance diagram for auth_oauth2\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 oauth2 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 within a specific context.
 

Static Protected Member Functions

static delete_user_data (int $userid)
 This does the deletion of user data for the auth_oauth2.
 

Detailed Description

Privacy provider for auth_oauth2.

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

Member Function Documentation

◆ delete_data_for_all_users_in_context()

static auth_oauth2\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 auth_oauth2\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 auth_oauth2\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 auth_oauth2\privacy\provider::delete_user_data ( int $userid)
staticprotected

This does the deletion of user data for the auth_oauth2.

Parameters
int$useridThe user ID

◆ export_user_data()

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

Export all oauth2 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 auth_oauth2\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 auth_oauth2\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 auth_oauth2\privacy\provider::get_users_in_context ( userlist $userlist)
static

Get the list of users within a specific 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: