MediaWiki  REL1_22
CssContent Class Reference

Content object for CSS pages. More...

Inheritance diagram for CssContent:
Collaboration diagram for CssContent:

List of all members.

Public Member Functions

 __construct ($text)
 preSaveTransform (Title $title, User $user, ParserOptions $popts)
 Returns a Content object with pre-save transformations applied using Parser::preSaveTransform().

Protected Member Functions

 getHtml ()
 Generates an HTML version of the content, for display.

Detailed Description

Content object for CSS pages.

Definition at line 33 of file CssContent.php.


Constructor & Destructor Documentation

CssContent::__construct ( modelId)
Parameters:
string | null$modelId
Since:
1.21

Reimplemented from AbstractContent.

Definition at line 34 of file CssContent.php.


Member Function Documentation

CssContent::getHtml ( ) [protected]

Generates an HTML version of the content, for display.

Used by getParserOutput() to construct a ParserOutput object.

This default implementation just calls getHighlightHtml(). Content models that have another mapping to HTML (as is the case for markup languages like wikitext) should override this method to generate the appropriate HTML.

Returns:
string An HTML representation of the content

Reimplemented from TextContent.

Definition at line 57 of file CssContent.php.

References $html, and TextContent\getHighlightHtml().

CssContent::preSaveTransform ( Title title,
User user,
ParserOptions popts 
)

Returns a Content object with pre-save transformations applied using Parser::preSaveTransform().

Parameters:
$titleTitle
$userUser
$poptsParserOptions
Returns:
Content

Reimplemented from TextContent.

Definition at line 47 of file CssContent.php.

References $wgParser, TextContent\getNativeData(), and global.


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