MediaWiki REL1_40
MediaWiki\Title\TitleArray Class Reference

The TitleArray class only exists to provide the newFromResult method at pre- sent. More...

Inherits Iterator.

Inherited by MediaWiki\Title\TitleArrayFromResult.

Collaboration diagram for MediaWiki\Title\TitleArray:

Public Member Functions

 current ()
 
 key ()
 

Static Public Member Functions

static newFromResult ( $res)
 

Detailed Description

The TitleArray class only exists to provide the newFromResult method at pre- sent.

The documentation of the return types for the abstract current/key functions helps static code analyzer to treat this as Iterator<Title>

@method int count()

Definition at line 40 of file TitleArray.php.

Member Function Documentation

◆ current()

MediaWiki\Title\TitleArray::current ( )
abstract
Returns
Title

Reimplemented in MediaWiki\Title\TitleArrayFromResult.

◆ key()

MediaWiki\Title\TitleArray::key ( )
abstract
Returns
int

Reimplemented in MediaWiki\Title\TitleArrayFromResult.

◆ newFromResult()

static MediaWiki\Title\TitleArray::newFromResult ( $res)
static
Parameters
IResultWrapper$resA SQL result including at least page_namespace and page_title – also can have page_id, page_len, page_is_redirect, page_latest (if those will be used). See Title::newFromRow.
Returns
TitleArrayFromResult

Definition at line 47 of file TitleArray.php.

References $res.


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