6 class CssContentHandler
extends TextContentHandler
{
8 public function __construct( $modelId = CONTENT_MODEL_CSS
) {
9 parent
::__construct( $modelId, array( CONTENT_FORMAT_CSS
) );
12 public function unserializeContent( $text, $format = null ) {
13 $this->checkFormat( $format );
15 return new CssContent( $text );
18 public function makeEmptyContent() {
19 return new CssContent( '' );
23 * Returns the english language, because CSS is english, and should be handled as such.
25 * @return Language wfGetLangObj( 'en' )
27 * @see ContentHandler::getPageLanguage()
29 public function getPageLanguage( Title
$title, Content
$content = null ) {
30 return wfGetLangObj( 'en' );
34 * Returns the english language, because CSS is english, and should be handled as such.
36 * @return Language wfGetLangObj( 'en' )
38 * @see ContentHandler::getPageViewLanguage()
40 public function getPageViewLanguage( Title
$title, Content
$content = null ) {
41 return wfGetLangObj( 'en' );