MediaWiki
REL1_30
TitleArray.php
Go to the documentation of this file.
1
<?php
27
use
Wikimedia\Rdbms\ResultWrapper
;
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
Wikimedia\Rdbms\ResultWrapper
Result wrapper for grabbing data queried from an IDatabase object.
Definition
ResultWrapper.php:24
$res
$res
Definition
database.txt:21
includes
TitleArray.php
Generated on Mon Nov 25 2024 15:43:01 for MediaWiki by
1.10.0