privacy_repository_interface
Contract for the Privacy API Data Extractor (Repository).
Isolates the intense raw queries requested by Moodle's Privacy Subsystem from the Domain logic.
Table of Contents
Methods
- add_contexts_for_userid() : void
- Appends all contexts where the user has data to the given contextlist.
- delete_data_for_all_users_in_context() : void
- Deletes all data for all users in a specific context.
- delete_data_for_user() : void
- Deletes data for a specific user across one or more contexts.
- export_user_data() : void
- Exports the user data under the contexts specified.
Methods
add_contexts_for_userid()
Appends all contexts where the user has data to the given contextlist.
public
add_contexts_for_userid(int $userid, contextlist $contextlist) : void
Parameters
- $userid : int
-
User ID
- $contextlist : contextlist
-
Moodle context list
delete_data_for_all_users_in_context()
Deletes all data for all users in a specific context.
public
delete_data_for_all_users_in_context(context $context) : void
Parameters
- $context : context
-
The context representing the boundary
delete_data_for_user()
Deletes data for a specific user across one or more contexts.
public
delete_data_for_user(approved_contextlist $contextlist) : void
Parameters
- $contextlist : approved_contextlist
-
List of contexts where data should be deleted
export_user_data()
Exports the user data under the contexts specified.
public
export_user_data(approved_contextlist $contextlist) : void
Must write to core_privacy\local\request\writer.
Parameters
- $contextlist : approved_contextlist