Provides methods to get and change the state of a message group. More...
Public Member Functions | |
__construct (IConnectionProvider $dbProvider, HookRunner $hookRunner) | |
getState (MessageGroup $group, string $code) | |
changeState (MessageGroup $group, string $code, string $newState, User $user) | |
getGroupPriority (string $group) | |
setGroupPriority (string $groupId, ?string $priority) | |
Store priority for message group. | |
getWorkflowState (string $groupId, string $languageCode) | |
Get the current workflow state for the given message group for the given language. | |
getWorkflowStatesForLanguage (string $languageCode, array $groupIds) | |
getWorkflowStatesForGroup (string $groupId) | |
Provides methods to get and change the state of a message group.
Definition at line 20 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::__construct | ( | IConnectionProvider | $dbProvider, |
HookRunner | $hookRunner ) |
Definition at line 27 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::changeState | ( | MessageGroup | $group, |
string | $code, | ||
string | $newState, | ||
User | $user ) |
Definition at line 47 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::getGroupPriority | ( | string | $group | ) |
Definition at line 86 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::getState | ( | MessageGroup | $group, |
string | $code ) |
Definition at line 33 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::getWorkflowState | ( | string | $groupId, |
string | $languageCode ) |
Get the current workflow state for the given message group for the given language.
string | $groupId | |
string | $languageCode |
Definition at line 144 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::getWorkflowStatesForGroup | ( | string | $groupId | ) |
Definition at line 164 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::getWorkflowStatesForLanguage | ( | string | $languageCode, |
array | $groupIds ) |
Definition at line 149 of file MessageGroupReviewStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReviewStore::setGroupPriority | ( | string | $groupId, |
?string | $priority ) |
Store priority for message group.
Abusing this table that was intended to store message group states
Definition at line 92 of file MessageGroupReviewStore.php.