Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Implementation of the privacy subsystem plugin provider for the forum activity module. 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_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 | export_user_preferences (int $userid) |
Store all user preferences for the plugin. 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 $items) |
Returns meta data about this system. More... | |
static | get_users_in_context (userlist $userlist) |
Get the list of users within a specific context. More... | |
Static Protected Member Functions | |
static | export_all_posts (int $userid, array $mappings) |
Store all information about all posts that we have detected this user to have access to. More... | |
static | export_all_posts_in_discussion (int $userid, context $context, stdClass $discussion) |
Store all information about all posts that we have detected this user to have access to. More... | |
static | export_digest_data (int $userid, stdClass $forum, int $maildigest) |
Store data about daily digest preferences. More... | |
static | export_discussion_data (int $userid, array $mappings) |
Store all information about all discussions that we have detected this user to have access to. More... | |
static | export_discussion_subscription_data (int $userid, context_module $context, stdClass $discussion) |
Store data about whether the user subscribes to this particular discussion. More... | |
static | export_grade_data (int $grade, context $context, stdClass $forum, array $path) |
static | export_grading_data (int $userid, stdClass $forum, int $grade) |
static | export_post_data (int $userid, context $context, $postarea, $post) |
Export all data in the post. More... | |
static | export_posts_in_structure (int $userid, context $context, $parentarea, stdClass $structure) |
Export all posts in the provided structure. More... | |
static | export_read_data (int $userid, context_module $context, array $postarea, stdClass $post) |
Store read-tracking information about a particular forum post. More... | |
static | export_subscription_data (int $userid, stdClass $forum, int $subscribed) |
Store data about whether the user subscribes to forum. More... | |
static | export_tracking_data (int $userid, stdClass $forum, int $tracked) |
Store forum read-tracking data about a particular forum. More... | |
Implementation of the privacy subsystem plugin provider for the forum activity module.
|
static |
Delete all data for all users in the specified context.
context | $context | The specific context to delete data for. |
Implements core_privacy\local\request\core_user_data_provider.
|
static |
Delete all user data for the specified user, in the specified contexts.
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.
approved_userlist | $userlist | The approved context and user information to delete information for. |
Implements core_privacy\local\request\core_userlist_provider.
|
staticprotected |
Store all information about all posts that we have detected this user to have access to.
int | $userid | The userid of the user whose data is to be exported. |
array | $mappings | A list of mappings from forumid => contextid. |
array | Which forums had data written for them. |
|
staticprotected |
Store all information about all posts that we have detected this user to have access to.
int | $userid | The userid of the user whose data is to be exported. |
context | $context | The instance of the forum context. |
stdClass | $discussion | The discussion whose data is being exported. |
|
staticprotected |
Store data about daily digest preferences.
int | $userid | The userid of the user whose data is to be exported. |
stdClass | $forum | The forum whose data is being exported. |
int | $maildigest | The mail digest setting for this forum. |
bool | Whether any data was stored. |
|
staticprotected |
Store all information about all discussions that we have detected this user to have access to.
int | $userid | The userid of the user whose data is to be exported. |
array | $mappings | A list of mappings from forumid => contextid. |
array | Which forums had data written for them. |
|
staticprotected |
Store data about whether the user subscribes to this particular discussion.
int | $userid | The userid of the user whose data is to be exported. |
context_module | $context | The instance of the forum context. |
stdClass | $discussion | The discussion whose data is being exported. |
bool | Whether any data was stored. |
|
staticprotected |
Export all data in the post.
int | $userid | The userid of the user whose data is to be exported. |
context | $context | The instance of the forum context. |
array | $postarea | The subcontext of the parent. |
stdClass | $post | The post structure and all of its children |
|
staticprotected |
Export all posts in the provided structure.
int | $userid | The userid of the user whose data is to be exported. |
context | $context | The instance of the forum context. |
array | $parentarea | The subcontext of the parent. |
stdClass | $structure | The post structure and all of its children |
|
staticprotected |
Store read-tracking information about a particular forum post.
int | $userid | The userid of the user whose data is to be exported. |
context_module | $context | The instance of the forum context. |
array | $postarea | The subcontext for this post. |
stdClass | $post | The post whose data is being exported. |
bool | Whether any data was stored. |
|
staticprotected |
Store data about whether the user subscribes to forum.
int | $userid | The userid of the user whose data is to be exported. |
stdClass | $forum | The forum whose data is being exported. |
int | $subscribed | if the user is subscribed |
bool | Whether any data was stored. |
|
staticprotected |
Store forum read-tracking data about a particular forum.
This is whether a forum has read-tracking enabled or not.
int | $userid | The userid of the user whose data is to be exported. |
stdClass | $forum | The forum whose data is being exported. |
int | $tracke | if the user is subscribed |
bool | Whether any data was stored. |
|
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.
|
static |
Store all user preferences for the plugin.
int | $userid | The userid of the user whose data is to be exported. |
Implements core_privacy\local\request\user_preference_provider.
|
static |
Get the list of contexts that contain user information for the specified user.
In the case of forum, that is any forum where the user has made any post, rated any content, or has any preferences.
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 meta data about this system.
collection | $items | 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 within a specific 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.