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
◆ delete_data_for_all_users_in_context()
static mod_feedback\privacy\provider::delete_data_for_all_users_in_context |
( |
\context |
$context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static mod_feedback\privacy\provider::delete_data_for_users |
( |
approved_userlist |
$userlist | ) |
|
|
static |
◆ export_user_data()
◆ extract_item_record_from_record()
static mod_feedback\privacy\provider::extract_item_record_from_record |
( |
stdClass |
$record | ) |
|
|
staticprotected |
Extract an item record from a database record.
- Parameters
-
stdClass | $record | The record. |
- Return values
-
◆ extract_value_record_from_record()
static mod_feedback\privacy\provider::extract_value_record_from_record |
( |
stdClass |
$record | ) |
|
|
staticprotected |
Extract a value record from a database record.
- Parameters
-
stdClass | $record | The record. |
- Return values
-
◆ get_contexts_for_userid()
static mod_feedback\privacy\provider::get_contexts_for_userid |
( |
int |
$userid | ) |
|
|
static |
Get the list of contexts that contain user information for the specified user.
- Parameters
-
int | $userid | The user to search. |
- Return values
-
contextlist::$contextlist | The contextlist containing the list of contexts used in this plugin. |
Implements core_privacy\local\request\core_user_data_provider.
◆ get_metadata()
static mod_feedback\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_users_in_context()
static mod_feedback\privacy\provider::get_users_in_context |
( |
userlist |
$userlist | ) |
|
|
static |
◆ prepare_export_query()
static mod_feedback\privacy\provider::prepare_export_query |
( |
array |
$contextids, |
|
|
|
$userid |
|
) |
| |
|
staticprotected |
Prepare the query to export all data.
Doing it this way allows for merging all records from both the temporary and final tables as most of their columns are shared. It is a lot easier to deal with the records when exporting as we do not need to try to manually group the two types of submissions in the same reported dataset.
The ordering may affect performance on large datasets.
- Parameters
-
array | $contextids | The context IDs. |
int | $userid | The user ID. |
- Return values
-
array | With SQL and params. |
The documentation for this class was generated from the following file: