Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
Privacy class for requesting user data.
Copyright: | 2018 Adrian Greeve <adrian@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 180 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
get_metadata(collection $collection) X-Ref |
Return meta data about this plugin. return: collection Return the collection after adding to it. param: collection $collection A list of information to add to. |
get_context_for_userid_within_feedback(int $userid, contextlist $contextlist) X-Ref |
No need to fill in this method as all information can be acquired from the assign_grades table in the mod assign provider. param: int $userid The user ID. param: contextlist $contextlist The context list. |
get_student_user_ids(useridlist $useridlist) X-Ref |
This also does not need to be filled in as this is already collected in the mod assign provider. param: useridlist $useridlist A list of user IDs |
get_userids_from_context(\core_privacy\local\request\userlist $userlist) X-Ref |
If you have tables that contain userids and you can generate entries in your tables without creating an entry in the assign_grades table then please fill in this method. param: \core_privacy\local\request\userlist $userlist The userlist object |
export_feedback_user_data(assign_plugin_request_data $exportdata) X-Ref |
Export all user data for this plugin. param: assign_plugin_request_data $exportdata Data used to determine which context and user to export and other useful |
delete_feedback_for_context(assign_plugin_request_data $requestdata) X-Ref |
Any call to this method should delete all user data for the context defined in the deletion_criteria. param: assign_plugin_request_data $requestdata Data useful for deleting user data from this sub-plugin. |
delete_feedback_for_grade(assign_plugin_request_data $requestdata) X-Ref |
Calling this function should delete all user data associated with this grade. param: assign_plugin_request_data $requestdata Data useful for deleting user data. |
delete_feedback_for_grades(assign_plugin_request_data $deletedata) X-Ref |
Deletes all feedback for the grade ids / userids provided in a context. assign_plugin_request_data contains: - context - assign object - grade ids (pluginids) - user ids param: assign_plugin_request_data $deletedata A class that contains the relevant information required for deletion. |