MediaWiki master
MediaWiki\Title\TitleArrayFromResult Class Reference

Inherits Countable, and Iterator.

Collaboration diagram for MediaWiki\Title\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)
 

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 38 of file TitleArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 53 of file TitleArrayFromResult.php.

References MediaWiki\Title\TitleArrayFromResult\$res, MediaWiki\Title\TitleArrayFromResult\key(), and MediaWiki\Title\TitleArrayFromResult\setCurrent().

Member Function Documentation

◆ count()

MediaWiki\Title\TitleArrayFromResult::count ( )
Returns
int

Definition at line 74 of file TitleArrayFromResult.php.

Referenced by MediaWiki\Title\Title\hasSubpages().

◆ current()

MediaWiki\Title\TitleArrayFromResult::current ( )

◆ key()

MediaWiki\Title\TitleArrayFromResult::key ( )

◆ next()

MediaWiki\Title\TitleArrayFromResult::next ( )

Definition at line 86 of file TitleArrayFromResult.php.

◆ rewind()

MediaWiki\Title\TitleArrayFromResult::rewind ( )

Definition at line 92 of file TitleArrayFromResult.php.

◆ setCurrent()

MediaWiki\Title\TitleArrayFromResult::setCurrent ( $row)
protected
Parameters
\\stdClass | false$row
Returns
void

Definition at line 63 of file TitleArrayFromResult.php.

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

Referenced by MediaWiki\Title\TitleArrayFromResult\__construct().

◆ valid()

MediaWiki\Title\TitleArrayFromResult::valid ( )
Returns
bool

Definition at line 101 of file TitleArrayFromResult.php.

Member Data Documentation

◆ $current

Title false MediaWiki\Title\TitleArrayFromResult::$current

Definition at line 46 of file TitleArrayFromResult.php.

◆ $key

int MediaWiki\Title\TitleArrayFromResult::$key

Definition at line 43 of file TitleArrayFromResult.php.

◆ $res

IResultWrapper MediaWiki\Title\TitleArrayFromResult::$res

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