Privacy Subsystem for core_calendar implementing metadata, plugin, and user_preference providers.
More...
Privacy Subsystem for core_calendar implementing metadata, plugin, and user_preference providers.
- Copyright
- 2018 Zig Tan zig@m.nosp@m.oodl.nosp@m.e.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_batch_records()
static core_calendar\privacy\provider::delete_batch_records |
( |
| $tablename, |
|
|
| $field, |
|
|
| $values ) |
|
staticprotected |
Helper function to delete records in batches in order to minimise amount of deletion queries.
- Parameters
-
string | $tablename | The table name to delete from. |
string | $field | The table column field name to delete records by. |
array | $values | The table column field values to delete records by. |
- Exceptions
-
◆ delete_data_for_all_users_in_context()
static core_calendar\privacy\provider::delete_data_for_all_users_in_context |
( |
\context | $context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static core_calendar\privacy\provider::delete_data_for_users |
( |
approved_userlist | $userlist | ) |
|
|
static |
◆ export_user_calendar_event_data()
static core_calendar\privacy\provider::export_user_calendar_event_data |
( |
approved_contextlist | $contextlist | ) |
|
|
staticprotected |
Helper function to export Calendar Events data by a User's contextlist.
- Parameters
-
approved_contextlist | $contextlist | |
- Exceptions
-
◆ export_user_calendar_subscription_data()
static core_calendar\privacy\provider::export_user_calendar_subscription_data |
( |
approved_contextlist | $contextlist | ) |
|
|
staticprotected |
Helper function to export Calendar Subscriptions data by a User's contextlist.
- Parameters
-
approved_contextlist | $contextlist | |
- Exceptions
-
◆ export_user_data()
◆ export_user_preferences()
static core_calendar\privacy\provider::export_user_preferences |
( |
int | $userid | ) |
|
|
static |
◆ get_calendar_event_details_by_contextlist()
static core_calendar\privacy\provider::get_calendar_event_details_by_contextlist |
( |
approved_contextlist | $contextlist | ) |
|
|
staticprotected |
Helper function to return the Calendar Events for a given user and context list.
- Parameters
-
approved_contextlist | $contextlist | |
- Return values
-
- Exceptions
-
◆ get_calendar_event_ids_by_context()
static core_calendar\privacy\provider::get_calendar_event_ids_by_context |
( |
\context | $context, |
|
|
| $userids = array() ) |
|
staticprotected |
Helper function to return all Calendar Event id results for a specified context and optionally included user list.
- Parameters
-
context | $context | |
array | $userids | |
- Return values
-
- Exceptions
-
◆ get_calendar_subscription_details_by_contextlist()
static core_calendar\privacy\provider::get_calendar_subscription_details_by_contextlist |
( |
approved_contextlist | $contextlist | ) |
|
|
staticprotected |
Helper function to return the Calendar Subscriptions for a given user and context list.
- Parameters
-
approved_contextlist | $contextlist | |
- Return values
-
- Exceptions
-
◆ get_calendar_subscription_ids_by_context()
static core_calendar\privacy\provider::get_calendar_subscription_ids_by_context |
( |
\context | $context, |
|
|
| $userids = array() ) |
|
staticprotected |
Helper function to return all Calendar Subscription id results for a specified context and optionally included user list.
- Parameters
-
context | $context | |
array | $userids | |
- Return values
-
- Exceptions
-
◆ get_contexts_for_userid()
static core_calendar\privacy\provider::get_contexts_for_userid |
( |
int | $userid | ) |
|
|
static |
Get the list of contexts that contain calendar 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 core_calendar\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Provides meta data that is stored about a user with core_calendar.
- Parameters
-
collection | $collection | A collection of meta data items to be added to. |
- Return values
-
collection | Returns the collection of metadata. |
Implements core_privacy\local\metadata\provider.
◆ get_users_in_context()
static core_calendar\privacy\provider::get_users_in_context |
( |
userlist | $userlist | ) |
|
|
static |
The documentation for this class was generated from the following file: