MediaWiki  REL1_23
CssContentHandler Class Reference

Content handler for CSS pages. More...

Inheritance diagram for CssContentHandler:
Collaboration diagram for CssContentHandler:

List of all members.

Public Member Functions

 __construct ($modelId=CONTENT_MODEL_CSS)
 getPageLanguage (Title $title, Content $content=null)
 Returns the english language, because CSS is english, and should be handled as such.
 getPageViewLanguage (Title $title, Content $content=null)
 Returns the english language, because CSS is english, and should be handled as such.
 makeEmptyContent ()
 unserializeContent ($text, $format=null)

Detailed Description

Content handler for CSS pages.

Since:
1.21

Definition at line 30 of file CssContentHandler.php.


Constructor & Destructor Documentation

Parameters:
string$modelId

Definition at line 35 of file CssContentHandler.php.

References array().


Member Function Documentation

CssContentHandler::getPageLanguage ( Title title,
Content content = null 
)

Returns the english language, because CSS is english, and should be handled as such.

Parameters:
Title$title
Content$content
Returns:
Language wfGetLangObj( 'en' )
See also:
ContentHandler::getPageLanguage()

Reimplemented from ContentHandler.

Definition at line 72 of file CssContentHandler.php.

References wfGetLangObj().

CssContentHandler::getPageViewLanguage ( Title title,
Content content = null 
)

Returns the english language, because CSS is english, and should be handled as such.

Parameters:
Title$title
Content$content
Returns:
Language wfGetLangObj( 'en' )
See also:
ContentHandler::getPageViewLanguage()

Reimplemented from ContentHandler.

Definition at line 86 of file CssContentHandler.php.

References wfGetLangObj().

Returns:
CssContent A new CssContent object with empty text.
See also:
ContentHandler::makeEmptyContent()

Reimplemented from TextContentHandler.

Definition at line 58 of file CssContentHandler.php.

CssContentHandler::unserializeContent ( text,
format = null 
)
Parameters:
string$text
string$format
Returns:
CssContent
See also:
ContentHandler::unserializeContent()

Reimplemented from TextContentHandler.

Definition at line 47 of file CssContentHandler.php.

References ContentHandler\checkFormat().


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