|
static | preloadGroups (array $groups, string $caller) |
|
static | get (string $group, string $key) |
| Get a metadata value for the given group and key.
|
|
static | getWithDefaultValue (string $group, string $key, string $defaultValue) |
| Get a metadata value for the given group and key.
|
|
static | set (string $groupId, string $key, $value) |
| Set a metadata value for the given group and metadata key.
|
|
static | getSubgroups (string $groupId) |
| Wrapper for getting subgroups.
|
|
static | setSubgroups (string $groupId, array $subgroupIds) |
| Wrapper for setting subgroups.
|
|
static | deleteGroup (string $groupId) |
| Wrapper for deleting one wiki aggregate group at once.
|
|
static | isExcluded (string $groupId, string $code) |
|
static | loadBasicMetadataForTranslatablePages (array $groupIds, array $keys) |
| Do a query optimized for page list in Special:PageTranslation.
|
|
static | moveMetadata (string $oldGroupId, string $newGroupId, array $metadataKeysToMove) |
|
static | clearMetadata (string $groupId, array $metadataKeys) |
|
static | getGroupsWithSubgroups () |
| Get groups ids that have subgroups set up.
|
|
Definition at line 18 of file TranslateMetadata.php.
◆ clearMetadata()
static TranslateMetadata::clearMetadata |
( |
string | $groupId, |
|
|
array | $metadataKeys ) |
|
static |
◆ deleteGroup()
static TranslateMetadata::deleteGroup |
( |
string | $groupId | ) |
|
|
static |
◆ get()
static TranslateMetadata::get |
( |
string | $group, |
|
|
string | $key ) |
|
static |
Get a metadata value for the given group and key.
- Parameters
-
string | $group | The group name |
string | $key | Metadata key |
- Returns
- string|bool
Definition at line 57 of file TranslateMetadata.php.
◆ getGroupsWithSubgroups()
static TranslateMetadata::getGroupsWithSubgroups |
( |
| ) |
|
|
static |
◆ getSubgroups()
static TranslateMetadata::getSubgroups |
( |
string | $groupId | ) |
|
|
static |
◆ getWithDefaultValue()
static TranslateMetadata::getWithDefaultValue |
( |
string | $group, |
|
|
string | $key, |
|
|
string | $defaultValue ) |
|
static |
Get a metadata value for the given group and key.
If it does not exist, return the default value.
Definition at line 66 of file TranslateMetadata.php.
◆ isExcluded()
static TranslateMetadata::isExcluded |
( |
string | $groupId, |
|
|
string | $code ) |
|
static |
◆ loadBasicMetadataForTranslatablePages()
static TranslateMetadata::loadBasicMetadataForTranslatablePages |
( |
array | $groupIds, |
|
|
array | $keys ) |
|
static |
Do a query optimized for page list in Special:PageTranslation.
- Parameters
-
string[] | $groupIds | |
string[] | $keys | Which metadata keys to load |
- Returns
- array<string,array<string,string>>
Definition at line 196 of file TranslateMetadata.php.
◆ moveMetadata()
static TranslateMetadata::moveMetadata |
( |
string | $oldGroupId, |
|
|
string | $newGroupId, |
|
|
array | $metadataKeysToMove ) |
|
static |
◆ preloadGroups()
static TranslateMetadata::preloadGroups |
( |
array | $groups, |
|
|
string | $caller ) |
|
static |
- Parameters
-
string[] | $groups | List of translate groups |
string | $caller | |
Definition at line 27 of file TranslateMetadata.php.
◆ set()
static TranslateMetadata::set |
( |
string | $groupId, |
|
|
string | $key, |
|
|
| $value ) |
|
static |
Set a metadata value for the given group and metadata key.
Updates the value if already existing.
- Parameters
-
string | $groupId | The group id |
string | $key | Metadata key |
string | false | $value | Metadata value, false deletes from cache |
Definition at line 80 of file TranslateMetadata.php.
◆ setSubgroups()
static TranslateMetadata::setSubgroups |
( |
string | $groupId, |
|
|
array | $subgroupIds ) |
|
static |
The documentation for this class was generated from the following file: