MediaWiki
REL1_24
|
Wrapper allowing us to handle a system message as a Content object. More...
Public Member Functions | |
__construct ($msg, $params=null) | |
copy () | |
getHtml () | |
Fully parse the text from wikitext to HTML. | |
getNativeData () | |
Returns the message object, with any parameters already substituted. | |
getParserOutput (Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true) | |
getSize () | |
getTextForSearchIndex () | |
getTextForSummary ($maxlength=250) | |
getWikitext () | |
Returns the message text. | |
getWikitextForTransclusion () | |
isCountable ($hasLinks=null) | |
Protected Attributes | |
Message | $mMessage |
Wrapper allowing us to handle a system message as a Content object.
Note that this is generally *not* used to represent content from the MediaWiki namespace, and that there is no MessageContentHandler. MessageContent is just intended as glue for wrapping a message programmatically.
Definition at line 36 of file MessageContent.php.
MessageContent::__construct | ( | $ | msg, |
$ | params = null |
||
) |
Message | string | $msg | A Message object, or a message key. |
string[] | $params An optional array of message parameters. |
Definition at line 46 of file MessageContent.php.
Implements Content.
Definition at line 132 of file MessageContent.php.
Fully parse the text from wikitext to HTML.
Definition at line 66 of file MessageContent.php.
Returns the message object, with any parameters already substituted.
Implements Content.
Definition at line 84 of file MessageContent.php.
MessageContent::getParserOutput | ( | Title $ | title, |
$ | revId = null , |
||
ParserOptions $ | options = null , |
||
$ | generateHtml = true |
||
) |
Title | $title | Unused. |
int | $revId | Unused. |
ParserOptions | $options | Unused. |
bool | $generateHtml | Whether to generate HTML (default: true). |
Reimplemented from AbstractContent.
Definition at line 158 of file MessageContent.php.
Implements Content.
Definition at line 123 of file MessageContent.php.
Implements Content.
Definition at line 94 of file MessageContent.php.
MessageContent::getTextForSummary | ( | $ | maxlength = 250 | ) |
int | $maxlength | Maximum length of the summary text, defaults to 250. |
Implements Content.
Definition at line 114 of file MessageContent.php.
Returns the message text.
{{-transformation is done.
Definition at line 75 of file MessageContent.php.
Implements Content.
Definition at line 103 of file MessageContent.php.
MessageContent::isCountable | ( | $ | hasLinks = null | ) |
bool | $hasLinks |
Implements Content.
Definition at line 144 of file MessageContent.php.
Message MessageContent::$mMessage [protected] |
Definition at line 40 of file MessageContent.php.