MediaWiki REL1_28
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

◆ __construct()

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

Definition at line 36 of file UserArrayFromResult.php.

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

Member Function Documentation

◆ count()

UserArrayFromResult::count ( )
Returns
int

Definition at line 57 of file UserArrayFromResult.php.

◆ current()

UserArrayFromResult::current ( )
Returns
User

Definition at line 64 of file UserArrayFromResult.php.

References $current.

Referenced by setCurrent(), and valid().

◆ key()

UserArrayFromResult::key ( )

Definition at line 68 of file UserArrayFromResult.php.

References $key.

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

◆ next()

UserArrayFromResult::next ( )

Definition at line 72 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ rewind()

UserArrayFromResult::rewind ( )

Definition at line 78 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ setCurrent()

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

Definition at line 46 of file UserArrayFromResult.php.

References current().

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

◆ valid()

UserArrayFromResult::valid ( )
Returns
bool

Definition at line 87 of file UserArrayFromResult.php.

References current().

Member Data Documentation

◆ $current

bool stdClass UserArrayFromResult::$current

Definition at line 31 of file UserArrayFromResult.php.

Referenced by current().

◆ $key

int UserArrayFromResult::$key

Definition at line 28 of file UserArrayFromResult.php.

Referenced by key().

◆ $res

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: