MediaWiki
REL1_22
|
Wrapper allowing us to handle a system message as a Content object. More...
Public Member Functions | |
__construct ($msg, $params=null) | |
copy () | |
getHtml () | |
Returns the message as rendered 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 as rendered HTML. | |
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 programatically.
Definition at line 36 of file MessageContent.php.
MessageContent::__construct | ( | $ | msg, |
$ | params = null |
||
) |
Message | String | $msg | A Message object, or a message key |
array | null | $params | An optional array of message parameters |
Definition at line 46 of file MessageContent.php.
Implements Content.
Definition at line 124 of file MessageContent.php.
Returns the message as rendered 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 |
||
) |
Implements Content.
Definition at line 143 of file MessageContent.php.
Implements Content.
Definition at line 115 of file MessageContent.php.
Implements Content.
Definition at line 92 of file MessageContent.php.
MessageContent::getTextForSummary | ( | $ | maxlength = 250 | ) |
Implements Content.
Definition at line 106 of file MessageContent.php.
Returns the message as rendered HTML.
Definition at line 75 of file MessageContent.php.
Implements Content.
Definition at line 99 of file MessageContent.php.
MessageContent::isCountable | ( | $ | hasLinks = null | ) |
Implements Content.
Definition at line 134 of file MessageContent.php.
Message MessageContent::$mMessage [protected] |
Definition at line 40 of file MessageContent.php.