Implementation of the privacy subsystem plugin provider for the database activity module.
More...
|
static | delete_data_records ($context, $recordstobedeleted) |
| Deletes records marked for deletion and all associated data.
|
|
static | export_data ($context, $user) |
| Export basic info about database activity module.
|
|
static | export_data_content ($context, $recordobj, $fieldobj, $contentobj) |
| Export one field answer in a record in database activity module.
|
|
static | export_data_record ($context, $user, $recordobj) |
| Export one entry in the database activity module (one record in {data_records} table)
|
|
static | extract_object_from_record ($record, $prefix, $additionalfields=[]) |
| Creates an object from all fields in the $record where key starts with $prefix.
|
|
static | mark_data_content_for_deletion ($context, $row) |
| Marks a data_record/data_content for deletion.
|
|
static | sql_fields () |
| SQL query that returns all fields from {data_content}, {data_fields} and {data_records} tables.
|
|
Implementation of the privacy subsystem plugin provider for the database activity module.
- Copyright
- 2018 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_data_for_all_users_in_context()
static mod_data\privacy\provider::delete_data_for_all_users_in_context |
( |
\context | $context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static mod_data\privacy\provider::delete_data_for_users |
( |
approved_userlist | $userlist | ) |
|
|
static |
◆ delete_data_records()
static mod_data\privacy\provider::delete_data_records |
( |
| $context, |
|
|
| $recordstobedeleted ) |
|
staticprotected |
Deletes records marked for deletion and all associated data.
Should be executed after all records were marked by mark_data_content_for_deletion()
Deletes records from data_content and data_records tables, associated files, tags, comments and ratings.
- Parameters
-
context | $context | |
array | $recordstobedeleted | list of ids of the data records that need to be deleted |
◆ export_data()
static mod_data\privacy\provider::export_data |
( |
| $context, |
|
|
| $user ) |
|
staticprotected |
Export basic info about database activity module.
- Parameters
-
context | $context | |
stdClass | $user | |
◆ export_data_content()
static mod_data\privacy\provider::export_data_content |
( |
| $context, |
|
|
| $recordobj, |
|
|
| $fieldobj, |
|
|
| $contentobj ) |
|
staticprotected |
Export one field answer in a record in database activity module.
- Parameters
-
context | $context | |
stdClass | $recordobj | record from DB table {data_records} |
stdClass | $fieldobj | record from DB table {data_fields} |
stdClass | $contentobj | record from DB table {data_content} |
◆ export_data_record()
static mod_data\privacy\provider::export_data_record |
( |
| $context, |
|
|
| $user, |
|
|
| $recordobj ) |
|
staticprotected |
Export one entry in the database activity module (one record in {data_records} table)
- Parameters
-
context | $context | |
stdClass | $user | |
stdClass | $recordobj | |
◆ 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.
◆ extract_object_from_record()
static mod_data\privacy\provider::extract_object_from_record |
( |
| $record, |
|
|
| $prefix, |
|
|
| $additionalfields = [] ) |
|
staticprotected |
Creates an object from all fields in the $record where key starts with $prefix.
- Parameters
-
stdClass | $record | |
string | $prefix | |
array | $additionalfields | |
- Return values
-
◆ get_contexts_for_userid()
static mod_data\privacy\provider::get_contexts_for_userid |
( |
int | $userid | ) |
|
|
static |
◆ get_metadata()
static mod_data\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Return the fields which contain personal data.
- Parameters
-
collection | $collection | a reference to the collection to use to store the metadata. |
- Return values
-
collection | the updated collection of metadata items. |
Implements core_privacy\local\metadata\provider.
◆ get_users_in_context()
static mod_data\privacy\provider::get_users_in_context |
( |
userlist | $userlist | ) |
|
|
static |
◆ mark_data_content_for_deletion()
static mod_data\privacy\provider::mark_data_content_for_deletion |
( |
| $context, |
|
|
| $row ) |
|
staticprotected |
Marks a data_record/data_content for deletion.
Also invokes callback from datafield plugin in case it stores additional data that needs to be deleted
- Parameters
-
context | $context | |
stdClass | $row | result of SQL query - tables data_content, data_record, data_fields join together |
◆ sql_fields()
static mod_data\privacy\provider::sql_fields |
( |
| ) |
|
|
staticprotected |
SQL query that returns all fields from {data_content}, {data_fields} and {data_records} tables.
- Return values
-
The documentation for this class was generated from the following file: