Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter Class Reference

Public Member Functions

 __construct (private readonly GroupSynchronizationCache $groupSynchronizationCache, private readonly JobQueueGroup $jobQueueGroup, private readonly LoggerInterface $logger, private readonly MessageIndex $messageIndex, private readonly TitleFactory $titleFactory, private readonly MessageGroupSubscription $messageGroupSubscription, ServiceOptions $options)
 
 import (array $changeData, string $name, int $importStrategy)
 
 canImportGroup (MessageGroup $group, bool $skipGroupSyncCache)
 

Public Attributes

const IMPORT_NONE = 1
 
const IMPORT_SAFE = 2
 
const IMPORT_NON_RENAMES = 3
 
const CONSTRUCTOR_OPTIONS = [ 'TranslateGroupSynchronizationCache' ]
 

Detailed Description

Definition at line 29 of file ExternalMessageSourceStateImporter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::__construct ( private readonly GroupSynchronizationCache $groupSynchronizationCache,
private readonly JobQueueGroup $jobQueueGroup,
private readonly LoggerInterface $logger,
private readonly MessageIndex $messageIndex,
private readonly TitleFactory $titleFactory,
private readonly MessageGroupSubscription $messageGroupSubscription,
ServiceOptions $options )

Definition at line 41 of file ExternalMessageSourceStateImporter.php.

Member Function Documentation

◆ canImportGroup()

MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::canImportGroup ( MessageGroup $group,
bool $skipGroupSyncCache )

Definition at line 162 of file ExternalMessageSourceStateImporter.php.

◆ import()

MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::import ( array $changeData,
string $name,
int $importStrategy )
Parameters
MessageSourceChange[]$changeData
string$name
int$importStrategy
Returns
array

Definition at line 60 of file ExternalMessageSourceStateImporter.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::CONSTRUCTOR_OPTIONS = [ 'TranslateGroupSynchronizationCache' ]

Definition at line 39 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_NON_RENAMES

const MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::IMPORT_NON_RENAMES = 3

Definition at line 38 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_NONE

const MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::IMPORT_NONE = 1

Definition at line 33 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_SAFE

const MediaWiki\Extension\Translate\Synchronization\ExternalMessageSourceStateImporter::IMPORT_SAFE = 2

Definition at line 35 of file ExternalMessageSourceStateImporter.php.


The documentation for this class was generated from the following file: