MediaWiki REL1_34
MessageFormatterFactory.php
Go to the documentation of this file.
1<?php
2
4
7
12 private $textFormatters = [];
13
20 public function __construct() {
21 }
22
23 public function getTextFormatter( $langCode ): ITextFormatter {
24 if ( !isset( $this->textFormatters[$langCode] ) ) {
25 $this->textFormatters[$langCode] = new TextFormatter( $langCode );
26 }
27 return $this->textFormatters[$langCode];
28 }
29}
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Definition Setup.php:57
The MediaWiki-specific implementation of IMessageFormatterFactory.
getTextFormatter( $langCode)
Get a text message formatter for a given language.
__construct()
Required parameters may be added to this function without deprecation.
The MediaWiki-specific implementation of ITextFormatter.
A simple factory providing a message formatter for a given language code.