Loads FileBasedMessageGroup, and handles the related cache. More...
Public Member Functions | |
__construct (MessageGroupWANCache $cache) | |
getGroups () | |
Fetches FileBasedMessageGroups. | |
getCacheData () | |
Generates data to be stored in the cache. | |
recache () | |
Clear and refill the cache with the latest values. | |
clearCache () | |
Clear values from the cache. | |
Public Member Functions inherited from MessageGroupLoader | |
isExpired (DependencyWrapper $wrapper) | |
Determines if dependencies have expired. | |
Static Public Member Functions | |
static | registerLoader (array &$groupLoader, array $deps) |
Hook: TranslateInitGroupLoaders. | |
static | getInstance (WANObjectCache $cache=null) |
Return an instance of this class using the parameters, if passed, else initialize the necessary dependencies and return an instance. | |
Protected Member Functions | |
clearProcessCache () | |
Clears the process cache, mainly the cached groups property. | |
initFromCacheValue (array $cacheData) | |
Initialize groups and autoload classes from the cache value. | |
Protected Attributes | |
$groups | |
$cache | |
Loads FileBasedMessageGroup, and handles the related cache.
Definition at line 17 of file FileBasedMessageGroupLoader.php.
FileBasedMessageGroupLoader::__construct | ( | MessageGroupWANCache | $cache | ) |
Definition at line 31 of file FileBasedMessageGroupLoader.php.
FileBasedMessageGroupLoader::clearCache | ( | ) |
Clear values from the cache.
Implements CachedMessageGroupLoader.
Definition at line 147 of file FileBasedMessageGroupLoader.php.
|
protected |
Clears the process cache, mainly the cached groups property.
Definition at line 155 of file FileBasedMessageGroupLoader.php.
FileBasedMessageGroupLoader::getCacheData | ( | ) |
Generates data to be stored in the cache.
Definition at line 92 of file FileBasedMessageGroupLoader.php.
FileBasedMessageGroupLoader::getGroups | ( | ) |
Fetches FileBasedMessageGroups.
Reimplemented from MessageGroupLoader.
Definition at line 49 of file FileBasedMessageGroupLoader.php.
|
static |
Return an instance of this class using the parameters, if passed, else initialize the necessary dependencies and return an instance.
WANObjectCache | null | $cache |
Definition at line 79 of file FileBasedMessageGroupLoader.php.
|
protected |
Initialize groups and autoload classes from the cache value.
array | $cacheData |
Definition at line 164 of file FileBasedMessageGroupLoader.php.
FileBasedMessageGroupLoader::recache | ( | ) |
Clear and refill the cache with the latest values.
Implements CachedMessageGroupLoader.
Definition at line 134 of file FileBasedMessageGroupLoader.php.
|
static |
Hook: TranslateInitGroupLoaders.
array | &$groupLoader | |
array | $deps | Dependencies |
Definition at line 66 of file FileBasedMessageGroupLoader.php.
|
protected |
Definition at line 29 of file FileBasedMessageGroupLoader.php.
|
protected |
Definition at line 27 of file FileBasedMessageGroupLoader.php.