MediaWiki REL1_30
TitleArray.php
Go to the documentation of this file.
1<?php
28
33abstract class TitleArray implements Iterator {
40 static function newFromResult( $res ) {
41 $array = null;
42 if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) {
43 return null;
44 }
45 if ( $array === null ) {
47 }
48 return $array;
49 }
50
55 protected static function newFromResult_internal( $res ) {
56 $array = new TitleArrayFromResult( $res );
57 return $array;
58 }
59}
The TitleArray class only exists to provide the newFromResult method at pre- sent.
static newFromResult_internal( $res)
static newFromResult( $res)
Result wrapper for grabbing data queried from an IDatabase object.
$res
Definition database.txt:21