MediaWiki REL1_33
RevisionTestModifyableContentHandler.php
Go to the documentation of this file.
1<?php
2
4
5 public function __construct() {
7 }
8
9 public function unserializeContent( $text, $format = null ) {
10 $this->checkFormat( $format );
11
12 return new RevisionTestModifyableContent( $text );
13 }
14
15 public function makeEmptyContent() {
16 return new RevisionTestModifyableContent( '' );
17 }
18
19}
checkFormat( $format)
Convenient for checking whether a format provided as a parameter is actually supported.
makeEmptyContent()
Creates an empty TextContent object.
unserializeContent( $text, $format=null)
Unserializes a Content object of the type supported by this ContentHandler.
Base content handler implementation for flat text contents.
const CONTENT_FORMAT_TEXT
Definition Defines.php:265