Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Privacy provider.

Author: Mikhail Golenkov <golenkovm@gmail.com>
Copyright: Catalyst IT
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 217 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: provider  - X-Ref

Privacy provider

get_metadata(collection $collection)   X-Ref
Returns metadata about this plugin's privacy policy.

param: collection $collection The initialised collection to add items to.
return: collection     A listing of user data stored through this system.

get_contexts_for_userid(int $userid)   X-Ref
Get the list of contexts that contain user information for the given user.

param: int $userid the userid to search.
return: contextlist the contexts in which data is contained.

get_users_in_context(userlist $userlist)   X-Ref
Gets the list of users who have data with a context. Secrets context is a subset of this table.

param: userlist $userlist the userlist containing users who have data in this context.
return: void

export_user_data(approved_contextlist $contextlist)   X-Ref
Exports all data stored in provided contexts for user. Secrets should not be exported as they are transient.

param: approved_contextlist $contextlist the list of contexts to export for.
return: void

delete_data_for_all_users_in_context(\context $context)   X-Ref
Deletes data for all users in context.

param: context $context The context to delete for.
return: void

delete_data_for_user(approved_contextlist $contextlist)   X-Ref
Deletes all data in all provided contexts for user.

param: approved_contextlist $contextlist the list of contexts to delete for.
return: void

delete_data_for_users(approved_userlist $userlist)   X-Ref
Given a userlist, deletes all data in all provided contexts for the users

param: approved_userlist $userlist the list of users to delete data for
return: void