55 if ( $this->sites ===
null ) {
84 foreach (
$data[
'sites'] as $siteArray ) {
97 throw new MWException(
'SiteList cache file not found.' );
106 throw new MWException(
'SiteStore json cache data is invalid.' );
121 $site->setGlobalId(
$data[
'globalid'] );
122 $site->setForward(
$data[
'forward'] );
123 $site->setGroup(
$data[
'group'] );
124 $site->setLanguageCode(
$data[
'language'] );
125 $site->setSource(
$data[
'source'] );
126 $site->setExtraData(
$data[
'data'] );
127 $site->setExtraConfig(
$data[
'config'] );
129 foreach (
$data[
'identifiers'] as $identifier ) {
130 $site->addLocalId( $identifier[
'type'], $identifier[
'key'] );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Provides a file-based cache of a SiteStore, using a json file.
newSiteFromArray(array $data)
hasSite( $globalSiteId)
Returns if the list contains the site with the provided global site identifier.
getSite( $globalSiteId)
Returns the Site with the provided global site identifier.
static newForType( $siteType)
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))