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.

Parameters

int $userid

User ID

contextlist $contextlist

Moodle context list

Return Value

void

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.

Parameters

approved_contextlist $contextlist

Return Value

void

at line 55
void delete_data_for_all_users_in_context(context $context)

Deletes all data for all users in a specific context.

Parameters

context $context

The context representing the boundary

Return Value

void

at line 62
void delete_data_for_user(approved_contextlist $contextlist)

Deletes data for a specific user across one or more contexts.

Parameters

approved_contextlist $contextlist

List of contexts where data should be deleted

Return Value

void