class provider implements provider, provider

Privacy Provider for local_middag.

This acts strictly as an explicit boundary/Adapter between Moodle's Privacy API and our internal architecture. Moodle requires this class to be present and define static methods. We inject logic statically to our Internal Repository.

Methods

static collection
get_metadata(collection $collection)

Returns metadata about the user data we store.

static contextlist
get_contexts_for_userid(int $userid)

Get the list of contexts that contain user information for the specified user.

static void
export_user_data(approved_contextlist $contextlist)

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

static void
delete_data_for_all_users_in_context(context $context)

Delete all use data which matches the specified context.

static void
delete_data_for_user(approved_contextlist $contextlist)

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

Details

at line 44
static collection get_metadata(collection $collection)

Returns metadata about the user data we store.

Parameters

collection $collection

the initialised collection to add items to

Return Value

collection

a listing of user data stored through this system

at line 77
static contextlist get_contexts_for_userid(int $userid)

Get the list of contexts that contain user information for the specified user.

Parameters

int $userid

the user to search

Return Value

contextlist

$contextlist the contextlist containing the list of contexts

at line 91
static void export_user_data(approved_contextlist $contextlist)

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

Parameters

approved_contextlist $contextlist

the approved context list

Return Value

void

at line 101
static void delete_data_for_all_users_in_context(context $context)

Delete all use data which matches the specified context.

Parameters

context $context

a user context

Return Value

void

at line 111
static void delete_data_for_user(approved_contextlist $contextlist)

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

Parameters

approved_contextlist $contextlist

the approved context list

Return Value

void