MediaWiki  1.23.8
UserArrayFromResult Class Reference
Inheritance diagram for UserArrayFromResult:
Collaboration diagram for UserArrayFromResult:

Public Member Functions

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

Public Attributes

 $current
 
 $key
 
ResultWrapper $res
 

Protected Member Functions

 setCurrent ( $row)
 

Additional Inherited Members

- Static Public Member Functions inherited from UserArray
static newFromIDs ( $ids)
 
static newFromResult ( $res)
 
- Static Protected Member Functions inherited from UserArray
static newFromResult_internal ( $res)
 

Detailed Description

Definition at line 23 of file UserArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 33 of file UserArrayFromResult.php.

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

Member Function Documentation

◆ count()

UserArrayFromResult::count ( )
Returns
int

Definition at line 54 of file UserArrayFromResult.php.

◆ current()

UserArrayFromResult::current ( )
Returns
User

Definition at line 61 of file UserArrayFromResult.php.

References $current.

Referenced by setCurrent(), and valid().

◆ key()

UserArrayFromResult::key ( )

Definition at line 65 of file UserArrayFromResult.php.

References $key.

Referenced by __construct(), next(), and rewind().

◆ next()

UserArrayFromResult::next ( )

Definition at line 69 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ rewind()

UserArrayFromResult::rewind ( )

Definition at line 75 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ setCurrent()

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

Definition at line 43 of file UserArrayFromResult.php.

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

Referenced by __construct(), next(), and rewind().

◆ valid()

UserArrayFromResult::valid ( )
Returns
bool

Definition at line 84 of file UserArrayFromResult.php.

References current().

Member Data Documentation

◆ $current

UserArrayFromResult::$current

Definition at line 28 of file UserArrayFromResult.php.

Referenced by current().

◆ $key

UserArrayFromResult::$key

Definition at line 28 of file UserArrayFromResult.php.

Referenced by key().

◆ $res

ResultWrapper UserArrayFromResult::$res

Definition at line 27 of file UserArrayFromResult.php.

Referenced by __construct().


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