MediaWiki master
MediaWiki\User\UserArrayFromResult Class Reference

Inherits MediaWiki\User\UserArray, and Countable.

Collaboration diagram for MediaWiki\User\UserArrayFromResult:

Public Member Functions

 __construct ( $res)
 
 count ()
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Public Attributes

User false $current
 
int $key
 
IResultWrapper $res
 

Protected Member Functions

 setCurrent ( $row)
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\User\UserArray
static newFromIDs ( $ids)
 
static newFromNames ( $names)
 
static newFromResult ( $res)
 

Detailed Description

Definition at line 29 of file UserArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\UserArrayFromResult::__construct ( $res)

Member Function Documentation

◆ count()

MediaWiki\User\UserArrayFromResult::count ( )
Returns
int

Definition at line 63 of file UserArrayFromResult.php.

◆ current()

MediaWiki\User\UserArrayFromResult::current ( )
Returns
User

Reimplemented from MediaWiki\User\UserArray.

Definition at line 67 of file UserArrayFromResult.php.

Referenced by MediaWiki\User\UserArrayFromResult\setCurrent().

◆ key()

MediaWiki\User\UserArrayFromResult::key ( )
Returns
int

Reimplemented from MediaWiki\User\UserArray.

Definition at line 71 of file UserArrayFromResult.php.

Referenced by MediaWiki\User\UserArrayFromResult\__construct().

◆ next()

MediaWiki\User\UserArrayFromResult::next ( )

Definition at line 75 of file UserArrayFromResult.php.

◆ rewind()

MediaWiki\User\UserArrayFromResult::rewind ( )

Definition at line 81 of file UserArrayFromResult.php.

◆ setCurrent()

MediaWiki\User\UserArrayFromResult::setCurrent ( $row)
protected
Parameters
stdClass | false$row
Returns
void

Definition at line 52 of file UserArrayFromResult.php.

References MediaWiki\User\UserArrayFromResult\current(), and MediaWiki\User\User\newFromRow().

Referenced by MediaWiki\User\UserArrayFromResult\__construct().

◆ valid()

MediaWiki\User\UserArrayFromResult::valid ( )
Returns
bool

Definition at line 90 of file UserArrayFromResult.php.

Member Data Documentation

◆ $current

User false MediaWiki\User\UserArrayFromResult::$current

Definition at line 37 of file UserArrayFromResult.php.

◆ $key

int MediaWiki\User\UserArrayFromResult::$key

Definition at line 34 of file UserArrayFromResult.php.

◆ $res

IResultWrapper MediaWiki\User\UserArrayFromResult::$res

The documentation for this class was generated from the following file: