BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
RawMessage Class Reference
Inheritance diagram for RawMessage:
Collaboration diagram for RawMessage:

Public Member Functions

 __construct ($text, $params=[])
 
 fetchMessage ()
 
- Public Member Functions inherited from Message
 __construct ($key, $params=[], Language $language=null)
 
 serialize ()
 
 unserialize ($serialized)
 
 isMultiKey ()
 
 getKeysToTry ()
 
 getKey ()
 
 getParams ()
 
 getFormat ()
 
 getLanguage ()
 
 getTitle ()
 
 params ()
 
 rawParams ()
 
 numParams ()
 
 durationParams ()
 
 expiryParams ()
 
 timeperiodParams ()
 
 sizeParams ()
 
 bitrateParams ()
 
 plaintextParams ()
 
 setContext (IContextSource $context)
 
 inLanguage ($lang)
 
 inContentLanguage ()
 
 setInterfaceMessageFlag ($interface)
 
 useDatabase ($useDatabase)
 
 title ($title)
 
 content ()
 
 toString ()
 
 __toString ()
 
 parse ()
 
 text ()
 
 plain ()
 
 parseAsBlock ()
 
 escaped ()
 
 exists ()
 
 isBlank ()
 
 isDisabled ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Message
static newFromKey ($key)
 
static newFromSpecifier ($value)
 
static newFallbackSequence ()
 
static rawParam ($raw)
 
static numParam ($num)
 
static durationParam ($duration)
 
static expiryParam ($expiry)
 
static timeperiodParam ($period)
 
static sizeParam ($size)
 
static bitrateParam ($bitrate)
 
static plaintextParam ($plaintext)
 
- Protected Member Functions inherited from Message
 replaceParameters ($message, $type= 'before')
 
 extractParam ($param)
 
 parseText ($string)
 
 transformText ($string)
 
 fetchMessage ()
 
 formatPlaintext ($plaintext)
 
- Protected Attributes inherited from Message
 $interface = true
 
 $language = false
 
 $key
 
 $keysToTry
 
 $parameters = []
 
 $format = 'parse'
 
 $useDatabase = true
 
 $title = null
 
 $content = null
 
 $message
 

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

Constructor & Destructor Documentation

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

Member Function Documentation

RawMessage::fetchMessage ( )

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

Returns
string

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