MediaWiki
REL1_23
|
Content handler for JavaScript pages. More...
Public Member Functions | |
__construct ($modelId=CONTENT_MODEL_JAVASCRIPT) | |
getPageLanguage (Title $title, Content $content=null) | |
Returns the english language, because JS is english, and should be handled as such. | |
getPageViewLanguage (Title $title, Content $content=null) | |
Returns the english language, because JS is english, and should be handled as such. | |
makeEmptyContent () | |
unserializeContent ($text, $format=null) |
Content handler for JavaScript pages.
Definition at line 30 of file JavaScriptContentHandler.php.
JavaScriptContentHandler::__construct | ( | $ | modelId = CONTENT_MODEL_JAVASCRIPT | ) |
string | $modelId |
Definition at line 35 of file JavaScriptContentHandler.php.
References array().
JavaScriptContentHandler::getPageLanguage | ( | Title $ | title, |
Content $ | content = null |
||
) |
Returns the english language, because JS is english, and should be handled as such.
Reimplemented from ContentHandler.
Definition at line 72 of file JavaScriptContentHandler.php.
References wfGetLangObj().
JavaScriptContentHandler::getPageViewLanguage | ( | Title $ | title, |
Content $ | content = null |
||
) |
Returns the english language, because JS is english, and should be handled as such.
Reimplemented from ContentHandler.
Definition at line 86 of file JavaScriptContentHandler.php.
References wfGetLangObj().
Reimplemented from TextContentHandler.
Definition at line 58 of file JavaScriptContentHandler.php.
JavaScriptContentHandler::unserializeContent | ( | $ | text, |
$ | format = null |
||
) |
string | $text | |
string | $format |
Reimplemented from TextContentHandler.
Definition at line 47 of file JavaScriptContentHandler.php.
References ContentHandler\checkFormat().