MediaWiki
REL1_31
TitleArray.php
Go to the documentation of this file.
1
<?php
27
use
Wikimedia\Rdbms\IResultWrapper
;
28
33
abstract
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
) {
46
$array =
self::newFromResult_internal
(
$res
);
47
}
48
return
$array;
49
}
50
55
protected
static
function
newFromResult_internal
(
$res
) {
56
$array =
new
TitleArrayFromResult
(
$res
);
57
return
$array;
58
}
59
}
TitleArrayFromResult
Definition
TitleArrayFromResult.php:29
TitleArray
The TitleArray class only exists to provide the newFromResult method at pre- sent.
Definition
TitleArray.php:33
TitleArray\newFromResult_internal
static newFromResult_internal( $res)
Definition
TitleArray.php:55
TitleArray\newFromResult
static newFromResult( $res)
Definition
TitleArray.php:40
$res
$res
Definition
database.txt:21
Wikimedia\Rdbms\IResultWrapper
Result wrapper for grabbing data queried from an IDatabase object.
Definition
IResultWrapper.php:24
includes
TitleArray.php
Generated on Mon Nov 25 2024 15:35:33 for MediaWiki by
1.10.0