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_feedback_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\assignfeedback_provider.
◆ delete_feedback_for_grade()
Calling this function should delete all user data associated with this grade.
- Parameters
-
assign_plugin_request_data | $requestdata | Data useful for deleting user data. |
Implements mod_assign\privacy\assignfeedback_provider.
◆ delete_feedback_for_grades()
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
- Parameters
-
assign_plugin_request_data | $deletedata | A class that contains the relevant information required for deletion. |
Implements mod_assign\privacy\assignfeedback_user_provider.
◆ export_feedback_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\assignfeedback_provider.
◆ get_context_for_userid_within_feedback()
static assignfeedback_editpdf\privacy\provider::get_context_for_userid_within_feedback |
( |
int | $userid, |
|
|
contextlist | $contextlist ) |
|
static |
No need to fill in this method as all information can be acquired from the assign_grades table in the mod assign provider.
- Parameters
-
int | $userid | The user ID. |
contextlist | $contextlist | The context list. |
Implements mod_assign\privacy\assignfeedback_provider.
◆ get_metadata()
static assignfeedback_editpdf\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()
static assignfeedback_editpdf\privacy\provider::get_student_user_ids |
( |
useridlist | $useridlist | ) |
|
|
static |
◆ 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_grades table then please fill in this method.
- Parameters
-
◆ get_userids_from_context() [2/2]
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.
- Parameters
-
The documentation for this class was generated from the following file:
- mod/assign/feedback/editpdf/classes/privacy/provider.php