Loads AggregateMessageGroup, and handles the related cache. More...
Public Member Functions | |
__construct (IDatabase $db, MessageGroupWANCache $cache) | |
getGroups () | |
Fetches the AggregateMessageGroups. | |
getCacheData () | |
Get all the aggregate messages groups defined in translate_metadata table and return their configuration. | |
loadAggregateGroups () | |
Loads AggregateMessageGroup from the database. | |
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 (IDatabase $db=null, 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 | |
initGroupsFromConf (array $groups) | |
clearProcessCache () | |
Clears the process cache, mainly the cached groups property. | |
Protected Attributes | |
$cache | |
$db | |
$groups | |
Loads AggregateMessageGroup, and handles the related cache.
Definition at line 18 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::__construct | ( | IDatabase | $db, |
MessageGroupWANCache | $cache ) |
Definition at line 31 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::clearCache | ( | ) |
Clear values from the cache.
Implements CachedMessageGroupLoader.
Definition at line 150 of file AggregateMessageGroupLoader.php.
|
protected |
Clears the process cache, mainly the cached groups property.
Definition at line 158 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::getCacheData | ( | ) |
Get all the aggregate messages groups defined in translate_metadata table and return their configuration.
Definition at line 92 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::getGroups | ( | ) |
Fetches the AggregateMessageGroups.
Reimplemented from MessageGroupLoader.
Definition at line 49 of file AggregateMessageGroupLoader.php.
|
static |
Return an instance of this class using the parameters, if passed, else initialize the necessary dependencies and return an instance.
IDatabase | null | $db | |
WANObjectCache | null | $cache |
Definition at line 78 of file AggregateMessageGroupLoader.php.
|
protected |
array[] | $groups |
Definition at line 132 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::loadAggregateGroups | ( | ) |
Loads AggregateMessageGroup from the database.
Definition at line 122 of file AggregateMessageGroupLoader.php.
AggregateMessageGroupLoader::recache | ( | ) |
Clear and refill the cache with the latest values.
Implements CachedMessageGroupLoader.
Definition at line 139 of file AggregateMessageGroupLoader.php.
|
static |
Hook: TranslateInitGroupLoaders.
array | &$groupLoader | |
array | $deps | Dependencies |
Definition at line 63 of file AggregateMessageGroupLoader.php.
|
protected |
Definition at line 25 of file AggregateMessageGroupLoader.php.
|
protected |
Definition at line 27 of file AggregateMessageGroupLoader.php.
|
protected |
Definition at line 29 of file AggregateMessageGroupLoader.php.