MediaWiki  master
TitleArray.php
Go to the documentation of this file.
1 <?php
27 namespace MediaWiki\Title;
28 
29 use Iterator;
31 
40 abstract 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 
64 class_alias( TitleArray::class, 'TitleArray' );
The TitleArray class only exists to provide the newFromResult method at pre- sent.
Definition: TitleArray.php:40
static newFromResult( $res)
Definition: TitleArray.php:47
Represents a title within MediaWiki.
Definition: Title.php:82
Result wrapper for grabbing data queried from an IDatabase object.