MediaWiki REL1_31
SitesCacheFileBuilder Class Reference
Collaboration diagram for SitesCacheFileBuilder:

Public Member Functions

 __construct (SiteLookup $siteLookup, $cacheFile)
 
 build ()
 

Private Member Functions

 buildLocalIdentifiers (Site $site)
 
 cacheSites (array $sites)
 
 getSiteAsArray (Site $site)
 

Private Attributes

string $cacheFile
 
SiteLookup $siteLookup
 

Detailed Description

Definition at line 25 of file SitesCacheFileBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

SitesCacheFileBuilder::__construct ( SiteLookup $siteLookup,
$cacheFile )
Parameters
SiteLookup$siteLookup
string$cacheFile

Definition at line 41 of file SitesCacheFileBuilder.php.

References $cacheFile, and $siteLookup.

Member Function Documentation

◆ build()

SitesCacheFileBuilder::build ( )

Definition at line 46 of file SitesCacheFileBuilder.php.

References cacheSites().

◆ buildLocalIdentifiers()

SitesCacheFileBuilder::buildLocalIdentifiers ( Site $site)
private
Parameters
Site$site
Returns
array Site local identifiers

Definition at line 98 of file SitesCacheFileBuilder.php.

Referenced by getSiteAsArray().

◆ cacheSites()

SitesCacheFileBuilder::cacheSites ( array $sites)
private
Parameters
Site[]$sites
Exceptions
MWExceptionif in manualRecache mode
Returns
bool

Definition at line 57 of file SitesCacheFileBuilder.php.

References getSiteAsArray().

Referenced by build().

◆ getSiteAsArray()

SitesCacheFileBuilder::getSiteAsArray ( Site $site)
private
Parameters
Site$site
Returns
array

Definition at line 79 of file SitesCacheFileBuilder.php.

References buildLocalIdentifiers(), and unserialize().

Referenced by cacheSites().

Member Data Documentation

◆ $cacheFile

string SitesCacheFileBuilder::$cacheFile
private

Definition at line 35 of file SitesCacheFileBuilder.php.

Referenced by __construct().

◆ $siteLookup

SiteLookup SitesCacheFileBuilder::$siteLookup
private

Definition at line 30 of file SitesCacheFileBuilder.php.

Referenced by __construct().


The documentation for this class was generated from the following file: