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

Creates message groups from the TranslatePostInitGroupsHook. More...

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

Public Member Functions

 __construct (HookRunner $hookRunner)
 
 getCacheKey ()
 
 getCacheVersion ()
 
 getDependencies ()
 
 getData (IReadableDatabase $db)
 
 createGroups ( $data)
 

Detailed Description

Creates message groups from the TranslatePostInitGroupsHook.

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

Definition at line 17 of file HookDefinedMessageGroupFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupConfiguration\HookDefinedMessageGroupFactory::__construct ( HookRunner $hookRunner)

Definition at line 22 of file HookDefinedMessageGroupFactory.php.

Member Function Documentation

◆ createGroups()

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

Implements MediaWiki\Extension\Translate\MessageGroupProcessing\CachedMessageGroupFactory.

Definition at line 56 of file HookDefinedMessageGroupFactory.php.

◆ getCacheKey()

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

◆ getCacheVersion()

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

◆ getData()

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

◆ getDependencies()

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

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