Class to walk into a list of User objects.
More...
Inherits Iterator, and Countable.
Inherited by MediaWiki\User\UserArrayFromResult.
Class to walk into a list of User objects.
Definition at line 19 of file UserArray.php.
◆ count()
| MediaWiki\User\UserArray::count |
( |
| ) |
|
|
abstract |
◆ current()
| MediaWiki\User\UserArray::current |
( |
| ) |
|
|
abstract |
◆ key()
| MediaWiki\User\UserArray::key |
( |
| ) |
|
|
abstract |
◆ newFromIDs()
| static MediaWiki\User\UserArray::newFromIDs |
( |
array | $ids | ) |
|
|
static |
- Note
- Try to avoid in new code, in case getting UserIdentity batch is enough, use
(). In case you need full User objects, you can keep using this method, but it's moving towards deprecation.
- Parameters
-
- Returns
- self
Definition at line 47 of file UserArray.php.
◆ newFromNames()
| static MediaWiki\User\UserArray::newFromNames |
( |
array | $names | ) |
|
|
static |
- Note
- Try to avoid in new code, in case getting UserIdentity batch is enough, use
(). In case you need full User objects, you can keep using this method, but it's moving towards deprecation.
- Since
- 1.25
- Parameters
-
- Returns
- self
Definition at line 71 of file UserArray.php.
◆ newFromResult()
| static MediaWiki\User\UserArray::newFromResult |
( |
| $res | ) |
|
|
static |
- Note
- Try to avoid in new code, in case getting UserIdentity batch is enough, use
(). In case you need full User objects, you can keep using this method, but it's moving towards deprecation.
- Parameters
-
- Returns
- self
Definition at line 29 of file UserArray.php.
The documentation for this class was generated from the following file: