19 lines
456 B
PHP
19 lines
456 B
PHP
<?php
|
|
|
|
class RevisionTestModifyableContentHandler extends TextContentHandler {
|
|
|
|
public function __construct() {
|
|
parent::__construct( RevisionTestModifyableContent::MODEL_ID, [ CONTENT_FORMAT_TEXT ] );
|
|
}
|
|
|
|
public function unserializeContent( $text, $format = null ) {
|
|
$this->checkFormat( $format );
|
|
|
|
return new RevisionTestModifyableContent( $text );
|
|
}
|
|
|
|
public function makeEmptyContent() {
|
|
return new RevisionTestModifyableContent( '' );
|
|
}
|
|
|
|
}
|