MediaWiki REL1_31
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 User $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)
 
- Static Protected Member Functions inherited from UserArray
static newFromResult_internal ( $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

Definition at line 66 of file UserArrayFromResult.php.

References $current.

Referenced by setCurrent(), and valid().

◆ key()

UserArrayFromResult::key ( )

Definition at line 70 of file UserArrayFromResult.php.

References $key.

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

◆ next()

UserArrayFromResult::next ( )

Definition at line 74 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ rewind()

UserArrayFromResult::rewind ( )

Definition at line 80 of file UserArrayFromResult.php.

References key(), and setCurrent().

◆ 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(), next(), and rewind().

◆ valid()

UserArrayFromResult::valid ( )
Returns
bool

Definition at line 89 of file UserArrayFromResult.php.

References current().

Member Data Documentation

◆ $current

bool User UserArrayFromResult::$current

Definition at line 33 of file UserArrayFromResult.php.

Referenced by current().

◆ $key

int UserArrayFromResult::$key

Definition at line 30 of file UserArrayFromResult.php.

Referenced by key().

◆ $res

IResultWrapper UserArrayFromResult::$res

Definition at line 27 of file UserArrayFromResult.php.

Referenced by __construct().


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