Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory Class Reference

Creates FileBasedMessageGroup message groups. More...

Inheritance diagram for MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory:
MediaWiki\Extension\Translate\MessageGroupProcessing\CachedMessageGroupFactory

Public Member Functions

 __construct (MessageGroupConfigurationParser $messageGroupConfigurationParser, ServiceOptions $serviceOptions)
 
 getCacheKey ()
 
 getCacheVersion ()
 
 getDependencies ()
 
 getData (IReadableDatabase $db)
 
 createGroups ( $data)
 

Public Attributes

const SERVICE_OPTIONS = [ 'TranslateGroupFiles' ]
 

Detailed Description

Creates FileBasedMessageGroup message groups.

Since
2024.06
Author
Niklas Laxström @license GPL-2.0-or-later

Definition at line 19 of file FileBasedMessageGroupFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::__construct ( MessageGroupConfigurationParser $messageGroupConfigurationParser,
ServiceOptions $serviceOptions )

Definition at line 26 of file FileBasedMessageGroupFactory.php.

Member Function Documentation

◆ createGroups()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::createGroups ( $data)
Parameters
mixed$dataData returned by getData()
Returns
MessageGroup[]

Implements MediaWiki\Extension\Translate\MessageGroupProcessing\CachedMessageGroupFactory.

Definition at line 83 of file FileBasedMessageGroupFactory.php.

◆ getCacheKey()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::getCacheKey ( )

◆ getCacheVersion()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::getCacheVersion ( )

◆ getData()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::getData ( IReadableDatabase $db)

◆ getDependencies()

MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::getDependencies ( )

Member Data Documentation

◆ SERVICE_OPTIONS

const MediaWiki\Extension\Translate\MessageGroupConfiguration\FileBasedMessageGroupFactory::SERVICE_OPTIONS = [ 'TranslateGroupFiles' ]

Definition at line 20 of file FileBasedMessageGroupFactory.php.


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