* form of the content.
* - If $wgContentHandlerTextFallback is 'ignore' and $content is not a
* TextContent object, this method returns null.
- * - otherwise, the behaviour is undefined.
+ * - otherwise, the behavior is undefined.
*
* @since 1.21
*
* @param $format null|String The desired serialization format
* @return string Serialized form of the content
*/
- public abstract function serializeContent( Content $content, $format = null );
+ abstract public function serializeContent( Content $content, $format = null );
/**
* Unserializes a Content object of the type supported by this ContentHandler.
* @param $format null|String the format used for serialization
* @return Content the Content object created by deserializing $blob
*/
- public abstract function unserializeContent( $blob, $format = null );
+ abstract public function unserializeContent( $blob, $format = null );
/**
* Creates an empty Content object of the type supported by this
*
* @return Content
*/
- public abstract function makeEmptyContent();
+ abstract public function makeEmptyContent();
/**
* Creates a new Content object that acts as a redirect to the given page,
* boolean false if no revision occurred
*
* @XXX &$hasHistory is extremely ugly, it's here because
- * WikiPage::getAutoDeleteReason() and Article::getReason()
+ * WikiPage::getAutoDeleteReason() and Article::generateReason()
* have it / want it.
*/
public function getAutoDeleteReason( Title $title, &$hasHistory ) {
wfRestoreWarnings();
- wfWarn( "Using obsolete hook $event via ContentHandler::runLegacyHooks()! Handlers: " . implode(', ', $handlerInfo), 2 );
+ wfWarn( "Using obsolete hook $event via ContentHandler::runLegacyHooks()! Handlers: " . implode( ', ', $handlerInfo ), 2 );
}
// convert Content objects to text
return $ok;
}
}
-