MediaWiki
master
|
Public Member Functions | |
__construct ($modelId=CONTENT_MODEL_WIKITEXT) | |
isParserCacheSupported () | |
Returns true, because wikitext supports caching using the ParserCache mechanism. | |
makeEmptyContent () | |
makeRedirectContent (Title $destination) | |
Returns a WikitextContent object representing a redirect to the given destination page. | |
supportsSections () | |
Returns true because wikitext supports sections. | |
unserializeContent ($text, $format=null) | |
Unserializes a Content object of the type supported by this ContentHandler. |
Definition at line 6 of file WikitextContentHandler.php.
WikitextContentHandler::__construct | ( | $ | modelId = CONTENT_MODEL_WIKITEXT | ) |
Definition at line 8 of file WikitextContentHandler.php.
References array().
Returns true, because wikitext supports caching using the ParserCache mechanism.
Reimplemented from ContentHandler.
Definition at line 60 of file WikitextContentHandler.php.
Reimplemented from TextContentHandler.
Definition at line 23 of file WikitextContentHandler.php.
WikitextContentHandler::makeRedirectContent | ( | Title $ | destination | ) |
Returns a WikitextContent object representing a redirect to the given destination page.
Title | $destination | the page to redirect to. |
Reimplemented from ContentHandler.
Definition at line 37 of file WikitextContentHandler.php.
References MagicWord\get(), and Title\getPrefixedText().
Returns true because wikitext supports sections.
Reimplemented from ContentHandler.
Definition at line 49 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 12 of file WikitextContentHandler.php.
References ContentHandler\checkFormat().