Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | Static Protected Member Functions | List of all members
logstore_legacy\privacy\provider Class Reference

Data provider class. More...

Inheritance diagram for logstore_legacy\privacy\provider:
core_privacy\local\metadata\provider tool_log\local\privacy\logstore_provider tool_log\local\privacy\logstore_userlist_provider core_privacy\local\request\plugin\subplugin_provider core_privacy\local\request\plugin\subplugin_provider core_privacy\local\request\shared_userlist_provider core_privacy\local\request\shared_data_provider core_privacy\local\request\shared_data_provider core_privacy\local\request\userlist_provider core_privacy\local\request\data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static add_contexts_for_userid (contextlist $contextlist, $userid)
 Add contexts that contain user information for the specified user. More...
 
static add_userids_for_context (\core_privacy\local\request\userlist $userlist)
 Add user IDs that contain user information for the specified context. More...
 
static delete_data_for_all_users_in_context (context $context)
 Delete all data for all users in the specified context. More...
 
static delete_data_for_user (approved_contextlist $contextlist)
 Delete all user data for the specified user, in the specified contexts. More...
 
static delete_data_for_userlist (\core_privacy\local\request\approved_userlist $userlist)
 Delete all data for a list of users in the specified context. More...
 
static export_user_data (approved_contextlist $contextlist)
 Export all user data for the specified user, in the specified contexts. More...
 
static get_metadata (collection $collection)
 Returns metadata. More...
 

Static Protected Member Functions

static get_sql_where_from_contexts (array $contexts)
 Get an SQL where statement from a list of contexts. More...
 

Detailed Description

Data provider class.

Author
Frédéric Massart fred@.nosp@m.bran.nosp@m.chup..nosp@m.tech
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ add_contexts_for_userid()

static logstore_legacy\privacy\provider::add_contexts_for_userid ( contextlist  $contextlist,
  $userid 
)
static

Add contexts that contain user information for the specified user.

Parameters
contextlist$contextlistThe contextlist to add the contexts to.
int$useridThe user to find the contexts for.
Return values
void

Implements tool_log\local\privacy\logstore_provider.

◆ add_userids_for_context()

static logstore_legacy\privacy\provider::add_userids_for_context ( \core_privacy\local\request\userlist  $userlist)
static

Add user IDs that contain user information for the specified context.

Parameters
core_privacy\local\request\userlist$userlistThe userlist to add the users to.
Return values
void

Implements tool_log\local\privacy\logstore_userlist_provider.

◆ delete_data_for_all_users_in_context()

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

Delete all data for all users in the specified context.

Parameters
context$contextThe specific context to delete data for.

Implements tool_log\local\privacy\logstore_provider.

◆ delete_data_for_user()

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

Delete all user data for the specified user, in the specified contexts.

Parameters
approved_contextlist$contextlistThe approved contexts and user information to delete information for.

Implements tool_log\local\privacy\logstore_provider.

◆ delete_data_for_userlist()

static logstore_legacy\privacy\provider::delete_data_for_userlist ( \core_privacy\local\request\approved_userlist  $userlist)
static

Delete all data for a list of users in the specified context.

Parameters
core_privacy\local\request\approved_userlist$userlistThe specific context and users to delete data for.
Return values
void

Implements tool_log\local\privacy\logstore_userlist_provider.

◆ export_user_data()

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

Export all user data for the specified user, in the specified contexts.

Parameters
approved_contextlist$contextlistThe approved contexts to export information for.

Implements tool_log\local\privacy\logstore_provider.

◆ get_metadata()

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

Returns metadata.

Parameters
collection$collectionThe initialised collection to add items to.
Return values
collectionA listing of user data stored through this system.

Implements core_privacy\local\metadata\provider.

◆ get_sql_where_from_contexts()

static logstore_legacy\privacy\provider::get_sql_where_from_contexts ( array  $contexts)
staticprotected

Get an SQL where statement from a list of contexts.

Parameters
array$contextsThe contexts.
Return values
array[$sql, $params]

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