Data provider class.
More...
Data provider class.
- Copyright
- 2018 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_data_for_all_users_in_context() [1/2]
static core_privacy\local\request\core_user_data_provider::delete_data_for_all_users_in_context |
( |
\context |
$context | ) |
|
|
staticinherited |
Delete all data for all users in the specified context.
- Parameters
-
context | $context | The specific context to delete data for. |
Implemented in core_role\privacy\provider, tool_cohortroles\privacy\provider, tool_mobile\privacy\provider, tool_monitor\privacy\provider, tool_policy\privacy\provider, core_analytics\privacy\provider, auth_mnet\privacy\provider, auth_oauth2\privacy\provider, core_backup\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_memcached\privacy\provider, cachestore_mongodb\privacy\provider, cachestore_redis\privacy\provider, cachestore_session\privacy\provider, core_calendar\privacy\provider, core_cohort\privacy\provider, core_contentbank\privacy\provider, core_course\privacy\provider, core_enrol\privacy\provider, enrol_cohort\privacy\provider, enrol_flatfile\privacy\provider, enrol_lti\privacy\provider, enrol_meta\privacy\provider, enrol_paypal\privacy\provider, core_files\privacy\provider, fileconverter_googledrive\privacy\provider, core_grading\privacy\provider, core_group\privacy\provider, core\privacy\provider, editor_atto\privacy\provider, core_message\privacy\provider, message_airnotifier\privacy\provider, message_email\privacy\provider, message_jabber\privacy\provider, mnetservice_enrol\privacy\provider, mod_assign\privacy\provider, mod_assignment\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_lti\privacy\provider, ltiservice_basicoutcomes\privacy\provider, ltiservice_gradebookservices\privacy\provider, ltiservice_memberships\privacy\provider, quizaccess_seb\privacy\provider, mod_quiz\privacy\provider, mod_scorm\privacy\provider, mod_workshop\privacy\provider, core_notes\privacy\provider, core_portfolio\privacy\provider, core_question\privacy\provider, report_stats\privacy\provider, repository_boxnet\privacy\provider, core_repository\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_picasa\privacy\provider, repository_wikimedia\privacy\provider, repository_youtube\privacy\provider, core_rss\privacy\provider, search_simpledb\privacy\provider, search_solr\privacy\provider, core_tag\privacy\provider, core_user\privacy\provider, profilefield_checkbox\privacy\provider, profilefield_datetime\privacy\provider, profilefield_menu\privacy\provider, profilefield_text\privacy\provider, and profilefield_textarea\privacy\provider.
◆ delete_data_for_all_users_in_context() [2/2]
static mod_wiki\privacy\provider::delete_data_for_all_users_in_context |
( |
context |
$context | ) |
|
|
static |
Delete all data for all users in the specified context.
- Parameters
-
context | $context | The specific context to delete data for. |
◆ delete_data_for_user()
◆ delete_data_for_users()
static mod_wiki\privacy\provider::delete_data_for_users |
( |
approved_userlist |
$userlist | ) |
|
|
static |
◆ export_subwiki()
static mod_wiki\privacy\provider::export_subwiki |
( |
|
$user, |
|
|
context |
$context, |
|
|
|
$subwiki, |
|
|
|
$wikimode |
|
) |
| |
|
staticprotected |
Add one subwiki to the export.
Each page is added as related data because all pages in one subwiki share the same filearea
- Parameters
-
stdClass | $user | |
context | $context | |
array | $subwiki | |
string | $wikimode | |
◆ export_used_files()
static mod_wiki\privacy\provider::export_used_files |
( |
|
$context, |
|
|
|
$subwikiid, |
|
|
|
$alltexts |
|
) |
| |
|
staticprotected |
Analyze which files are used in the texts and export.
- Parameters
-
context | $context | |
int | $subwikiid | |
string | $alltexts | |
- Return values
-
◆ export_user_data()
◆ get_contexts_for_userid()
static mod_wiki\privacy\provider::get_contexts_for_userid |
( |
int |
$userid | ) |
|
|
static |
Get the list of contexts that contain user information for the specified user.
- Parameters
-
int | $userid | The user to search. |
- Return values
-
contextlist::$contextlist | The contextlist containing the list of contexts used in this plugin. |
Implements core_privacy\local\request\core_user_data_provider.
◆ get_metadata()
static mod_wiki\privacy\provider::get_metadata |
( |
collection |
$collection | ) |
|
|
static |
Returns metadata.
- Parameters
-
collection | $collection | The initialised collection to add items to. |
- Return values
-
collection | A listing of user data stored through this system. |
Implements core_privacy\local\metadata\provider.
◆ get_page_comments()
static mod_wiki\privacy\provider::get_page_comments |
( |
|
$user, |
|
|
context |
$context, |
|
|
|
$pageid, |
|
|
|
$onlyforthisuser = true |
|
) |
| |
|
staticprotected |
Retrieves page comments.
We can not use core_comment::privacy::provider::export_comments() because it expects each item to have a separate subcontext and we store wiki pages as related data to subwiki because the files are shared between pages.
- Parameters
-
stdClass | $user | |
context | $context | |
int | $pageid | |
bool | $onlyforthisuser | |
- Return values
-
◆ get_users_in_context()
static mod_wiki\privacy\provider::get_users_in_context |
( |
userlist |
$userlist | ) |
|
|
static |
◆ text_has_files()
static mod_wiki\privacy\provider::text_has_files |
( |
|
$str | ) |
|
|
staticprotected |
Check if text has embedded files.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: