MediaWiki
REL1_22
|
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 () | |
Creates an empty TextContent object. | |
unserializeContent ($text, $format=null) | |
Unserializes a Content object of the type supported by this ContentHandler. |
Content handler for JavaScript pages.
Definition at line 30 of file JavaScriptContentHandler.php.
JavaScriptContentHandler::__construct | ( | $ | modelId = CONTENT_MODEL_JAVASCRIPT | ) |
Definition at line 32 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 53 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 64 of file JavaScriptContentHandler.php.
References wfGetLangObj().
Creates an empty TextContent object.
Reimplemented from TextContentHandler.
Definition at line 42 of file JavaScriptContentHandler.php.
JavaScriptContentHandler::unserializeContent | ( | $ | text, |
$ | format = null |
||
) |
Unserializes a Content object of the type supported by this ContentHandler.
$text | string serialized form of the content |
$format | null|String the format used for serialization |
Reimplemented from TextContentHandler.
Definition at line 36 of file JavaScriptContentHandler.php.
References ContentHandler\checkFormat().