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 }
TitleArray\newFromResult
static newFromResult( $res)
Definition: TitleArray.php:44
$res
$res
Definition: testCompression.php:57
TitleArray\key
key()
Wikimedia\Rdbms\IResultWrapper
Result wrapper for grabbing data queried from an IDatabase object.
Definition: IResultWrapper.php:26
TitleArrayFromResult
@newable
Definition: TitleArrayFromResult.php:34
TitleArray\current
current()
Title
Represents a title within MediaWiki.
Definition: Title.php:48
TitleArray
The TitleArray class only exists to provide the newFromResult method at pre- sent.
Definition: TitleArray.php:37