Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Static Public Member Functions | |
static | delete_submission_for_context (assign_plugin_request_data $requestdata) |
Any call to this method should delete all user data for the context defined in the deletion_criteria. More... | |
static | delete_submission_for_userid (assign_plugin_request_data $exportdata) |
A call to this method should delete user data (where practicle) from the userid and context. More... | |
static | export_submission_user_data (assign_plugin_request_data $exportdata) |
This method is used to export any user data this sub-plugin has using the assign_plugin_request_data object to get the context and userid. More... | |
static | get_context_for_userid_within_submission (int $userid, contextlist $contextlist) |
Retrieves the contextids associated with the provided userid for this subplugin. More... | |
static | get_student_user_ids (useridlist $useridlist) |
Returns student user ids related to the provided teacher ID. More... | |
|
static |
Any call to this method should delete all user data for the context defined in the deletion_criteria.
assign_plugin_request_data contains:
assign_plugin_request_data | $requestdata | Information to use to delete user data for this submission. |
Implemented in assignsubmission_onlinetext\privacy\provider, assignsubmission_file\privacy\provider, and assignsubmission_comments\privacy\provider.
|
static |
A call to this method should delete user data (where practicle) from the userid and context.
assign_plugin_request_data contains:
assign_plugin_request_data | $exportdata | Details about the user and context to focus the deletion. |
Implemented in assignsubmission_comments\privacy\provider, assignsubmission_onlinetext\privacy\provider, and assignsubmission_file\privacy\provider.
|
static |
This method is used to export any user data this sub-plugin has using the assign_plugin_request_data object to get the context and userid.
assign_plugin_request_data contains:
assign_plugin_request_data | $exportdata | Information to use to export user data for this sub-plugin. |
Implemented in assignsubmission_onlinetext\privacy\provider, assignsubmission_file\privacy\provider, and assignsubmission_comments\privacy\provider.
|
static |
Retrieves the contextids associated with the provided userid for this subplugin.
NOTE if your subplugin must have an entry in the assign_submission table to work, then this method can be empty.
int | $userid | The user ID to get context IDs for. |
core_privacy\local\request\contextlist | $contextlist | Use add_from_sql with this object to add your context IDs. |
Implemented in assignsubmission_onlinetext\privacy\provider, assignsubmission_file\privacy\provider, and assignsubmission_comments\privacy\provider.
|
static |
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.
useridlist | $useridlist | A user ID list object that you can append your user IDs to. |