MediaWiki REL1_39
|
The MediaWiki-specific implementation of ITextFormatter. More...
Public Member Functions | |
__construct (string $langCode, Converter $converter, string $format=Message::FORMAT_TEXT) | |
Construct a TextFormatter. | |
format (MessageValue $mv) | |
Convert a MessageValue to text. | |
getLangCode () | |
Get the internal language code in which format() is. | |
The MediaWiki-specific implementation of ITextFormatter.
Definition at line 12 of file TextFormatter.php.
MediaWiki\Message\TextFormatter::__construct | ( | string | $langCode, |
Converter | $converter, | ||
string | $format = Message::FORMAT_TEXT ) |
Construct a TextFormatter.
The type signature may change without notice as dependencies are added to the constructor. External callers should use MediaWikiServices::getMessageFormatterFactory()
string | $langCode | |
Converter | $converter | |
string | $format |
Definition at line 34 of file TextFormatter.php.
References MediaWiki\Message\TextFormatter\format().
MediaWiki\Message\TextFormatter::format | ( | MessageValue | $message | ) |
Convert a MessageValue to text.
The result is not safe for use as raw HTML.
MessageValue | $message |
Implements Wikimedia\Message\ITextFormatter.
Definition at line 48 of file TextFormatter.php.
References MediaWiki\Message\TextFormatter\format().
Referenced by MediaWiki\Message\TextFormatter\__construct(), and MediaWiki\Message\TextFormatter\format().
MediaWiki\Message\TextFormatter::getLangCode | ( | ) |
Get the internal language code in which format() is.
Implements Wikimedia\Message\ITextFormatter.
Definition at line 44 of file TextFormatter.php.