/**
* The class name of objects that should be created
*
+ * @deprecated override getContentClass instead
+ *
* @var string
*/
protected $contentClass = 'JSONContent';
}
/**
- * Unserializes a JSONContent object.
- *
- * @param string $text Serialized form of the content
- * @param null|string $format The format used for serialization
- *
- * @return JSONContent
- */
- public function unserializeContent( $text, $format = null ) {
- $this->checkFormat( $format );
- return new $this->contentClass( $text );
- }
-
- /**
- * Creates an empty JSONContent object.
+ * Temporary back-compat until extensions
+ * are updated to override this
*
- * @return JSONContent
+ * @return string
*/
- public function makeEmptyContent() {
- return new $this->contentClass( '' );
+ protected function getContentClass() {
+ return $this->contentClass;
}
/**