Groups multiple message groups together as one big group. More...
Public Member Functions | |
exists () | |
If this function returns false, the message group is ignored and treated like it would not be configured at all. | |
getMangler () | |
Return a message mangler or null. | |
getGroups () | |
initCollection ($code) | |
Initialises a message collection with the given language code, message definitions and message tags. | |
getMessage ($key, $code) | |
Returns the definition or translation for given message key in given language code. | |
Protected Member Functions | |
loadMessagesFromCache ($groups) |
Groups multiple message groups together as one big group.
Limitations:
Definition at line 18 of file AggregateMessageGroup.php.
AggregateMessageGroup::exists | ( | ) |
If this function returns false, the message group is ignored and treated like it would not be configured at all.
Useful for graceful degradation. Try to keep the check fast to avoid performance problems.
Implements MessageGroup.
Definition at line 19 of file AggregateMessageGroup.php.
AggregateMessageGroup::getGroups | ( | ) |
Definition at line 47 of file AggregateMessageGroup.php.
Referenced by initCollection(), and MessageGroups::subGroups().
AggregateMessageGroup::getMangler | ( | ) |
Return a message mangler or null.
Reimplemented from MessageGroupBase.
Definition at line 39 of file AggregateMessageGroup.php.
AggregateMessageGroup::getMessage | ( | $ | key, | |
$ | code | |||
) |
Returns the definition or translation for given message key in given language code.
$key | string | |
$code | string |
Reimplemented from MessageGroupBase.
Definition at line 113 of file AggregateMessageGroup.php.
AggregateMessageGroup::initCollection | ( | $ | code | ) |
Initialises a message collection with the given language code, message definitions and message tags.
$code |
Reimplemented from MessageGroupBase.
Definition at line 102 of file AggregateMessageGroup.php.
AggregateMessageGroup::loadMessagesFromCache | ( | $ | groups | ) | [protected] |
Definition at line 78 of file AggregateMessageGroup.php.
Referenced by initCollection().