Message group synchronization cache. More...
Public Member Functions | |
__construct (PersistentCache $cache, int $initialTimeoutSeconds=2400, int $incrementalTimeoutSeconds=600) | |
getGroupsInSync () | |
Get the groups currently in sync. | |
markGroupForSync (string $groupId) | |
Start synchronization process for a group and starts the expiry time. | |
getSyncEndTime (string $groupId) | |
endSync (string $groupId) | |
End synchronization for a group. | |
forceEndSync (string $groupId) | |
End synchronization for a group. | |
addMessages (string $groupId, MessageUpdateParameter ... $messageParams) | |
Add messages for a group to the cache. | |
isGroupBeingProcessed (string $groupId) | |
Check if the group is in synchronization. | |
getGroupMessages (string $groupId) | |
Return all messages in a group. | |
isMessageBeingProcessed (string $groupId, string $messageKey) | |
Check if a message is being processed. | |
getSynchronizationStatus (string $groupId) | |
Get the current synchronization status of the group. | |
removeMessages (string $groupId, string ... $messageKeys) | |
Remove messages from the cache. | |
addGroupErrors (GroupSynchronizationResponse $response) | |
getGroupsWithErrors () | |
Return the groups that have errors. | |
getGroupErrorInfo (string $groupId) | |
Fetch information about a particular group that has errors including messages that failed. | |
markGroupAsResolved (string $groupId) | |
Marks all messages in a group and the group itself as resolved. | |
markMessageAsResolved (string $groupId, string $messagePageName) | |
Marks errors for a message as resolved. | |
groupHasErrors (string $groupId) | |
Checks if the group has errors. | |
syncGroupErrors (string $groupId) | |
Checks if group has unresolved error messages. | |
getGroupsInReview () | |
Return groups that are in review. | |
markGroupAsInReview (string $groupId) | |
markGroupAsReviewed (string $groupId) | |
isGroupInReview (string $groupId) | |
extendGroupExpiryTime (string $groupId) | |
getGroupExpiryTime (string $groupId) | |
Message group synchronization cache.
Handles storage of data in the cache to track which groups are currently being synchronized. Stores:
Definition at line 37 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::__construct | ( | PersistentCache | $cache, |
int | $initialTimeoutSeconds = 2400, | ||
int | $incrementalTimeoutSeconds = 600 ) |
Definition at line 49 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::addGroupErrors | ( | GroupSynchronizationResponse | $response | ) |
Definition at line 208 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::addMessages | ( | string | $groupId, |
MessageUpdateParameter ... | $messageParams ) |
Add messages for a group to the cache.
Definition at line 116 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::endSync | ( | string | $groupId | ) |
End synchronization for a group.
Deletes the group key
Definition at line 97 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::extendGroupExpiryTime | ( | string | $groupId | ) |
Definition at line 398 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::forceEndSync | ( | string | $groupId | ) |
End synchronization for a group.
Deletes the group key and messages
Definition at line 110 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupErrorInfo | ( | string | $groupId | ) |
Fetch information about a particular group that has errors including messages that failed.
Definition at line 280 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupExpiryTime | ( | string | $groupId | ) |
Definition at line 428 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupMessages | ( | string | $groupId | ) |
Return all messages in a group.
string | $groupId |
Definition at line 144 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupsInReview | ( | ) |
Return groups that are in review.
Definition at line 365 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupsInSync | ( | ) |
Get the groups currently in sync.
Definition at line 67 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getGroupsWithErrors | ( | ) |
Return the groups that have errors.
Definition at line 263 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getSyncEndTime | ( | string | $groupId | ) |
Definition at line 91 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::getSynchronizationStatus | ( | string | $groupId | ) |
Get the current synchronization status of the group.
Does not perform any updates.
Definition at line 168 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::groupHasErrors | ( | string | $groupId | ) |
Checks if the group has errors.
Definition at line 342 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::isGroupBeingProcessed | ( | string | $groupId | ) |
Check if the group is in synchronization.
Definition at line 133 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::isGroupInReview | ( | string | $groupId | ) |
Definition at line 394 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::isMessageBeingProcessed | ( | string | $groupId, |
string | $messageKey ) |
Check if a message is being processed.
Definition at line 162 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::markGroupAsInReview | ( | string | $groupId | ) |
Definition at line 375 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::markGroupAsResolved | ( | string | $groupId | ) |
Marks all messages in a group and the group itself as resolved.
Definition at line 315 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::markGroupAsReviewed | ( | string | $groupId | ) |
Definition at line 388 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::markGroupForSync | ( | string | $groupId | ) |
Start synchronization process for a group and starts the expiry time.
Definition at line 78 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::markMessageAsResolved | ( | string | $groupId, |
string | $messagePageName ) |
Marks errors for a message as resolved.
Definition at line 329 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::removeMessages | ( | string | $groupId, |
string ... | $messageKeys ) |
Remove messages from the cache.
Definition at line 202 of file GroupSynchronizationCache.php.
MediaWiki\Extension\Translate\Synchronization\GroupSynchronizationCache::syncGroupErrors | ( | string | $groupId | ) |
Checks if group has unresolved error messages.
If not clears the group from error list
Definition at line 348 of file GroupSynchronizationCache.php.