MediaWiki REL1_37
|
Converter between Message and MessageValue. More...
Public Member Functions | |
convertMessage (Message $m) | |
Convert a Message to a MessageValue. | |
convertMessageValue (MessageValue $mv) | |
Convert a MessageValue to a Message. | |
createMessage ( $key) | |
Allow the Message class to be mocked in tests by constructing objects in a protected method. | |
Private Member Functions | |
convertMessageParam (MessageParam $param) | |
Convert a MessageParam to a Message parameter. | |
convertParam ( $param) | |
Convert a Message parameter to a MessageParam. | |
Static Private Member Functions | |
static | getTypes () |
Return the ParamType constants. | |
Static Private Attributes | |
static string[] null | $constants = null |
ParamType constants. | |
MediaWiki\Message\Converter::convertMessage | ( | Message | $m | ) |
Convert a Message to a MessageValue.
Message | $m |
Definition at line 53 of file Converter.php.
References MediaWiki\Message\Converter\convertParam(), Message\getKey(), and Message\getParams().
Referenced by MediaWiki\Message\Converter\convertParam().
|
private |
Convert a MessageParam to a Message parameter.
MessageParam | $param |
Definition at line 109 of file Converter.php.
References MediaWiki\Message\Converter\convertMessageParam(), MediaWiki\Message\Converter\convertMessageValue(), Wikimedia\Message\MessageParam\getType(), Wikimedia\Message\MessageParam\getValue(), and Message\listParam().
Referenced by MediaWiki\Message\Converter\convertMessageParam(), and MediaWiki\Message\Converter\convertMessageValue().
MediaWiki\Message\Converter::convertMessageValue | ( | MessageValue | $mv | ) |
Convert a MessageValue to a Message.
MessageValue | $mv |
Definition at line 96 of file Converter.php.
References MediaWiki\Message\Converter\convertMessageParam(), MediaWiki\Message\Converter\createMessage(), Wikimedia\Message\MessageValue\getKey(), and Wikimedia\Message\MessageValue\getParams().
Referenced by MediaWiki\Message\Converter\convertMessageParam().
|
private |
Convert a Message parameter to a MessageParam.
array | string | int | $param |
Definition at line 66 of file Converter.php.
References $type, MediaWiki\Message\Converter\convertMessage(), and MediaWiki\Message\Converter\convertParam().
Referenced by MediaWiki\Message\Converter\convertMessage(), and MediaWiki\Message\Converter\convertParam().
MediaWiki\Message\Converter::createMessage | ( | $key | ) |
Allow the Message class to be mocked in tests by constructing objects in a protected method.
string | $key |
Definition at line 44 of file Converter.php.
Referenced by MediaWiki\Message\Converter\convertMessageValue().
|
staticprivate |
Return the ParamType constants.
Definition at line 27 of file Converter.php.
References MediaWiki\Message\Converter\$constants.
|
staticprivate |
ParamType constants.
Definition at line 21 of file Converter.php.
Referenced by MediaWiki\Message\Converter\getTypes().