Privacy Subsystem implementation for mod_lti.
More...
Privacy Subsystem implementation for mod_lti.
- Copyright
- 2018 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_data_for_all_users_in_context()
static mod_lti\privacy\provider::delete_data_for_all_users_in_context |
( |
\context |
$context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static mod_lti\privacy\provider::delete_data_for_users |
( |
approved_userlist |
$userlist | ) |
|
|
static |
◆ 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.
◆ export_user_data_lti_submissions()
static mod_lti\privacy\provider::export_user_data_lti_submissions |
( |
approved_contextlist |
$contextlist | ) |
|
|
staticprotected |
Export personal data for the given approved_contextlist related to LTI submissions.
- Parameters
-
approved_contextlist | $contextlist | a list of contexts approved for export. |
◆ export_user_data_lti_tool_proxies()
static mod_lti\privacy\provider::export_user_data_lti_tool_proxies |
( |
approved_contextlist |
$contextlist | ) |
|
|
staticprotected |
Export personal data for the given approved_contextlist related to LTI tool proxies.
- Parameters
-
approved_contextlist | $contextlist | a list of contexts approved for export. |
◆ export_user_data_lti_types()
Export personal data for the given approved_contextlist related to LTI types.
- Parameters
-
approved_contextlist | $contextlist | a list of contexts approved for export. |
◆ get_contexts_for_userid()
static mod_lti\privacy\provider::get_contexts_for_userid |
( |
int |
$userid | ) |
|
|
static |
◆ get_lti_ids_to_cmids_from_cmids()
static mod_lti\privacy\provider::get_lti_ids_to_cmids_from_cmids |
( |
array |
$cmids | ) |
|
|
staticprotected |
Return a dict of LTI IDs mapped to their course module ID.
- Parameters
-
array | $cmids | The course module IDs. |
- Return values
-
array | In the form of [$ltiid => $cmid]. |
◆ get_metadata()
static mod_lti\privacy\provider::get_metadata |
( |
collection |
$items | ) |
|
|
static |
Return the fields which contain personal data.
- Parameters
-
collection | $items | 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_lti\privacy\provider::get_users_in_context |
( |
userlist |
$userlist | ) |
|
|
static |
◆ recordset_loop_and_export()
static mod_lti\privacy\provider::recordset_loop_and_export |
( |
\moodle_recordset |
$recordset, |
|
|
|
$splitkey, |
|
|
|
$initial, |
|
|
callable |
$reducer, |
|
|
callable |
$export |
|
) |
| |
|
staticprotected |
Loop and export from a recordset.
- Parameters
-
moodle_recordset | $recordset | The recordset. |
string | $splitkey | The record key to determine when to export. |
mixed | $initial | The initial data to reduce from. |
callable | $reducer | The function to return the dataset, receives current dataset, and the current record. |
callable | $export | The function to export the dataset, receives the last value from $splitkey and the dataset. |
- Return values
-
The documentation for this class was generated from the following file: