MediaWiki
REL1_24
|
Content for JavaScript pages. More...
Public Member Functions | |
__construct ($text, $modelId=CONTENT_MODEL_JAVASCRIPT) | |
preSaveTransform (Title $title, User $user, ParserOptions $popts) | |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform(). | |
Protected Member Functions | |
getHtml () |
Content for JavaScript pages.
Definition at line 33 of file JavaScriptContent.php.
JavaScriptContent::__construct | ( | $ | text, |
$ | modelId = CONTENT_MODEL_JAVASCRIPT |
||
) |
string | $text | JavaScript code. |
string | $modelId | the content model name |
Reimplemented from TextContent.
Definition at line 39 of file JavaScriptContent.php.
JavaScriptContent::getHtml | ( | ) | [protected] |
tag.
Reimplemented from TextContent.
Definition at line 67 of file JavaScriptContent.php.
References $html, and TextContent\getNativeData().
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 53 of file JavaScriptContent.php.
References $wgParser, TextContent\getNativeData(), and global.