X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FCssContentHandler.php;h=85059a89117901fbae658e98b6680340eda0ab51;hb=aaeb2033c92a4dc9a675488ee4036da78307d5ac;hp=7becabb8888019d4c13f99b0b1abf55822e26a90;hpb=49109173b4ad5fafb24688457e35b3c71d330346;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/CssContentHandler.php b/includes/content/CssContentHandler.php index 7becabb888..85059a8911 100644 --- a/includes/content/CssContentHandler.php +++ b/includes/content/CssContentHandler.php @@ -28,16 +28,33 @@ * @ingroup Content */ class CssContentHandler extends TextContentHandler { + + /** + * @param string $modelId + */ public function __construct( $modelId = CONTENT_MODEL_CSS ) { parent::__construct( $modelId, array( CONTENT_FORMAT_CSS ) ); } + /** + * @param string $text + * @param string $format + * + * @return CssContent + * + * @see ContentHandler::unserializeContent() + */ public function unserializeContent( $text, $format = null ) { $this->checkFormat( $format ); return new CssContent( $text ); } + /** + * @return CssContent A new CssContent object with empty text. + * + * @see ContentHandler::makeEmptyContent() + */ public function makeEmptyContent() { return new CssContent( '' ); } @@ -47,6 +64,7 @@ class CssContentHandler extends TextContentHandler { * * @param Title $title * @param Content $content + * * @return Language wfGetLangObj( 'en' ) * * @see ContentHandler::getPageLanguage() @@ -60,6 +78,7 @@ class CssContentHandler extends TextContentHandler { * * @param Title $title * @param Content $content + * * @return Language wfGetLangObj( 'en' ) * * @see ContentHandler::getPageViewLanguage() @@ -67,4 +86,5 @@ class CssContentHandler extends TextContentHandler { public function getPageViewLanguage( Title $title, Content $content = null ) { return wfGetLangObj( 'en' ); } + }