MediaWiki
REL1_31
SiteSQLStore.php
Go to the documentation of this file.
1
<?php
2
29
class
SiteSQLStore
{
30
46
public
static
function
newInstance
( $sitesTable =
null
,
BagOStuff
$cache
=
null
) {
47
if
( $sitesTable !==
null
) {
48
throw
new
InvalidArgumentException(
49
__METHOD__ .
': $sitesTable parameter is unused and must be null'
50
);
51
}
52
53
// NOTE: we silently ignore $cache for now, since some existing callers
54
// specify it. If we break compatibility with them, we could just as
55
// well just remove this class.
56
57
return \MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
58
}
59
60
}
BagOStuff
interface is intended to be more or less compatible with the PHP memcached client.
Definition
BagOStuff.php:47
SiteSQLStore
Definition
SiteSQLStore.php:29
SiteSQLStore\newInstance
static newInstance( $sitesTable=null, BagOStuff $cache=null)
Returns the global SiteStore instance.
Definition
SiteSQLStore.php:46
$cache
$cache
Definition
mcc.php:33
includes
site
SiteSQLStore.php
Generated on Mon Nov 25 2024 15:35:21 for MediaWiki by
1.10.0