privacy_repository_interface
interface 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.
Methods
void
add_contexts_for_userid(int $userid, contextlist $contextlist)
Appends all contexts where the user has data to the given contextlist.
void
export_user_data(approved_contextlist $contextlist)
Exports the user data under the contexts specified.
void
delete_data_for_all_users_in_context(context $context)
Deletes all data for all users in a specific context.
void
delete_data_for_user(approved_contextlist $contextlist)
Deletes data for a specific user across one or more contexts.
Details
at line 40
void
add_contexts_for_userid(int $userid, contextlist $contextlist)
Appends all contexts where the user has data to the given contextlist.
at line 48
void
export_user_data(approved_contextlist $contextlist)
Exports the user data under the contexts specified.
Must write to core_privacy\local\request\writer.
at line 55
void
delete_data_for_all_users_in_context(context $context)
Deletes all data for all users in a specific context.
at line 62
void
delete_data_for_user(approved_contextlist $contextlist)
Deletes data for a specific user across one or more contexts.