MediaWiki  master
MediaWiki\Title\TitleArrayFromResult Class Reference
Inheritance diagram for MediaWiki\Title\TitleArrayFromResult:
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\Title\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 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.

◆ current()

MediaWiki\Title\TitleArrayFromResult::current ( )
Returns
Title

Reimplemented from MediaWiki\Title\TitleArray.

Definition at line 78 of file TitleArrayFromResult.php.

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

◆ key()

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

Reimplemented from MediaWiki\Title\TitleArray.

Definition at line 82 of file TitleArrayFromResult.php.

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

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