Contains logic to manage aggregate groups and their subgroups.
More...
Contains logic to manage aggregate groups and their subgroups.
- Author
- Abijeet Patro @license GPL-2.0-or-later
- Since
- 2024.06
Definition at line 21 of file AggregateGroupManager.php.
◆ __construct()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::__construct |
( |
private readonly TitleFactory | $titleFactory, |
|
|
private readonly MessageGroupMetadata | $messageGroupMetadata ) |
◆ add()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::add |
( |
string | $name, |
|
|
string | $description, |
|
|
?string | $languageCode ) |
◆ associate()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::associate |
( |
string | $aggregateGroupId, |
|
|
array | $newSubgroupIds ) |
- Parameters
-
| string | $aggregateGroupId | |
| string[] | $newSubgroupIds | |
- Returns
- string[] List of subgroup ids that were associated
- Exceptions
-
| AggregateGroupAssociationFailure | |
| AggregateGroupLanguageMismatchException | |
| AggregateGroupNotFoundException | |
Definition at line 86 of file AggregateGroupManager.php.
◆ disassociate()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::disassociate |
( |
string | $aggregateGroupId, |
|
|
array | $subgroupIds ) |
- Parameters
-
| string | $aggregateGroupId | |
| string[] | $subgroupIds | |
- Returns
- string[] List of subgroup ids that were dis-associated
Definition at line 136 of file AggregateGroupManager.php.
◆ getAll()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::getAll |
( |
| ) |
|
◆ getTargetTitleByGroup()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::getTargetTitleByGroup |
( |
MessageGroup | $group | ) |
|
◆ getTargetTitleByGroupId()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::getTargetTitleByGroupId |
( |
string | $groupId | ) |
|
◆ hasGroupsSupportingAggregation()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::hasGroupsSupportingAggregation |
( |
| ) |
|
◆ supportsAggregation()
| MediaWiki\Extension\Translate\MessageGroupProcessing\AggregateGroupManager::supportsAggregation |
( |
MessageGroup | $group | ) |
|
The documentation for this class was generated from the following file: