MediaWiki  master
CssContentHandler Class Reference

Content handler for CSS pages. More...

Inheritance diagram for CssContentHandler:
Collaboration diagram for CssContentHandler:

Public Member Functions

 __construct ($modelId=CONTENT_MODEL_CSS)
 
 makeRedirectContent (Title $destination, $text= '')
 Create a redirect that is also valid CSS. More...
 
 supportsRedirects ()
 
- Public Member Functions inherited from CodeContentHandler
 getFieldsForSearchIndex (SearchEngine $engine)
 
 getPageLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such. More...
 
 getPageViewLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such. 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 CodeContentHandler
 getContentClass ()
 
- Protected Member Functions inherited from TextContentHandler
 getContentClass ()
 Returns the name of the associated Content class, to be used when creating new objects. More...
 

Detailed Description

Content handler for CSS pages.

Since
1.21

Definition at line 30 of file CssContentHandler.php.

Constructor & Destructor Documentation

CssContentHandler::__construct (   $modelId = CONTENT_MODEL_CSS)
Parameters
string$modelId

Definition at line 35 of file CssContentHandler.php.

References CONTENT_FORMAT_CSS.

Member Function Documentation

CssContentHandler::getContentClass ( )
protected

Definition at line 39 of file CssContentHandler.php.

Referenced by makeRedirectContent().

CssContentHandler::makeRedirectContent ( Title  $destination,
  $text = '' 
)

Create a redirect that is also valid CSS.

Parameters
Title$destination
string$textignored
Returns
CssContent

Definition at line 54 of file CssContentHandler.php.

References CSSMin\buildUrlValue(), getContentClass(), Title\getFullURL(), and PROTO_RELATIVE.

CssContentHandler::supportsRedirects ( )

Definition at line 43 of file CssContentHandler.php.


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