Implementation of the privacy subsystem plugin provider for the policy tool.
More...
Implementation of the privacy subsystem plugin provider for the policy tool.
- Copyright
- 2018 Sara Arjona sara@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_data_for_all_users_in_context()
static tool_policy\privacy\provider::delete_data_for_all_users_in_context |
( |
\context | $context | ) |
|
|
static |
Delete all data for all users in the specified context.
We never delete user agreements to the policies because they are part of privacy data. We never delete policy versions because they are part of privacy data.
- Parameters
-
context | $context | The context to delete in. |
Implements core_privacy\local\request\core_user_data_provider.
◆ delete_data_for_user()
Delete all user data for the specified user, in the specified contexts.
We never delete user agreements to the policies because they are part of privacy data. We never delete policy versions because they are part of privacy data.
- Parameters
-
approved_contextlist | $contextlist | A list of contexts approved for deletion. |
Implements core_privacy\local\request\core_user_data_provider.
◆ delete_data_for_users()
static tool_policy\privacy\provider::delete_data_for_users |
( |
approved_userlist | $userlist | ) |
|
|
static |
Delete multiple users within a single context.
We never delete user agreements to the policies because they are part of privacy data. We never delete policy versions because they are part of privacy data.
- Parameters
-
approved_userlist | $userlist | The approved context and user information to delete information for. |
Implements core_privacy\local\request\core_userlist_provider.
◆ export_authored_policies()
static tool_policy\privacy\provider::export_authored_policies |
( |
\stdClass | $user | ) |
|
|
staticprotected |
Export all policy agreements that the user authored.
- Parameters
-
stdClass | $user | The user who has created the policies to export. |
◆ export_policy_agreements_for_context()
static tool_policy\privacy\provider::export_policy_agreements_for_context |
( |
\context_user | $context | ) |
|
|
staticprotected |
Export all policy agreements relating to the specified user context.
- Parameters
-
context_user | $context | The context to export |
◆ export_user_data()
Export personal data for the given approved_contextlist.
User and context information is contained within the contextlist.
- Parameters
-
approved_contextlist | $contextlist | A list of contexts approved for export. |
Implements core_privacy\local\request\core_user_data_provider.
◆ get_contexts_for_userid()
static tool_policy\privacy\provider::get_contexts_for_userid |
( |
int | $userid | ) |
|
|
static |
◆ get_metadata()
static tool_policy\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Return the fields which contain personal data.
- Parameters
-
collection | $collection | The initialised collection to add items to. |
- Return values
-
collection | A listing of user data stored through this system. |
Implements core_privacy\local\metadata\provider.
◆ get_users_in_context()
static tool_policy\privacy\provider::get_users_in_context |
( |
userlist | $userlist | ) |
|
|
static |
The documentation for this class was generated from the following file: