List of users from the Privacy API Search functions.
More...
List of users from the Privacy API Search functions.
- 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
◆ add_from_sql()
core_privacy\local\request\userlist::add_from_sql |
( |
string |
$fieldname, |
|
|
string |
$sql, |
|
|
array |
$params |
|
) |
| |
Add a set of users from SQL.
The SQL should only return a list of user IDs.
- Parameters
-
string | $fieldname | The name of the field which holds the user id |
string | $sql | The SQL which will fetch the list of * user IDs |
array | $params | The set of SQL parameters |
- Return values
-
◆ add_user()
core_privacy\local\request\userlist::add_user |
( |
int |
$userid | ) |
|
Adds the user user for a given user.
- Parameters
-
- Return values
-
◆ add_userids()
core_privacy\local\request\userlist_base::add_userids |
( |
array |
$userids | ) |
|
|
protectedinherited |
Add a set of additional userids.
- Parameters
-
array | $userids | The list of users. |
- Return values
-
◆ add_users()
core_privacy\local\request\userlist::add_users |
( |
array |
$userids | ) |
|
Adds the user users for given users.
- Parameters
-
- Return values
-
◆ current()
core_privacy\local\request\userlist_base::current |
( |
| ) |
|
|
inherited |
Return the current user.
- Return values
-
◆ get_component()
core_privacy\local\request\userlist_base::get_component |
( |
| ) |
|
|
inherited |
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 |
( |
| ) |
|
|
inherited |
Get the context for this userlist.
- Return values
-
◆ get_userids()
core_privacy\local\request\userlist_base::get_userids |
( |
| ) |
|
|
inherited |
Get the list of user IDs that relate to this request.
- Return values
-
◆ get_users()
core_privacy\local\request\userlist_base::get_users |
( |
| ) |
|
|
inherited |
Get the complete list of user objects that relate to this request.
- Return values
-
◆ key()
core_privacy\local\request\userlist_base::key |
( |
| ) |
|
|
inherited |
Return the key of the current element.
- Return values
-
◆ rewind()
core_privacy\local\request\userlist_base::rewind |
( |
| ) |
|
|
inherited |
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::set_component |
( |
|
$component | ) |
|
◆ set_userids()
core_privacy\local\request\userlist_base::set_userids |
( |
array |
$userids | ) |
|
|
protectedinherited |
Set the userids.
- Parameters
-
array | $userids | The list of users. |
- Return values
-
◆ valid()
core_privacy\local\request\userlist_base::valid |
( |
| ) |
|
|
inherited |
Check if the current position is valid.
- Return values
-
The documentation for this class was generated from the following file: