MediaWiki REL1_39
TitleArrayFromResult Class Reference
Inheritance diagram for TitleArrayFromResult:
Collaboration diagram for TitleArrayFromResult:

Public Member Functions

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

Public Attributes

Title false $current
 
int $key
 
IResultWrapper $res
 

Protected Member Functions

 setCurrent ( $row)
 

Additional Inherited Members

- Static Public Member Functions inherited from TitleArray
static newFromResult ( $res)
 

Detailed Description

Stability: newable
Note
marked as newable in 1.35 for lack of a better alternative, but should probably become part of the TitleFactory service.

Definition at line 34 of file TitleArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

TitleArrayFromResult::__construct ( $res)
Stability: stable
to call
Parameters
IResultWrapper$res

Definition at line 49 of file TitleArrayFromResult.php.

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

Member Function Documentation

◆ count()

TitleArrayFromResult::count ( )
Returns
int

Definition at line 70 of file TitleArrayFromResult.php.

◆ current()

TitleArrayFromResult::current ( )
Returns
Title

Reimplemented from TitleArray.

Definition at line 74 of file TitleArrayFromResult.php.

Referenced by setCurrent().

◆ key()

TitleArrayFromResult::key ( )
Returns
int

Reimplemented from TitleArray.

Definition at line 78 of file TitleArrayFromResult.php.

Referenced by __construct().

◆ next()

TitleArrayFromResult::next ( )

Definition at line 82 of file TitleArrayFromResult.php.

◆ rewind()

TitleArrayFromResult::rewind ( )

Definition at line 88 of file TitleArrayFromResult.php.

◆ setCurrent()

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

Definition at line 59 of file TitleArrayFromResult.php.

References current().

Referenced by __construct().

◆ valid()

TitleArrayFromResult::valid ( )
Returns
bool

Definition at line 97 of file TitleArrayFromResult.php.

Member Data Documentation

◆ $current

Title false TitleArrayFromResult::$current

Definition at line 42 of file TitleArrayFromResult.php.

◆ $key

int TitleArrayFromResult::$key

Definition at line 39 of file TitleArrayFromResult.php.

◆ $res

IResultWrapper TitleArrayFromResult::$res

Definition at line 36 of file TitleArrayFromResult.php.

Referenced by __construct().


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