Base implementation of a userlist used to store a set of users.
More...
|
| __construct (\context $context, string $component) |
| Constructor to create a new userlist.
|
|
| count () |
| Return the number of users.
|
|
| current () |
| Return the current user.
|
|
| get_component () |
| Get the name of the component to which this userlist belongs.
|
|
| get_context () |
| Get the context for this userlist.
|
|
| get_userids () |
| Get the list of user IDs that relate to this request.
|
|
| get_users () |
| Get the complete list of user objects that relate to this request.
|
|
| key () |
| Return the key of the current element.
|
|
| next () |
| Move to the next user in the list.
|
|
| rewind () |
| Rewind to the first found user.
|
|
| valid () |
| Check if the current position is valid.
|
|
|
string | $component = '' |
| component the frankenstyle component name.
|
|
context | $context |
| The context that this userlist belongs to.
|
|
int | $iteratorposition = 0 |
| Current position of the iterator.
|
|
Base implementation of a userlist used to store a set of users.
- 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
◆ __construct()
core_privacy\local\request\userlist_base::__construct |
( |
\context | $context, |
|
|
string | $component ) |
Constructor to create a new userlist.
- Parameters
-
context | $context | |
string | $component | |
◆ add_userids()
core_privacy\local\request\userlist_base::add_userids |
( |
array | $userids | ) |
|
|
protected |
Add a set of additional userids.
- Parameters
-
array | $userids | The list of users. |
- Return values
-
◆ current()
core_privacy\local\request\userlist_base::current |
( |
| ) |
|
Return the current user.
- Return values
-
◆ get_component()
core_privacy\local\request\userlist_base::get_component |
( |
| ) |
|
Get the name of the component to which this userlist belongs.
- Return values
-
string | the component name associated with this userlist. |
◆ get_context()
core_privacy\local\request\userlist_base::get_context |
( |
| ) |
|
Get the context for this userlist.
- Return values
-
◆ get_userids()
core_privacy\local\request\userlist_base::get_userids |
( |
| ) |
|
Get the list of user IDs that relate to this request.
- Return values
-
◆ get_users()
core_privacy\local\request\userlist_base::get_users |
( |
| ) |
|
Get the complete list of user objects that relate to this request.
- Return values
-
◆ key()
core_privacy\local\request\userlist_base::key |
( |
| ) |
|
Return the key of the current element.
- Return values
-
◆ rewind()
core_privacy\local\request\userlist_base::rewind |
( |
| ) |
|
Rewind to the first found user.
The list of users is uniqued during the rewind. The rewind is called at the start of most iterations.
◆ set_component()
core_privacy\local\request\userlist_base::set_component |
( |
| $component | ) |
|
|
protected |
◆ set_userids()
core_privacy\local\request\userlist_base::set_userids |
( |
array | $userids | ) |
|
|
protected |
Set the userids.
- Parameters
-
array | $userids | The list of users. |
- Return values
-
◆ valid()
core_privacy\local\request\userlist_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/userlist_base.php