Privacy class for requesting user data.
More...
Privacy class for requesting user data.
- Copyright
- 2018 Adrian Greeve adria.nosp@m.n@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_submission_for_context()
Any call to this method should delete all user data for the context defined in the deletion_criteria.
- Parameters
-
assign_plugin_request_data | $requestdata | Data useful for deleting user data from this sub-plugin. |
Implements mod_assign\privacy\assignsubmission_provider.
◆ delete_submission_for_userid()
A call to this method should delete user data (where practicle) from the userid and context.
- Parameters
-
assign_plugin_request_data | $deletedata | Details about the user and context to focus the deletion. |
Implements mod_assign\privacy\assignsubmission_provider.
◆ delete_submissions()
Deletes all submissions for the submission ids / userids provided in a context.
assign_plugin_request_data contains:
- context
- assign object
- submission ids (pluginids)
- user ids
- Parameters
-
assign_plugin_request_data | $deletedata | A class that contains the relevant information required for deletion. |
Implements mod_assign\privacy\assignsubmission_user_provider.
◆ export_submission_user_data()
Export all user data for this plugin.
- Parameters
-
assign_plugin_request_data | $exportdata | Data used to determine which context and user to export and other useful information to help with exporting. |
Implements mod_assign\privacy\assignsubmission_provider.
◆ get_context_for_userid_within_submission()
static assignsubmission_onlinetext\privacy\provider::get_context_for_userid_within_submission |
( |
int |
$userid, |
|
|
contextlist |
$contextlist |
|
) |
| |
|
static |
This is covered by mod_assign provider and the query on assign_submissions.
- Parameters
-
int | $userid | The user ID that we are finding contexts for. |
contextlist | $contextlist | A context list to add sql and params to for contexts. |
Implements mod_assign\privacy\assignsubmission_provider.
◆ get_metadata()
static assignsubmission_onlinetext\privacy\provider::get_metadata |
( |
collection |
$collection | ) |
|
|
static |
Return meta data about this plugin.
- Parameters
-
collection | $collection | A list of information to add to. |
- Return values
-
collection | Return the collection after adding to it. |
Implements core_privacy\local\metadata\provider.
◆ get_student_user_ids() [1/2]
This is also covered by the mod_assign provider and it's queries.
- Parameters
-
mod_assign\privacy\useridlist | $useridlist | An object for obtaining user IDs of students. |
◆ get_student_user_ids() [2/2]
static mod_assign\privacy\assignsubmission_provider::get_student_user_ids |
( |
useridlist |
$useridlist | ) |
|
|
staticinherited |
Returns student user ids related to the provided teacher ID.
If it is possible that a student ID will not be returned by the sql query in mod_assign\privacy\provider::find_grader_info() Then you need to provide some sql to retrive those student IDs. This is highly likely if you had to fill in get_context_for_userid_within_submission above.
- Parameters
-
useridlist | $useridlist | A user ID list object that you can append your user IDs to. |
◆ get_userids_from_context() [1/2]
If you have tables that contain userids and you can generate entries in your tables without creating an entry in the assign_submission table then please fill in this method.
- Parameters
-
core_privacy\local\request\userlist | $userlist | The userlist object |
◆ get_userids_from_context() [2/2]
static mod_assign\privacy\assignsubmission_user_provider::get_userids_from_context |
( |
userlist |
$userlist | ) |
|
|
staticinherited |
If you have tables that contain userids and you can generate entries in your tables without creating an entry in the assign_submission table then please fill in this method.
- Parameters
-
userlist | $userlist | The userlist object |
The documentation for this class was generated from the following file:
- mod/assign/submission/onlinetext/classes/privacy/provider.php