MediaWiki  1.30.0
RawMessage Class Reference

Variant of the Message class. More...

Inheritance diagram for RawMessage:
Collaboration diagram for RawMessage:

Public Member Functions

 __construct ( $text, $params=[])
 Call the parent constructor, then store the key as the message. More...
 
 fetchMessage ()
 Fetch the message (in this case, the key). More...
 

Detailed Description

Variant of the Message class.

Rather than treating the message key as a lookup value (which is passed to the MessageCache and translated as necessary), a RawMessage key is treated as the actual message.

All other functionality (parsing, escaping, etc.) is preserved.

Since
1.21

Definition at line 34 of file RawMessage.php.

Constructor & Destructor Documentation

◆ __construct()

RawMessage::__construct (   $text,
  $params = [] 
)

Call the parent constructor, then store the key as the message.

See also
Message::__construct
Parameters
string$textMessage to use.
array$paramsParameters for the message.
Exceptions
InvalidArgumentException

Definition at line 47 of file RawMessage.php.

References $params, and message.

Member Function Documentation

◆ fetchMessage()

RawMessage::fetchMessage ( )

Fetch the message (in this case, the key).

Returns
string

Definition at line 63 of file RawMessage.php.

References message.


The documentation for this class was generated from the following file: