Data provider class.
More...
Data provider class.
- Copyright
- 2018 Frédéric Massart
- Author
- Frédéric Massart fred@.nosp@m.bran.nosp@m.chup..nosp@m.tech
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ add_contexts_for_userid()
static logstore_legacy\privacy\provider::add_contexts_for_userid |
( |
contextlist |
$contextlist, |
|
|
|
$userid |
|
) |
| |
|
static |
Add contexts that contain user information for the specified user.
- Parameters
-
contextlist | $contextlist | The contextlist to add the contexts to. |
int | $userid | The user to find the contexts for. |
- Return values
-
Implements tool_log\local\privacy\logstore_provider.
◆ add_userids_for_context()
◆ delete_data_for_all_users_in_context()
static logstore_legacy\privacy\provider::delete_data_for_all_users_in_context |
( |
context |
$context | ) |
|
|
static |
◆ delete_data_for_user()
Delete all user data for the specified user, in the specified contexts.
- Parameters
-
approved_contextlist | $contextlist | The approved contexts and user information to delete information for. |
Implements tool_log\local\privacy\logstore_provider.
◆ delete_data_for_userlist()
◆ export_user_data()
Export all user data for the specified user, in the specified contexts.
- Parameters
-
approved_contextlist | $contextlist | The approved contexts to export information for. |
Implements tool_log\local\privacy\logstore_provider.
◆ get_metadata()
static logstore_legacy\privacy\provider::get_metadata |
( |
collection |
$collection | ) |
|
|
static |
Returns metadata.
- 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_sql_where_from_contexts()
static logstore_legacy\privacy\provider::get_sql_where_from_contexts |
( |
array |
$contexts | ) |
|
|
staticprotected |
Get an SQL where statement from a list of contexts.
- Parameters
-
array | $contexts | The contexts. |
- Return values
-
The documentation for this class was generated from the following file: