We need to be able to set a different content model via the
constructor, so make it an optional parameter.
Change-Id: I8b31084e0cfbcca1b3785176eac492d837e0cb0f
/**
* @param string $text CSS code.
+ * @param string $modelId the content content model
*/
- public function __construct( $text ) {
- parent::__construct( $text, CONTENT_MODEL_CSS );
+ public function __construct( $text, $modelId = CONTENT_MODEL_CSS ) {
+ parent::__construct( $text, $modelId );
}
/**
/**
* @param string $text JavaScript code.
+ * @param string $modelId the content model name
*/
- public function __construct( $text ) {
- parent::__construct( $text, CONTENT_MODEL_JAVASCRIPT );
+ public function __construct( $text, $modelId = CONTENT_MODEL_JAVASCRIPT ) {
+ parent::__construct( $text, $modelId );
}
/**