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( '' );
+ protected function getContentClass() {
+ return 'CssContent';
}
/**