MediaWiki REL1_34
MediaWiki\Message\MessageFormatterFactory Class Reference

The MediaWiki-specific implementation of IMessageFormatterFactory. More...

Inheritance diagram for MediaWiki\Message\MessageFormatterFactory:
Collaboration diagram for MediaWiki\Message\MessageFormatterFactory:

Public Member Functions

 __construct ()
 Required parameters may be added to this function without deprecation.
 
 getTextFormatter ( $langCode)
 Get a text message formatter for a given language.
 

Private Attributes

 $textFormatters = []
 

Detailed Description

The MediaWiki-specific implementation of IMessageFormatterFactory.

Definition at line 11 of file MessageFormatterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Message\MessageFormatterFactory::__construct ( )

Required parameters may be added to this function without deprecation.

External callers should use MediaWikiServices::getMessageFormatterFactory().

Definition at line 20 of file MessageFormatterFactory.php.

Member Function Documentation

◆ getTextFormatter()

MediaWiki\Message\MessageFormatterFactory::getTextFormatter (   $langCode)

Get a text message formatter for a given language.

Parameters
string$langCodeThe language code
Returns
ITextFormatter

Implements Wikimedia\Message\IMessageFormatterFactory.

Definition at line 23 of file MessageFormatterFactory.php.

Member Data Documentation

◆ $textFormatters

MediaWiki\Message\MessageFormatterFactory::$textFormatters = []
private

Definition at line 12 of file MessageFormatterFactory.php.


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