MediaWiki  master
TitleArray.php
Go to the documentation of this file.
1 <?php
28 
37 abstract class TitleArray implements Iterator {
44  public static function newFromResult( $res ) {
45  // TODO consider merging this class with TitleArrayFromResult now that the
46  // TitleArrayFromResult hook has been removed
47  return new TitleArrayFromResult( $res );
48  }
49 
53  abstract public function current(): Title;
54 
58  abstract public function key(): int;
59 }
The TitleArray class only exists to provide the newFromResult method at pre- sent.
Definition: TitleArray.php:37
static newFromResult( $res)
Definition: TitleArray.php:44
Represents a title within MediaWiki.
Definition: Title.php:49
Result wrapper for grabbing data queried from an IDatabase object.