|
MediaWiki
master
|
Content handler for wiki text pages. More...


Public Member Functions | |
| __construct ($modelId=CONTENT_MODEL_WIKITEXT) | |
| getFieldsForSearchIndex (SearchEngine $engine) | |
| isParserCacheSupported () | |
| Returns true, because wikitext supports caching using the ParserCache mechanism. More... | |
| makeRedirectContent (Title $destination, $text= '') | |
| Returns a WikitextContent object representing a redirect to the given destination page. More... | |
| supportsRedirects () | |
| Returns true because wikitext supports redirects. More... | |
| supportsSections () | |
| Returns true because wikitext supports sections. More... | |
Public Member Functions inherited from TextContentHandler | |
| __construct ($modelId=CONTENT_MODEL_TEXT, $formats=[CONTENT_FORMAT_TEXT]) | |
| getFieldsForSearchIndex (SearchEngine $engine) | |
| makeEmptyContent () | |
| Creates an empty TextContent object. More... | |
| merge3 (Content $oldContent, Content $myContent, Content $yourContent) | |
| Attempts to merge differences between three versions. More... | |
| serializeContent (Content $content, $format=null) | |
| Returns the content's text as-is. More... | |
| supportsDirectEditing () | |
| unserializeContent ($text, $format=null) | |
| Unserializes a Content object of the type supported by this ContentHandler. More... | |
Protected Member Functions | |
| getContentClass () | |
Protected Member Functions inherited from TextContentHandler | |
| getContentClass () | |
| Returns the name of the associated Content class, to be used when creating new objects. More... | |
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 CONTENT_FORMAT_WIKITEXT.
|
protected |
Definition at line 37 of file WikitextContentHandler.php.
Referenced by makeRedirectContent().
| WikitextContentHandler::getFieldsForSearchIndex | ( | SearchEngine | $engine | ) |
| WikitextContentHandler::isParserCacheSupported | ( | ) |
Returns true, because wikitext supports caching using the ParserCache mechanism.
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. |
Definition at line 51 of file WikitextContentHandler.php.
References Language\fetchLanguageName(), MagicWord\get(), getContentClass(), Title\getFullText(), Title\getInterwiki(), Title\getNamespace(), and NS_CATEGORY.
| WikitextContentHandler::supportsRedirects | ( | ) |
Returns true because wikitext supports redirects.
Definition at line 82 of file WikitextContentHandler.php.
| WikitextContentHandler::supportsSections | ( | ) |
Returns true because wikitext supports sections.
Definition at line 93 of file WikitextContentHandler.php.