Base implementation of a contextlist used to store a set of contexts.
More...
|
|
| 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.
|
| |
| | 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.
|
| |
|
|
string | $component = '' |
| | component the frankenstyle component name.
|
| |
|
int | $iteratorposition = 0 |
| | Current position of the iterator.
|
| |
Base implementation of a contextlist used to store a set of contexts.
- 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
◆ current()
| core_privacy\local\request\contextlist_base::current |
( |
| ) |
|
Return the current context.
- Return values
-
◆ get_component()
| core_privacy\local\request\contextlist_base::get_component |
( |
| ) |
|
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 |
( |
| ) |
|
Get the list of context IDs that relate to this request.
- Return values
-
◆ get_contexts()
| core_privacy\local\request\contextlist_base::get_contexts |
( |
| ) |
|
Get the complete list of context objects that relate to this request.
- Return values
-
◆ key()
| core_privacy\local\request\contextlist_base::key |
( |
| ) |
|
Return the key of the current element.
- Return values
-
◆ rewind()
| core_privacy\local\request\contextlist_base::rewind |
( |
| ) |
|
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 | ) |
|
|
protected |
◆ set_contextids()
| core_privacy\local\request\contextlist_base::set_contextids |
( |
array | $contextids | ) |
|
|
protected |
Set the contextids.
- Parameters
-
| array | $contextids | The list of contexts. |
◆ valid()
| core_privacy\local\request\contextlist_base::valid |
( |
| ) |
|
Check if the current position is valid.
- Return values
-
The documentation for this class was generated from the following file:
- privacy/classes/local/request/contextlist_base.php