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