MediaWiki
REL1_22
|
Content handler for wiki text pages. More...
Public Member Functions | |
__construct ($modelId=CONTENT_MODEL_WIKITEXT) | |
isParserCacheSupported () | |
Returns true, because wikitext supports caching using the ParserCache mechanism. | |
makeEmptyContent () | |
makeRedirectContent (Title $destination, $text= '') | |
Returns a WikitextContent object representing a redirect to the given destination page. | |
supportsRedirects () | |
Returns true because wikitext supports redirects. | |
supportsSections () | |
Returns true because wikitext supports sections. | |
unserializeContent ($text, $format=null) | |
Unserializes a Content object of the type supported by this ContentHandler. |
Content handler for wiki text pages.
Definition at line 31 of file WikitextContentHandler.php.
WikitextContentHandler::__construct | ( | $ | modelId = CONTENT_MODEL_WIKITEXT | ) |
Definition at line 33 of file WikitextContentHandler.php.
References array().
Returns true, because wikitext supports caching using the ParserCache mechanism.
Reimplemented from ContentHandler.
Definition at line 110 of file WikitextContentHandler.php.
Reimplemented from TextContentHandler.
Definition at line 48 of file WikitextContentHandler.php.
WikitextContentHandler::makeRedirectContent | ( | Title $ | destination, |
$ | text = '' |
||
) |
Returns a WikitextContent object representing a redirect to the given destination page.
Title | $destination | the page to redirect to. |
string | $text | text to include in the redirect, if possible. |
Reimplemented from ContentHandler.
Definition at line 62 of file WikitextContentHandler.php.
References Language\fetchLanguageName(), MagicWord\get(), Title\getFullText(), Title\getInterwiki(), and Title\getNamespace().
Returns true because wikitext supports redirects.
Reimplemented from ContentHandler.
Definition at line 90 of file WikitextContentHandler.php.
Returns true because wikitext supports sections.
Reimplemented from ContentHandler.
Definition at line 99 of file WikitextContentHandler.php.
WikitextContentHandler::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 37 of file WikitextContentHandler.php.
References ContentHandler\checkFormat().