MediaWiki  1.28.0
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

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

SitesCacheFileBuilder::build ( )

Definition at line 46 of file SitesCacheFileBuilder.php.

References cacheSites().

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

Definition at line 98 of file SitesCacheFileBuilder.php.

References as, and Site\getLocalIds().

Referenced by getSiteAsArray().

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

Definition at line 57 of file SitesCacheFileBuilder.php.

References as, and getSiteAsArray().

Referenced by build().

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

Definition at line 79 of file SitesCacheFileBuilder.php.

References as, buildLocalIdentifiers(), Site\serialize(), and unserialize().

Referenced by cacheSites().

Member Data Documentation

string SitesCacheFileBuilder::$cacheFile
private

Definition at line 35 of file SitesCacheFileBuilder.php.

Referenced by __construct().

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: