3 class DummyNonTextContentHandler
extends DummyContentHandlerForTesting
{
5 public function __construct( $dataModel ) {
6 parent
::__construct( $dataModel, [ "testing-nontext" ] );
10 * @see ContentHandler::serializeContent
12 * @param Content $content
13 * @param string $format
17 public function serializeContent( Content
$content, $format = null ) {
18 return $content->serialize();
22 * @see ContentHandler::unserializeContent
25 * @param string $format Unused.
29 public function unserializeContent( $blob, $format = null ) {
30 $d = unserialize( $blob );
32 return new DummyNonTextContent( $d );
36 * Creates an empty Content object of the type supported by this ContentHandler.
38 public function makeEmptyContent() {
39 return new DummyNonTextContent( '' );
42 public function supportsDirectApiEditing() {