Privacy class for requesting user data.
More...
|
static | delete_userkeys (string $script, $userid=null, $instance=null) |
| Deletes all userkeys for a script.
|
|
static | export_userkeys (\context $context, array $subcontext, string $script, $instance=null) |
| Exports the data relating to user keys for the specified scripts and instance, within the specified context/subcontext.
|
|
static | get_metadata (collection $collection) |
| Returns meta data about this system.
|
|
static | get_user_contexts_with_script (userlist $userlist, context $context, string $script, int $instance=null) |
| Get the list of users within a specific context for this system.
|
|
Privacy class for requesting user data.
- Copyright
- 2018 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_userkeys()
static core_userkey\privacy\provider::delete_userkeys |
( |
string | $script, |
|
|
| $userid = null, |
|
|
| $instance = null ) |
|
static |
Deletes all userkeys for a script.
- Parameters
-
string | $script | The owner of the data (usually a component name). |
int | $userid | The owner of the data. |
int | $instance | The instance owner of the data. |
◆ export_userkeys()
static core_userkey\privacy\provider::export_userkeys |
( |
\context | $context, |
|
|
array | $subcontext, |
|
|
string | $script, |
|
|
| $instance = null ) |
|
static |
Exports the data relating to user keys for the specified scripts and instance, within the specified context/subcontext.
- Parameters
-
context | $context | Context owner of the data. |
array | $subcontext | Context owner of the data. |
string | $script | The owner of the data (usually a component name). |
int | $instance | The instance owner of the data. |
◆ get_metadata()
static core_userkey\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_user_contexts_with_script()
static core_userkey\privacy\provider::get_user_contexts_with_script |
( |
userlist | $userlist, |
|
|
context | $context, |
|
|
string | $script, |
|
|
int | $instance = null ) |
|
static |
Get the list of users within a specific context for this system.
- Parameters
-
userlist | $userlist | The userlist containing the list of users who have data in this context/plugin combination. |
context | $context | The context. |
string | $script | The unique target identifier. |
int | $instance | The instance ID. |
The documentation for this class was generated from the following file:
- lib/userkey/classes/privacy/provider.php