MediaWiki  1.23.0
CssContentHandler.php
Go to the documentation of this file.
1 <?php
31 
35  public function __construct( $modelId = CONTENT_MODEL_CSS ) {
36  parent::__construct( $modelId, array( CONTENT_FORMAT_CSS ) );
37  }
38 
47  public function unserializeContent( $text, $format = null ) {
48  $this->checkFormat( $format );
49 
50  return new CssContent( $text );
51  }
52 
58  public function makeEmptyContent() {
59  return new CssContent( '' );
60  }
61 
72  public function getPageLanguage( Title $title, Content $content = null ) {
73  return wfGetLangObj( 'en' );
74  }
75 
86  public function getPageViewLanguage( Title $title, Content $content = null ) {
87  return wfGetLangObj( 'en' );
88  }
89 
90 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
CssContentHandler\__construct
__construct( $modelId=CONTENT_MODEL_CSS)
Definition: CssContentHandler.php:35
CONTENT_MODEL_CSS
const CONTENT_MODEL_CSS
Definition: Defines.php:285
CssContentHandler\makeEmptyContent
makeEmptyContent()
Definition: CssContentHandler.php:58
CONTENT_FORMAT_CSS
const CONTENT_FORMAT_CSS
Definition: Defines.php:301
CssContent
Content object for CSS pages.
Definition: CssContent.php:33
CssContentHandler\getPageViewLanguage
getPageViewLanguage(Title $title, Content $content=null)
Returns the english language, because CSS is english, and should be handled as such.
Definition: CssContentHandler.php:86
CssContentHandler\getPageLanguage
getPageLanguage(Title $title, Content $content=null)
Returns the english language, because CSS is english, and should be handled as such.
Definition: CssContentHandler.php:72
wfGetLangObj
wfGetLangObj( $langcode=false)
Return a Language object from $langcode.
Definition: GlobalFunctions.php:1352
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
CssContentHandler
Content handler for CSS pages.
Definition: CssContentHandler.php:30
$title
presenting them properly to the user as errors is done by the caller $title
Definition: hooks.txt:1324
TextContentHandler
Base content handler implementation for flat text contents.
Definition: TextContentHandler.php:31
CssContentHandler\unserializeContent
unserializeContent( $text, $format=null)
Definition: CssContentHandler.php:47
Content
Base interface for content objects.
Definition: Content.php:34
Title
Represents a title within MediaWiki.
Definition: Title.php:35
ContentHandler\checkFormat
checkFormat( $format)
Convenient for checking whether a format provided as a parameter is actually supported.
Definition: ContentHandler.php:558