MediaWiki  REL1_24
WikitextContentHandler Class Reference

Content handler for wiki text pages. More...

Inheritance diagram for WikitextContentHandler:
Collaboration diagram for WikitextContentHandler:

List of all members.

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.

Detailed Description

Content handler for wiki text pages.

Definition at line 31 of file WikitextContentHandler.php.


Constructor & Destructor Documentation

Definition at line 33 of file WikitextContentHandler.php.

References array().


Member Function Documentation

Returns the name of the associated Content class, to be used when creating new objects.

Override expected by subclasses.

Since:
1.24
Returns:
string

Reimplemented from TextContentHandler.

Definition at line 37 of file WikitextContentHandler.php.

Referenced by makeRedirectContent().

Returns true, because wikitext supports caching using the ParserCache mechanism.

Since:
1.21
Returns:
bool Always true.
See also:
ContentHandler::isParserCacheSupported

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.

Parameters:
Title$destinationThe page to redirect to.
string$textText to include in the redirect, if possible.
Returns:
Content
See also:
ContentHandler::makeRedirectContent

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.

Returns:
bool Always true.
See also:
ContentHandler::supportsRedirects

Reimplemented from ContentHandler.

Definition at line 82 of file WikitextContentHandler.php.

Returns true because wikitext supports sections.

Returns:
bool Always true.
See also:
ContentHandler::supportsSections

Reimplemented from ContentHandler.

Definition at line 93 of file WikitextContentHandler.php.


The documentation for this class was generated from the following file: