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

Privacy class for requesting user data. More...

Inheritance diagram for core_grading\privacy\provider:
core_privacy\local\metadata\provider core_privacy\local\request\plugin\provider core_privacy\local\request\core_userlist_provider core_privacy\local\request\subsystem\provider core_privacy\local\request\core_user_data_provider core_privacy\local\request\userlist_provider core_privacy\local\request\core_user_data_provider core_privacy\local\request\core_data_provider core_privacy\local\request\core_data_provider core_privacy\local\request\data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static delete_data_for_all_users_in_context (\context $context)
 No deletion of the advanced grading is done.
 
static delete_data_for_instances (\context $context, array $itemids=[])
 Deletes all user data related to a context and possibly itemids.
 
static delete_data_for_user (approved_contextlist $contextlist)
 Deletion of data in this provider is only related to grades and so can not be deleted for the creator of the advanced grade criteria.
 
static delete_data_for_users (\core_privacy\local\request\approved_userlist $userlist)
 Delete multiple users within a single context.
 
static delete_data_for_users (approved_userlist $userlist)
 Delete multiple users within a single context.
 
static delete_instance_data (\context $context, int $itemid=null)
 Deletes all user data related to a context and possibly an itemid.
 
static export_item_data (\context $context, int $itemid, array $subcontext)
 Export all user data related to a context and itemid.
 
static export_user_data (approved_contextlist $contextlist)
 Export all user data for the specified user, in the specified contexts.
 
static get_contexts_for_userid (int $userid)
 Get the list of contexts that contain user information for the specified user.
 
static get_metadata (collection $collection)
 Returns meta data about this system.
 
static get_users_in_context (\core_privacy\local\request\userlist $userlist)
 Get the list of users who have data within a context.
 
static get_users_in_context (userlist $userlist)
 Get the list of users who have data within a context.
 

Static Protected Member Functions

static export_definitions (\context $context, array $subcontext, int $userid=0)
 Exports the data related to grading definitions within the specified context/subcontext.
 
static export_grading_instances (\context $context, array $subcontext, int $definitionid, int $userid=0)
 Exports the data related to grading instances within the specified definition.
 

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_data_for_all_users_in_context()

static core_grading\privacy\provider::delete_data_for_all_users_in_context ( \context $context)
static

No deletion of the advanced grading is done.

Parameters
context$contextthe context to delete in.

Implements core_privacy\local\request\core_user_data_provider.

◆ delete_data_for_instances()

static core_grading\privacy\provider::delete_data_for_instances ( \context $context,
array $itemids = [] )
static

Deletes all user data related to a context and possibly itemids.

Parameters
context$contextThe context to delete on.
array$itemidsAn optional list of item IDs to refine the deletion.

◆ delete_data_for_user()

static core_grading\privacy\provider::delete_data_for_user ( approved_contextlist $contextlist)
static

Deletion of data in this provider is only related to grades and so can not be deleted for the creator of the advanced grade criteria.

Parameters
approved_contextlist$contextlista list of contexts approved for deletion.

Implements core_privacy\local\request\core_user_data_provider.

◆ delete_data_for_users() [1/2]

static core_grading\privacy\provider::delete_data_for_users ( \core_privacy\local\request\approved_userlist $userlist)
static

Delete multiple users within a single context.

Parameters
approved_userlist$userlistThe approved context and user information to delete information for.

◆ delete_data_for_users() [2/2]

static core_privacy\local\request\core_userlist_provider::delete_data_for_users ( approved_userlist $userlist)
staticinherited

Delete multiple users within a single context.

Parameters
approved_userlist$userlistThe approved context and user information to delete information for.

