provider
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
Returns metadata about the user data we store.
Get the list of contexts that contain user information for the specified user.
Export all user data for the specified user, in the specified contexts.
Delete all use data which matches the specified context.
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.
at line 77
static contextlist
get_contexts_for_userid(int $userid)
Get the list of contexts that contain user information for the specified user.
at line 91
static void
export_user_data(approved_contextlist $contextlist)
Export all user data for the specified user, in the specified contexts.
at line 101
static void
delete_data_for_all_users_in_context(context $context)
Delete all use data which matches the specified context.
at line 111
static void
delete_data_for_user(approved_contextlist $contextlist)
Delete all user data for the specified user, in the specified contexts.