MediaWiki REL1_33
|
Provides a file-based cache of a SiteStore, using a json file. More...
Public Member Functions | |
__construct ( $cacheFile) | |
getSite ( $globalId) | |
getSites () | |
Private Member Functions | |
loadJsonFile () | |
loadSitesFromCache () | |
newSiteFromArray (array $data) | |
Private Attributes | |
string | $cacheFile |
SiteList | $sites = null |
Provides a file-based cache of a SiteStore, using a json file.
Definition at line 29 of file FileBasedSiteLookup.php.
FileBasedSiteLookup::__construct | ( | $cacheFile | ) |
string | $cacheFile |
Definition at line 44 of file FileBasedSiteLookup.php.
References $cacheFile, and wfDeprecated().
FileBasedSiteLookup::getSite | ( | $globalId | ) |
string | $globalId |
Implements SiteLookup.
Definition at line 69 of file FileBasedSiteLookup.php.
References $sites, SiteList\getSite(), getSites(), and SiteList\hasSite().
FileBasedSiteLookup::getSites | ( | ) |
Implements SiteLookup.
Definition at line 54 of file FileBasedSiteLookup.php.
References $sites, and loadSitesFromCache().
Referenced by getSite().
|
private |
MWException |
Definition at line 95 of file FileBasedSiteLookup.php.
Referenced by loadSitesFromCache().
|
private |
Definition at line 78 of file FileBasedSiteLookup.php.
References $data, $sites, loadJsonFile(), and newSiteFromArray().
Referenced by getSites().
|
private |
array | $data |
Definition at line 117 of file FileBasedSiteLookup.php.
References $data, and(), Site\newForType(), and Site\TYPE_UNKNOWN.
Referenced by loadSitesFromCache().
|
private |
Definition at line 39 of file FileBasedSiteLookup.php.
Referenced by __construct().
Definition at line 34 of file FileBasedSiteLookup.php.
Referenced by getSite(), getSites(), and loadSitesFromCache().