* @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( '' );
}
*
* @param Title $title
* @param Content $content
+ *
* @return Language wfGetLangObj( 'en' )
*
* @see ContentHandler::getPageLanguage()
*
* @param Title $title
* @param Content $content
+ *
* @return Language wfGetLangObj( 'en' )
*
* @see ContentHandler::getPageViewLanguage()
public function getPageViewLanguage( Title $title, Content $content = null ) {
return wfGetLangObj( 'en' );
}
+
}