Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Data provider class. More...
Static Public Member Functions | |
static | delete_data_for_all_users_in_context (\context $context) |
Delete all data for all users in the specified context. More... | |
static | delete_data_for_all_users_in_context (context $context) |
Delete all data for all users in the specified context. More... | |
static | delete_data_for_user (approved_contextlist $contextlist) |
Delete all user data for the specified user, in the specified contexts. More... | |
static | delete_data_for_users (approved_userlist $userlist) |
Delete multiple users within a single context. More... | |
static | export_user_data (approved_contextlist $contextlist) |
Export all user data for the specified user, in the specified contexts. More... | |
static | get_contexts_for_userid (int $userid) |
Get the list of contexts that contain user information for the specified user. More... | |
static | get_metadata (collection $collection) |
Returns metadata. More... | |
static | get_users_in_context (userlist $userlist) |
Get the list of users who have data within a context. More... | |
Static Protected Member Functions | |
static | delete_user_competencies ($userid) |
Delete user competency data. More... | |
static | delete_user_competencies_in_course ($courseid, $userids=[]) |
Delete the record of competencies for user(s) in a course. More... | |
static | delete_user_evidence_of_prior_learning ($userid) |
Delete evidence of prior learning. More... | |
static | delete_user_plans ($userid) |
User plans. More... | |
static | export_user_data_competencies (context_user $context) |
Export a user's competencies. More... | |
static | export_user_data_competencies_related_to_me ($userid, context_user $context) |
Export a user's data related to competencies. More... | |
static | export_user_data_frameworks_in_context ($userid, context $context) |
Export the user data related to frameworks in context. More... | |
static | export_user_data_in_category_contexts ($userid, array $contexts) |
Export the user data in category contexts. More... | |
static | export_user_data_in_course_contexts ($userid, array $contexts) |
Export the user data in course contexts. More... | |
static | export_user_data_in_course_contexts_associations ($userid, $courseids, $path) |
Export user data in course contexts related to linked competencies. More... | |
static | export_user_data_in_course_contexts_rated_by_me ($userid, $courseids, $path, performance_helper $helper) |
Export the ratings given in a course. More... | |
static | export_user_data_in_course_contexts_settings ($userid, $courseids, $path) |
Export user data in course contexts related to course settings. More... | |
static | export_user_data_in_module_contexts ($userid, array $contexts) |
Export the user data in module contexts. More... | |
static | export_user_data_in_system_context ($userid) |
Export the user data in systen context. More... | |
static | export_user_data_in_user_contexts ($userid, array $contexts) |
Export the user data in user context. More... | |
static | export_user_data_learning_plans (context_user $context) |
Export a user's learning plans. More... | |
static | export_user_data_learning_plans_related_to_me ($userid, context_user $context) |
Export a user's data related to learning plans. More... | |
static | export_user_data_templates_in_context ($userid, context $context) |
Export the user data related to templates in contexts. More... | |
static | export_user_data_user_evidence (context_user $context) |
Export the evidence of prior learning of a user. More... | |
static | export_user_data_user_evidence_related_to_me ($userid, context_user $context) |
Export a user's data related to evidence of prior learning. More... | |
static | recordset_loop_and_export (moodle_recordset $recordset, $splitkey, $initial, callable $reducer, callable $export) |
Loop and export from a recordset. More... | |
static | transform_competency_brief (competency $competency) |
Transform a competency into a brief description. More... | |
static | transform_competency_grade (competency $competency, $grade, performance_helper $helper) |
Transform a competency rating. More... | |
static | transform_evidence ($userid, evidence $evidence, competency $competency, performance_helper $helper) |
Transform an evidence. More... | |
static | transform_framework_brief (competency_framework $framework) |
Transform a framework into a brief description. More... | |
static | transform_proficiency ($proficiency) |
Transform proficiency. More... | |
static | transform_template_brief (template $template) |
Transform a template into a brief description. More... | |
static | transform_user_competency ($userid, $uc, competency $competency, performance_helper $helper) |
Transform user competency. More... | |
static | transform_user_evidence ($userid, user_evidence $ue) |
Transform a user evidence. More... | |
Data provider class.
|
staticinherited |
Delete all data for all users in the specified context.
context | $context | The specific context to delete data for. |
Implemented in profilefield_textarea\privacy\provider, profilefield_text\privacy\provider, profilefield_menu\privacy\provider, profilefield_datetime\privacy\provider, profilefield_checkbox\privacy\provider, core_user\privacy\provider, core_tag\privacy\provider, search_solr\privacy\provider, search_simpledb\privacy\provider, core_rss\privacy\provider, repository_youtube\privacy\provider, repository_wikimedia\privacy\provider, repository_picasa\privacy\provider, repository_onedrive\privacy\provider, repository_merlot\privacy\provider, repository_googledocs\privacy\provider, repository_flickr_public\privacy\provider, repository_flickr\privacy\provider, repository_dropbox\privacy\provider, core_repository\privacy\provider, repository_boxnet\privacy\provider, report_stats\privacy\provider, core_question\privacy\provider, core_portfolio\privacy\provider, core_notes\privacy\provider, mod_workshop\privacy\provider, mod_scorm\privacy\provider, mod_quiz\privacy\provider, ltiservice_memberships\privacy\provider, ltiservice_gradebookservices\privacy\provider, ltiservice_basicoutcomes\privacy\provider, mod_lti\privacy\provider, mod_glossary\privacy\provider, mod_forum\privacy\provider, mod_feedback\privacy\provider, mod_data\privacy\provider, mod_choice\privacy\provider, mod_assignment\privacy\provider, mod_assign\privacy\provider, mnetservice_enrol\privacy\provider, message_jabber\privacy\provider, message_email\privacy\provider, message_airnotifier\privacy\provider, core_message\privacy\provider, editor_atto\privacy\provider, core\privacy\provider, core_group\privacy\provider, core_grading\privacy\provider, fileconverter_googledrive\privacy\provider, core_files\privacy\provider, enrol_paypal\privacy\provider, enrol_meta\privacy\provider, enrol_lti\privacy\provider, enrol_flatfile\privacy\provider, enrol_cohort\privacy\provider, core_enrol\privacy\provider, core_course\privacy\provider, core_cohort\privacy\provider, core_calendar\privacy\provider, cachestore_session\privacy\provider, cachestore_redis\privacy\provider, cachestore_mongodb\privacy\provider, cachestore_memcached\privacy\provider, block_tag_flickr\privacy\provider, block_rss_client\privacy\provider, block_recentlyaccesseditems\privacy\provider, block_recent_activity\privacy\provider, block_html\privacy\provider, block_comments\privacy\provider, core_backup\privacy\provider, auth_oauth2\privacy\provider, auth_mnet\privacy\provider, core_analytics\privacy\provider, tool_policy\privacy\provider, tool_monitor\privacy\provider, tool_mobile\privacy\provider, tool_cohortroles\privacy\provider, and core_role\privacy\provider.
|
static |
Delete all data for all users in the specified context.
context | $context | The specific context to delete data for. |
|
static |
Delete all user data for the specified user, in the specified contexts.
Here we only delete the private data of user, not whether they modified, are reviewing, or are associated with the record on at a second level. Only data directly linked to the user will be affected.
approved_contextlist | $contextlist | The approved contexts and user information to delete information for. |
Implements core_privacy\local\request\core_user_data_provider.
|
static |
Delete multiple users within a single context.
Here we only delete the private data of users, not whether they modified, are reviewing, or are associated with the record on at a second level. Only data directly linked to the user will be affected.
approved_userlist | $userlist | The approved context and user information to delete information for. |
Implements core_privacy\local\request\core_userlist_provider.
|
staticprotected |
Delete user competency data.
int | $userid | The user ID. |
void |
|
staticprotected |
Delete the record of competencies for user(s) in a course.
int | $courseid | The course ID. |
int[] | $userids | The user IDs, if deleting for specific user(s). |
void |
|
staticprotected |
Delete evidence of prior learning.
int | $userid | The user ID. |
void |
|
staticprotected |
User plans.
int | $userid | The user ID. |
void |
|
static |
Export all user data for the specified user, in the specified contexts.
approved_contextlist | $contextlist | The approved contexts to export information for. |
Implements core_privacy\local\request\core_user_data_provider.
|
staticprotected |
Export a user's competencies.
context_user | $context | The context of the user requesting the export. |
void |
|
staticprotected |
Export a user's data related to competencies.
int | $userid | The user ID we're exporting for. |
context_user | $context | The context of the user in which we're gathering data. |
void |
|
staticprotected |
Export the user data related to frameworks in context.
int | $userid | The user ID. |
context | $context | The context. |
void |
|
staticprotected |
Export the user data in category contexts.
int | $userid | The user ID. |
array | $contexts | The contexts. |
void |
|
staticprotected |
Export the user data in course contexts.
int | $userid | The user whose data we're exporting. |
array | $contexts | A list of contexts. |
void |
|
staticprotected |
Export user data in course contexts related to linked competencies.
int | $userid | The user ID. |
array | $courseids | The course IDs. |
array | $path | The root path to export at. |
void |
|
staticprotected |
Export the ratings given in a course.
int | $userid | The user ID. |
array | $courseids | The course IDs. |
array | $path | The root path. |
performance_helper | $helper | The performance helper. |
void |
|
staticprotected |
Export user data in course contexts related to course settings.
int | $userid | The user ID. |
array | $courseids | The course IDs. |
array | $path | The root path to export at. |
void |
|
staticprotected |
Export the user data in module contexts.
int | $userid | The user whose data we're exporting. |
array | $contexts | A list of contexts. |
void |
|
staticprotected |
Export the user data in systen context.
int | $userid | The user ID. |
void |
|
staticprotected |
Export the user data in user context.
int | $userid | The user ID. |
array | $contexts | The contexts. |
void |
|
staticprotected |
Export a user's learning plans.
context_user | $context | The context of the user requesting the export. |
void |
|
staticprotected |
Export a user's data related to learning plans.
int | $userid | The user ID we're exporting for. |
context_user | $context | The context of the user in which we're gathering data. |
void |
|
staticprotected |
Export the user data related to templates in contexts.
int | $userid | The user ID. |
context | $context | The context. |
void |
|
staticprotected |
Export the evidence of prior learning of a user.
context_user | $context | The context of the user we're exporting for. |
void |
|
staticprotected |
Export a user's data related to evidence of prior learning.
int | $userid | The user ID we're exporting for. |
context_user | $context | The context of the user in which we're gathering data. |
void |
|
static |
Get the list of contexts that contain user information for the specified user.
int | $userid | The user to search. |
contextlist::$contextlist | The contextlist containing the list of contexts used in this plugin. |
Implements core_privacy\local\request\core_user_data_provider.
|
static |
Returns metadata.
collection | $collection | The initialised collection to add items to. |
collection | A listing of user data stored through this system. |
Implements core_privacy\local\metadata\provider.
|
static |
Get the list of users who have data within a context.
userlist | $userlist | The userlist containing the list of users who have data in this context/plugin combination. |
Implements core_privacy\local\request\core_userlist_provider.
|
staticprotected |
Loop and export from a recordset.
moodle_recordset | $recordset | The recordset. |
string | $splitkey | The record key to determine when to export. |
mixed | $initial | The initial data to reduce from. |
callable | $reducer | The function to return the dataset, receives current dataset, and the current record. |
callable | $export | The function to export the dataset, receives the last value from $splitkey and the dataset. |
void |
|
staticprotected |
Transform a competency into a brief description.
competency | $competency | The competency. |
array |
|
staticprotected |
Transform a competency rating.
competency | $competency | The competency. |
int | $grade | The grade. |
performance_helper | $helper | The performance helper. |
string |
|
staticprotected |
Transform an evidence.
int | $userid | The user ID we are exporting for. |
evidence | $evidence | The evidence. |
competency | $competency | The associated competency. |
performance_helper | $helper | The performance helper. |
array |
|
staticprotected |
Transform a framework into a brief description.
competency_framework | $framework | The framework. |
array |
|
staticprotected |
Transform proficiency.
null | bool | $proficiency | The proficiency. |
string |
|
staticprotected |
Transform a template into a brief description.
template | $template | The Template. |
array |
|
staticprotected |
Transform user competency.
int | $userid | The user ID we are exporting for. |
user_competency | user_competency_plan | user_competency_course | $uc | The user competency. |
competency | $competency | The associated competency. |
performance_helper | $helper | The performance helper. |
array |
|
staticprotected |
Transform a user evidence.
int | $userid | The user we are exporting for. |
user_evidence | $ue | The evidence of prior learning. |
array |