MediaWiki
REL1_22
|
Content for JavaScript pages. More...
Public Member Functions | |
__construct ($text) | |
preSaveTransform (Title $title, User $user, ParserOptions $popts) | |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform(). | |
Protected Member Functions | |
getHtml () | |
Generates an HTML version of the content, for display. |
Content for JavaScript pages.
Definition at line 33 of file JavaScriptContent.php.
JavaScriptContent::__construct | ( | $ | modelId | ) |
string | null | $modelId |
Reimplemented from AbstractContent.
Definition at line 34 of file JavaScriptContent.php.
JavaScriptContent::getHtml | ( | ) | [protected] |
Generates an HTML version of the content, for display.
Used by getParserOutput() to construct a ParserOutput object.
This default implementation just calls getHighlightHtml(). Content models that have another mapping to HTML (as is the case for markup languages like wikitext) should override this method to generate the appropriate HTML.
Reimplemented from TextContent.
Definition at line 58 of file JavaScriptContent.php.
References $html, and TextContent\getHighlightHtml().
JavaScriptContent::preSaveTransform | ( | Title $ | title, |
User $ | user, | ||
ParserOptions $ | popts | ||
) |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform().
Title | $title | |
User | $user | |
ParserOptions | $popts |
Reimplemented from TextContent.
Definition at line 47 of file JavaScriptContent.php.
References $wgParser, TextContent\getNativeData(), and global.