Privacy Fetch Result Set.
More...
|
| add_context (\context $context) |
| Add a single context to this approved_contextlist.
|
|
| add_context_by_id ($contextid) |
| Add a single context to this approved_contextlist by it's ID.
|
|
| add_contexts (array $contexts) |
| Add a set of contexts to this approved_contextlist.
|
|
| add_contexts_by_id (array $contexts) |
| Add a set of contexts to this approved_contextlist by ID.
|
|
| count () |
| Return the number of contexts.
|
|
| current () |
| Return the current context.
|
|
| get_component () |
| Get the name of the component to which this contextlist belongs.
|
|
| get_contextids () |
| Get the list of context IDs that relate to this request.
|
|
| get_contexts () |
| Get the complete list of context objects that relate to this request.
|
|
| get_user () |
| Get the user which requested their data.
|
|
| key () |
| Return the key of the current element.
|
|
| next () |
| Move to the next context in the list.
|
|
| rewind () |
| Rewind to the first found context.
|
|
| valid () |
| Check if the current position is valid.
|
|
|
| set_component ($component) |
| Sets the component for this contextlist.
|
|
| set_contextids (array $contextids) |
| Set the contextids.
|
|
| set_user (\stdClass $user) |
| Specify the user which owns this request.
|
|
|
string | $component = '' |
| component the frankenstyle component name.
|
|
int | $iteratorposition = 0 |
| Current position of the iterator.
|
|
stdClass | $user |
| The user this contextlist belongs to.
|
|
◆ add_context()
core_privacy\tests\request\approved_contextlist::add_context |
( |
\context | $context | ) |
|
Add a single context to this approved_contextlist.
- Parameters
-
context | $context | The context to be added. |
- Return values
-
◆ add_context_by_id()
core_privacy\tests\request\approved_contextlist::add_context_by_id |
( |
| $contextid | ) |
|
Add a single context to this approved_contextlist by it's ID.
- Parameters
-
int | $contextid | The context to be added. |
- Return values
-
◆ add_contexts()
core_privacy\tests\request\approved_contextlist::add_contexts |
( |
array | $contexts | ) |
|
Add a set of contexts to this approved_contextlist.
- Parameters
-
context[] | $contexts | The contexts to be added. |
- Return values
-
◆ add_contexts_by_id()
core_privacy\tests\request\approved_contextlist::add_contexts_by_id |
( |
array | $contexts | ) |
|
Add a set of contexts to this approved_contextlist by ID.
- Parameters
-
int[] | $contexts | The contexts to be added. |
- Return values
-
◆ current()
core_privacy\local\request\contextlist_base::current |
( |
| ) |
|
|
inherited |
Return the current context.
- Return values
-
◆ get_component()
core_privacy\local\request\contextlist_base::get_component |
( |
| ) |
|
|
inherited |
Get the name of the component to which this contextlist belongs.
- Return values
-
string | the component name associated with this contextlist. |
◆ get_contextids()
core_privacy\local\request\contextlist_base::get_contextids |
( |
| ) |
|
|
inherited |
Get the list of context IDs that relate to this request.
- Return values
-
◆ get_contexts()
core_privacy\local\request\contextlist_base::get_contexts |
( |
| ) |
|
|
inherited |
Get the complete list of context objects that relate to this request.
- Return values
-
◆ get_user()
core_privacy\local\request\approved_contextlist::get_user |
( |
| ) |
|
|
inherited |
Get the user which requested their data.
- Return values
-
◆ key()
core_privacy\local\request\contextlist_base::key |
( |
| ) |
|
|
inherited |
Return the key of the current element.
- Return values
-
◆ rewind()
core_privacy\local\request\contextlist_base::rewind |
( |
| ) |
|
|
inherited |
Rewind to the first found context.
The list of contexts is uniqued during the rewind. The rewind is called at the start of most iterations.
◆ set_component()
core_privacy\local\request\contextlist_base::set_component |
( |
| $component | ) |
|
|
protectedinherited |
◆ set_contextids()
core_privacy\local\request\contextlist_base::set_contextids |
( |
array | $contextids | ) |
|
|
protectedinherited |
Set the contextids.
- Parameters
-
array | $contextids | The list of contexts. |
◆ set_user()
core_privacy\local\request\approved_contextlist::set_user |
( |
\stdClass | $user | ) |
|
|
protectedinherited |
Specify the user which owns this request.
- Parameters
-
stdClass | $user | The user record. |
- Return values
-
◆ valid()
core_privacy\local\request\contextlist_base::valid |
( |
| ) |
|
|
inherited |
Check if the current position is valid.
- Return values
-
The documentation for this class was generated from the following file:
- privacy/classes/tests/request/approved_contextlist.php