MediaWiki REL1_35
TitleArrayFromResult Class Reference

@newable More...

Inheritance diagram for TitleArrayFromResult:
Collaboration diagram for TitleArrayFromResult:

Public Member Functions

 __construct ( $res)
 Stable to call.
 
 count ()
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Public Attributes

 $current
 
 $key
 
IResultWrapper $res
 

Protected Member Functions

 setCurrent ( $row)
 

Additional Inherited Members

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

Detailed Description

@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)

Stable to call.

Parameters
IResultWrapper$res

Definition at line 47 of file TitleArrayFromResult.php.

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

Member Function Documentation

◆ count()

TitleArrayFromResult::count ( )
Returns
int

Definition at line 68 of file TitleArrayFromResult.php.

◆ current()

TitleArrayFromResult::current ( )

Definition at line 72 of file TitleArrayFromResult.php.

Referenced by setCurrent().

◆ key()

TitleArrayFromResult::key ( )

Definition at line 76 of file TitleArrayFromResult.php.

Referenced by __construct().

◆ next()

TitleArrayFromResult::next ( )

Definition at line 80 of file TitleArrayFromResult.php.

◆ rewind()

TitleArrayFromResult::rewind ( )

Definition at line 86 of file TitleArrayFromResult.php.

◆ setCurrent()

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

Definition at line 57 of file TitleArrayFromResult.php.

References current().

Referenced by __construct().

◆ valid()

TitleArrayFromResult::valid ( )
Returns
bool

Definition at line 95 of file TitleArrayFromResult.php.

Member Data Documentation

◆ $current

TitleArrayFromResult::$current

Definition at line 40 of file TitleArrayFromResult.php.

◆ $key

TitleArrayFromResult::$key

Definition at line 38 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: