Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
gradingform_guide\privacy\provider Class Reference

Privacy class for requesting user data. More...

Inheritance diagram for gradingform_guide\privacy\provider:
core_privacy\local\metadata\provider core_grading\privacy\gradingform_provider_v2 core_privacy\local\request\user_preference_provider core_privacy\local\request\plugin\subsystem_provider core_privacy\local\request\shared_userlist_provider core_privacy\local\request\core_data_provider core_privacy\local\request\shared_data_provider core_privacy\local\request\userlist_provider core_privacy\local\request\data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static delete_gradingform_for_instances (array $instanceids)
 Deletes all user data related to the provided instance IDs.
 
static export_gradingform_instance_data (\context $context, int $instanceid, array $subcontext)
 Export user data relating to an instance ID.
 
static export_user_preferences (int $userid)
 Store all user preferences for the plugin.
 
static get_metadata (collection $collection)
 Return the fields which contain personal data.
 

Detailed Description

Privacy class for requesting user data.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ delete_gradingform_for_instances()

static gradingform_guide\privacy\provider::delete_gradingform_for_instances ( array $instanceids)
static

Deletes all user data related to the provided instance IDs.

Parameters
array$instanceidsThe instance IDs to delete information from.

Implements core_grading\privacy\gradingform_provider_v2.

◆ export_gradingform_instance_data()

static gradingform_guide\privacy\provider::export_gradingform_instance_data ( \context $context,
int $instanceid,
array $subcontext )
static

Export user data relating to an instance ID.

Parameters
context$contextContext to use with the export writer.
int$instanceidThe instance ID to export data for.
array$subcontextThe directory to export this data to.

Implements core_grading\privacy\gradingform_provider_v2.

◆ export_user_preferences()

static gradingform_guide\privacy\provider::export_user_preferences ( int $userid)
static

Store all user preferences for the plugin.

Parameters
int$useridThe userid of the user whose data is to be exported.

Implements core_privacy\local\request\user_preference_provider.

◆ get_metadata()

static gradingform_guide\privacy\provider::get_metadata ( collection $collection)
static

Return the fields which contain personal data.

Parameters
collection$collectionThe initialised collection to add items to.
Return values
collectionA listing of user data stored through this system.

Implements core_privacy\local\metadata\provider.


The documentation for this class was generated from the following file: