MediaWiki REL1_39
UserArrayFromResult Class Reference
Inheritance diagram for UserArrayFromResult:
Collaboration diagram for 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 UserArray
static newFromIDs ( $ids)
 
static newFromNames ( $names)
 
static newFromResult ( $res)
 

Detailed Description

Definition at line 25 of file UserArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

UserArrayFromResult::__construct ( $res)
Parameters
IResultWrapper$res

Definition at line 38 of file UserArrayFromResult.php.

References $res, key(), and setCurrent().

Member Function Documentation

◆ count()

UserArrayFromResult::count ( )
Returns
int

Definition at line 59 of file UserArrayFromResult.php.

◆ current()

UserArrayFromResult::current ( )
Returns
User

Reimplemented from UserArray.

Definition at line 63 of file UserArrayFromResult.php.

Referenced by setCurrent().

◆ key()

UserArrayFromResult::key ( )
Returns
int

Reimplemented from UserArray.

Definition at line 67 of file UserArrayFromResult.php.

Referenced by __construct().

◆ next()

UserArrayFromResult::next ( )

Definition at line 71 of file UserArrayFromResult.php.

◆ rewind()

UserArrayFromResult::rewind ( )

Definition at line 77 of file UserArrayFromResult.php.

◆ setCurrent()

UserArrayFromResult::setCurrent ( $row)
protected
Parameters
bool | stdClass$row
Returns
void

Definition at line 48 of file UserArrayFromResult.php.

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

Referenced by __construct().

◆ valid()

UserArrayFromResult::valid ( )
Returns
bool

Definition at line 86 of file UserArrayFromResult.php.

Member Data Documentation

◆ $current

User false UserArrayFromResult::$current

Definition at line 33 of file UserArrayFromResult.php.

◆ $key

int UserArrayFromResult::$key

Definition at line 30 of file UserArrayFromResult.php.

◆ $res

IResultWrapper UserArrayFromResult::$res

Definition at line 27 of file UserArrayFromResult.php.


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