Privacy Subsystem for core_enrol implementing metadata and plugin providers.
More...
|
static | delete_user_data (string $sql, array $params) |
| Delete data from $tablename with the IDs returned by $sql query.
|
|
Privacy Subsystem for core_enrol implementing metadata and plugin providers.
- Copyright
- 2018 Carlos Escobedo carlo.nosp@m.s@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_data_for_all_users_in_context()
static core_enrol\privacy\provider::delete_data_for_all_users_in_context |
( |
\context | $context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static core_enrol\privacy\provider::delete_data_for_users |
( |
approved_userlist | $userlist | ) |
|
|
static |
◆ delete_user_data()
static core_enrol\privacy\provider::delete_user_data |
( |
string | $sql, |
|
|
array | $params ) |
|
staticprotected |
Delete data from $tablename with the IDs returned by $sql query.
- Parameters
-
string | $sql | SQL query for getting the IDs of the uer enrolments entries to delete. |
array | $params | SQL params for the query. |
◆ export_user_data()
◆ get_contexts_for_userid()
static core_enrol\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 core_enrol\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Returns meta data about this system.
- 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_subcontext()
static core_enrol\privacy\provider::get_subcontext |
( |
array | $subcontext | ) |
|
|
static |
Get the subcontext for export.
- Parameters
-
array | $subcontext | Any additional subcontext to use. |
- Return values
-
array | The array containing the full subcontext, i.e. [enrolments, subcontext] |
◆ get_users_in_context()
static core_enrol\privacy\provider::get_users_in_context |
( |
userlist | $userlist | ) |
|
|
static |
The documentation for this class was generated from the following file: