MediaWiki REL1_39
TitleArray Class Reference

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

Inheritance diagram for TitleArray:
Collaboration diagram for 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 37 of file TitleArray.php.

Member Function Documentation

◆ current()

TitleArray::current ( )
abstract
Returns
Title

Reimplemented in TitleArrayFromResult.

◆ key()

TitleArray::key ( )
abstract
Returns
int

Reimplemented in TitleArrayFromResult.

◆ newFromResult()

static 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 44 of file TitleArray.php.

References $res.

Referenced by PrefixSearch\defaultSearchBackend(), BacklinkCache\getCascadeProtectedLinks(), WikiPage\getCategories(), WikiFilePage\getForeignCategories(), BacklinkCache\getLinks(), Category\getMembers(), Title\getSubpages(), and HTMLCacheUpdateJob\invalidateTitles().


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