MediaWiki REL1_37
|
The MediaWiki-specific implementation of IMessageFormatterFactory. More...
Public Member Functions | ||||
__construct (string $format=Message::FORMAT_TEXT) | ||||
Required parameters may be added to this function without deprecation. | ||||
getTextFormatter ( $langCode) | ||||
Get a text message formatter for a given language.
| ||||
Private Attributes | |
string | $format |
array | $textFormatters = [] |
The MediaWiki-specific implementation of IMessageFormatterFactory.
Definition at line 12 of file MessageFormatterFactory.php.
MediaWiki\Message\MessageFormatterFactory::__construct | ( | string | $format = Message::FORMAT_TEXT | ) |
Required parameters may be added to this function without deprecation.
External callers should use MediaWikiServices::getMessageFormatterFactory().
string | $format | which if the Message::FORMAT_* to use in the formatters. |
Definition at line 27 of file MessageFormatterFactory.php.
References MediaWiki\Message\MessageFormatterFactory\$format.
MediaWiki\Message\MessageFormatterFactory::getTextFormatter | ( | $langCode | ) |
Get a text message formatter for a given language.
string | $langCode | The language code |
Implements Wikimedia\Message\IMessageFormatterFactory.
Definition at line 34 of file MessageFormatterFactory.php.
|
private |
Definition at line 15 of file MessageFormatterFactory.php.
Referenced by MediaWiki\Message\MessageFormatterFactory\__construct().
|
private |
Definition at line 18 of file MessageFormatterFactory.php.