MediaWiki
REL1_24
|
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. | |
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. | |
Protected Member Functions | |
getContentClass () | |
Returns the name of the associated Content class, to be used when creating new objects. |
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().
WikitextContentHandler::getContentClass | ( | ) | [protected] |
Returns the name of the associated Content class, to be used when creating new objects.
Override expected by subclasses.
Reimplemented from TextContentHandler.
Definition at line 37 of file WikitextContentHandler.php.
Referenced by makeRedirectContent().
Returns true, because wikitext supports caching using the ParserCache mechanism.
Reimplemented from ContentHandler.
Definition at line 107 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 51 of file WikitextContentHandler.php.
References Language\fetchLanguageName(), MagicWord\get(), getContentClass(), Title\getFullText(), Title\getInterwiki(), and Title\getNamespace().
Returns true because wikitext supports redirects.
Reimplemented from ContentHandler.
Definition at line 82 of file WikitextContentHandler.php.
Returns true because wikitext supports sections.
Reimplemented from ContentHandler.
Definition at line 93 of file WikitextContentHandler.php.