Implemented in auth_lti\privacy\provider, auth_mnet\privacy\provider, auth_oauth2\privacy\provider, block_comments\privacy\provider, block_html\privacy\provider, block_recent_activity\privacy\provider, block_recentlyaccesseditems\privacy\provider, block_rss_client\privacy\provider, block_tag_flickr\privacy\provider, cachestore_redis\privacy\provider, cachestore_session\privacy\provider, core\privacy\provider, core_adminpresets\privacy\provider, core_analytics\privacy\provider, core_backup\privacy\provider, core_badges\privacy\provider, core_calendar\privacy\provider, core_cohort\privacy\provider, core_competency\privacy\provider, core_contentbank\privacy\provider, core_course\privacy\provider, core_enrol\privacy\provider, core_external\privacy\provider, core_fileconverter\privacy\provider, core_files\privacy\provider, core_group\privacy\provider, core_message\privacy\provider, core_notes\privacy\provider, core_payment\privacy\provider, core_portfolio\privacy\provider, core_question\privacy\provider, core_reportbuilder\privacy\provider, core_repository\privacy\provider, core_role\privacy\provider, core_rss\privacy\provider, core_tag\privacy\provider, core_user\privacy\provider, editor_atto\privacy\provider, enrol_cohort\privacy\provider, enrol_flatfile\privacy\provider, enrol_lti\privacy\provider, enrol_meta\privacy\provider, enrol_paypal\privacy\provider, fileconverter_googledrive\privacy\provider, ltiservice_basicoutcomes\privacy\provider, ltiservice_gradebookservices\privacy\provider, ltiservice_memberships\privacy\provider, message_airnotifier\privacy\provider, message_email\privacy\provider, mnetservice_enrol\privacy\provider, mod_assign\privacy\provider, mod_chat\privacy\provider, mod_choice\privacy\provider, mod_data\privacy\provider, mod_feedback\privacy\provider, mod_forum\privacy\provider, mod_glossary\privacy\provider, mod_h5pactivity\privacy\provider, mod_lesson\privacy\provider, mod_lti\privacy\provider, mod_quiz\privacy\provider, mod_scorm\privacy\provider, mod_survey\privacy\provider, mod_wiki\privacy\provider, mod_workshop\privacy\provider, profilefield_checkbox\privacy\provider, profilefield_datetime\privacy\provider, profilefield_menu\privacy\provider, profilefield_social\privacy\provider, profilefield_text\privacy\provider, profilefield_textarea\privacy\provider, qbank_comment\privacy\provider, quizaccess_seb\privacy\provider, report_stats\privacy\provider, repository_dropbox\privacy\provider, repository_flickr\privacy\provider, repository_flickr_public\privacy\provider, repository_googledocs\privacy\provider, repository_merlot\privacy\provider, repository_onedrive\privacy\provider, repository_wikimedia\privacy\provider, repository_youtube\privacy\provider, search_simpledb\privacy\provider, search_solr\privacy\provider, tiny_autosave\privacy\provider, tool_cohortroles\privacy\provider, tool_dataprivacy\privacy\provider, tool_messageinbound\privacy\provider, tool_mobile\privacy\provider, tool_monitor\privacy\provider, and tool_policy\privacy\provider.

◆ delete_instance_data()

static core_grading\privacy\provider::delete_instance_data ( \context $context,
int $itemid = null )
static

Deletes all user data related to a context and possibly an itemid.

Parameters
context$contextThe context to delete on.
int | null$itemidAn optional item ID to refine the deletion.

◆ export_definitions()

static core_grading\privacy\provider::export_definitions ( \context $context,
array $subcontext,
int $userid = 0 )
staticprotected

Exports the data related to grading definitions within the specified context/subcontext.

Parameters
context$contextContext owner of the data.
array$subcontextSubcontext owner of the data.
int$useridThe user whose information is to be exported.

◆ export_grading_instances()

static core_grading\privacy\provider::export_grading_instances ( \context $context,
array $subcontext,
int $definitionid,
int $userid = 0 )
staticprotected

Exports the data related to grading instances within the specified definition.

Parameters
context$contextContext owner of the data.
array$subcontextSubcontext owner of the data.
int$definitionidThe definition ID whose grading instance information is to be exported.
int$useridThe user whose information is to be exported.

◆ export_item_data()

static core_grading\privacy\provider::export_item_data ( \context $context,
int $itemid,
array $subcontext )
static

Export all user data related to a context and itemid.

Parameters
context$contextContext to export on.
int$itemidItem ID to export on.
array$subcontextDirectory location to export to.

◆ export_user_data()

static core_grading\privacy\provider::export_user_data ( approved_contextlist $contextlist)
static

Export all user data for the specified user, in the specified contexts.

Parameters
approved_contextlist$contextlistThe approved contexts to export information for.

Implements core_privacy\local\request\core_user_data_provider.

