MediaWiki REL1_40
TitleArray.php
Go to the documentation of this file.
1<?php
27namespace MediaWiki\Title;
28
29use Iterator;
31
40abstract class TitleArray implements Iterator {
47 public static function newFromResult( $res ) {
48 // TODO consider merging this class with TitleArrayFromResult now that the
49 // TitleArrayFromResult hook has been removed
50 return new TitleArrayFromResult( $res );
51 }
52
56 abstract public function current(): Title;
57
61 abstract public function key(): int;
62}
63
64class_alias( TitleArray::class, 'TitleArray' );
The TitleArray class only exists to provide the newFromResult method at pre- sent.
static newFromResult( $res)
Represents a title within MediaWiki.
Definition Title.php:82
Result wrapper for grabbing data queried from an IDatabase object.