MediaWiki
REL1_23
|
00001 <?php 00030 class CssContentHandler extends TextContentHandler { 00031 00035 public function __construct( $modelId = CONTENT_MODEL_CSS ) { 00036 parent::__construct( $modelId, array( CONTENT_FORMAT_CSS ) ); 00037 } 00038 00047 public function unserializeContent( $text, $format = null ) { 00048 $this->checkFormat( $format ); 00049 00050 return new CssContent( $text ); 00051 } 00052 00058 public function makeEmptyContent() { 00059 return new CssContent( '' ); 00060 } 00061 00072 public function getPageLanguage( Title $title, Content $content = null ) { 00073 return wfGetLangObj( 'en' ); 00074 } 00075 00086 public function getPageViewLanguage( Title $title, Content $content = null ) { 00087 return wfGetLangObj( 'en' ); 00088 } 00089 00090 }