MediaWiki  master
TitleArrayFromResult Class Reference

@newable More...

Inheritance diagram for TitleArrayFromResult:
Collaboration diagram for TitleArrayFromResult:

Public Member Functions

 __construct ( $res)
 Stable to call. More...
 
 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.

References $current.

Referenced by setCurrent(), and valid().

◆ key()

TitleArrayFromResult::key ( )

Definition at line 76 of file TitleArrayFromResult.php.

References $key.

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

◆ next()

TitleArrayFromResult::next ( )

Definition at line 80 of file TitleArrayFromResult.php.

References key(), and setCurrent().

◆ rewind()

TitleArrayFromResult::rewind ( )

Definition at line 86 of file TitleArrayFromResult.php.

References key(), and setCurrent().

◆ setCurrent()

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

Definition at line 57 of file TitleArrayFromResult.php.

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

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

◆ valid()

TitleArrayFromResult::valid ( )
Returns
bool

Definition at line 95 of file TitleArrayFromResult.php.

References current().

Member Data Documentation

◆ $current

TitleArrayFromResult::$current

Definition at line 40 of file TitleArrayFromResult.php.

Referenced by current().

◆ $key

TitleArrayFromResult::$key

Definition at line 38 of file TitleArrayFromResult.php.

Referenced by key().

◆ $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: