MediaWiki REL1_37
TitleArray.php
Go to the documentation of this file.
1<?php
28
37abstract 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.
static newFromResult( $res)
Represents a title within MediaWiki.
Definition Title.php:48
Result wrapper for grabbing data queried from an IDatabase object.