MediaWiki  REL1_24
CodeContentHandler Class Reference

Content handler for code content such as CSS, JavaScript, JSON, etc. More...

Inheritance diagram for CodeContentHandler:
Collaboration diagram for CodeContentHandler:

List of all members.

Public Member Functions

 getPageLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such.
 getPageViewLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such.

Protected Member Functions

 getContentClass ()

Detailed Description

Content handler for code content such as CSS, JavaScript, JSON, etc.

Since:
1.24

Definition at line 29 of file CodeContentHandler.php.


Member Function Documentation

Returns:
string

Reimplemented from TextContentHandler.

Reimplemented in CssContentHandler, JavaScriptContentHandler, and JsonContentHandler.

Definition at line 62 of file CodeContentHandler.php.

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

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

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

Reimplemented from ContentHandler.

Definition at line 41 of file CodeContentHandler.php.

References wfGetLangObj().

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

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

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

Reimplemented from ContentHandler.

Definition at line 55 of file CodeContentHandler.php.

References wfGetLangObj().


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