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

Public Member Functions

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

Public Attributes

bool stdClass $current
 
int $key
 
ResultWrapper $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)
 
- Static Protected Member Functions inherited from UserArray
static newFromResult_internal ($res)
 

Detailed Description

Definition at line 23 of file UserArrayFromResult.php.

Constructor & Destructor Documentation

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

Definition at line 36 of file UserArrayFromResult.php.

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

Member Function Documentation

UserArrayFromResult::count ( )
Returns
int

Definition at line 57 of file UserArrayFromResult.php.

UserArrayFromResult::current ( )
Returns
User

Definition at line 64 of file UserArrayFromResult.php.

References $current.

Referenced by setCurrent(), and valid().

UserArrayFromResult::key ( )

Definition at line 68 of file UserArrayFromResult.php.

References $key.

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

UserArrayFromResult::next ( )

Definition at line 72 of file UserArrayFromResult.php.

References key(), and setCurrent().

UserArrayFromResult::rewind ( )

Definition at line 78 of file UserArrayFromResult.php.

References key(), and setCurrent().

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

Definition at line 46 of file UserArrayFromResult.php.

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

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

UserArrayFromResult::valid ( )
Returns
bool

Definition at line 87 of file UserArrayFromResult.php.

References current().

Member Data Documentation

bool stdClass UserArrayFromResult::$current

Definition at line 31 of file UserArrayFromResult.php.

Referenced by current().

int UserArrayFromResult::$key

Definition at line 28 of file UserArrayFromResult.php.

Referenced by key().

ResultWrapper UserArrayFromResult::$res

Definition at line 25 of file UserArrayFromResult.php.

Referenced by __construct().


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