MediaWiki  master
WikitextContentHandler Class Reference
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.
 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.

Detailed Description

Since:
1.21

Definition at line 6 of file WikitextContentHandler.php.


Constructor & Destructor Documentation

Definition at line 8 of file WikitextContentHandler.php.

References array().


Member Function Documentation

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

Since:
1.21
Returns:
bool

Reimplemented from ContentHandler.

Definition at line 60 of file WikitextContentHandler.php.

Returns a WikitextContent object representing a redirect to the given destination page.

See also:
ContentHandler::makeRedirectContent
Parameters:
Title$destinationthe page to redirect to.
Returns:
Content

Reimplemented from ContentHandler.

Definition at line 37 of file WikitextContentHandler.php.

References MagicWord\get(), and Title\getPrefixedText().

Returns true because wikitext supports sections.

Returns:
boolean whether sections are supported.

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.

Since:
1.21
Parameters:
$textstring serialized form of the content
$formatnull|String the format used for serialization
Returns:
Content the TextContent object wrapping $text

Reimplemented from TextContentHandler.

Definition at line 12 of file WikitextContentHandler.php.

References ContentHandler\checkFormat().


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