◆ get_contexts_for_userid()

static core_grading\privacy\provider::get_contexts_for_userid ( int $userid)
static

Get the list of contexts that contain user information for the specified user.

Parameters
int$useridThe user to search.
Return values
contextlist\$contextlistThe contextlist containing the list of contexts used in this plugin.

Implements core_privacy\local\request\core_user_data_provider.

◆ get_metadata()

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

Returns meta data about this system.

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.

◆ get_users_in_context() [1/2]

static core_grading\privacy\provider::get_users_in_context ( \core_privacy\local\request\userlist $userlist)
static

Get the list of users who have data within a context.

Parameters
userlist$userlistThe userlist containing the list of users who have data in this context/plugin combination.

◆ get_users_in_context() [2/2]

static core_privacy\local\request\core_userlist_provider::get_users_in_context ( userlist $userlist)
staticinherited

Get the list of users who have data within a context.

Parameters
userlist$userlistThe userlist containing the list of users who have data in this context/plugin combination.

Implemented in auth_lti\privacy\provider, auth_mnet\privacy\provider, auth_oauth2\privacy\provider, block_comments\privacy\provider, block_html\privacy\provider, block_recent_activity\privacy\provider, block_recentlyaccesseditems\privacy\provider, block_rss_client\privacy\provider, block_tag_flickr\privacy\provider, cachestore_redis\privacy\provider, cachestore_session\privacy\provider, core\privacy\provider, core_adminpresets\privacy\provider, core_analytics\privacy\provider, core_backup\privacy\provider, core_badges\privacy\provider, core_calendar\privacy\provider, core_cohort\privacy\provider, core_competency\privacy\provider, core_contentbank\privacy\provider, core_course\privacy\provider, core_enrol\privacy\provider, core_external\privacy\provider, core_fileconverter\privacy\provider, core_files\privacy\provider, core_group\privacy\provider, core_message\privacy\provider, core_notes\privacy\provider, core_payment\privacy\provider, core_portfolio\privacy\provider, core_question\privacy\provider, core_reportbuilder\privacy\provider, core_repository\privacy\provider, core_role\privacy\provider, core_rss\privacy\provider, core_tag\privacy\provider, core_user\privacy\provider, editor_atto\privacy\provider, enrol_cohort\privacy\provider, enrol_flatfile\privacy\provider, enrol_lti\privacy\provider, enrol_meta\privacy\provider, enrol_paypal\privacy\provider, fileconverter_googledrive\privacy\provider, ltiservice_basicoutcomes\privacy\provider, ltiservice_gradebookservices\privacy\provider, ltiservice_memberships\privacy\provider, message_airnotifier\privacy\provider, message_email\privacy\provider, mnetservice_enrol\privacy\provider, mod_assign\privacy\provider, mod_chat\privacy\provider, mod_choice\privacy\provider, mod_data\privacy\provider, mod_feedback\privacy\provider, mod_forum\privacy\provider, mod_glossary\privacy\provider, mod_h5pactivity\privacy\provider, mod_lesson\privacy\provider, mod_lti\privacy\provider, mod_quiz\privacy\provider, mod_scorm\privacy\provider, mod_survey\privacy\provider, mod_wiki\privacy\provider, mod_workshop\privacy\provider, profilefield_checkbox\privacy\provider, profilefield_datetime\privacy\provider, profilefield_menu\privacy\provider, profilefield_social\privacy\provider, profilefield_text\privacy\provider, profilefield_textarea\privacy\provider, qbank_comment\privacy\provider, quizaccess_seb\privacy\provider, report_stats\privacy\provider, repository_dropbox\privacy\provider, repository_flickr\privacy\provider, repository_flickr_public\privacy\provider, repository_googledocs\privacy\provider, repository_merlot\privacy\provider, repository_onedrive\privacy\provider, repository_wikimedia\privacy\provider, repository_youtube\privacy\provider, search_simpledb\privacy\provider, search_solr\privacy\provider, tiny_autosave\privacy\provider, tool_cohortroles\privacy\provider, tool_dataprivacy\privacy\provider, tool_messageinbound\privacy\provider, tool_mobile\privacy\provider, tool_monitor\privacy\provider, and tool_policy\privacy\provider.


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