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

Public Member Functions

 __construct (GroupSynchronizationCache $groupSynchronizationCache, JobQueueGroup $jobQueueGroup, LoggerInterface $logger, MessageIndex $messageIndex, TitleFactory $titleFactory, 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 28 of file ExternalMessageSourceStateImporter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 45 of file ExternalMessageSourceStateImporter.php.

Member Function Documentation

◆ canImportGroup()

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

Definition at line 159 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 70 of file ExternalMessageSourceStateImporter.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

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

Definition at line 43 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_NON_RENAMES

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

Definition at line 42 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_NONE

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

Definition at line 37 of file ExternalMessageSourceStateImporter.php.

◆ IMPORT_SAFE

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

Definition at line 39 of file ExternalMessageSourceStateImporter.php.


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