MIDDAG for Moodle

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.

Table of Contents

Interfaces

provider
provider

Methods

delete_data_for_all_users_in_context()  : void
Delete all use data which matches the specified context.
delete_data_for_user()  : void
Delete all user data for the specified user, in the specified contexts.
export_user_data()  : void
Export all user data for the specified user, in the specified contexts.
get_contexts_for_userid()  : contextlist
Get the list of contexts that contain user information for the specified user.
get_metadata()  : collection
Returns metadata about the user data we store.
get_repository()  : privacy_repository_interface
Resolves the Privacy Repository from our internal DI container.

Methods

delete_data_for_all_users_in_context()

Delete all use data which matches the specified context.

public static delete_data_for_all_users_in_context(context $context) : void
Parameters
$context : context

a user context

delete_data_for_user()

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

public static delete_data_for_user(approved_contextlist $contextlist) : void
Parameters
$contextlist : approved_contextlist

the approved context list

export_user_data()

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

public static export_user_data(approved_contextlist $contextlist) : void
Parameters
$contextlist : approved_contextlist

the approved context list

get_contexts_for_userid()

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

public static get_contexts_for_userid(int $userid) : contextlist
Parameters
$userid : int

the user to search

Return values
contextlist

$contextlist the contextlist containing the list of contexts

get_metadata()

Returns metadata about the user data we store.

public static get_metadata(collection $collection) : collection
Parameters
$collection : collection

the initialised collection to add items to

Return values
collection

a listing of user data stored through this system


        
On this page

Search results