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}
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.
if($IP===false)
A simple factory providing a message formatter for a given language code.