MediaWiki  master
MediaWiki\Title\TitleArray Class Reference

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

Inheritance diagram for MediaWiki\Title\TitleArray:
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 41 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 48 of file TitleArray.php.

References $res.


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