61 'application/octet-stream',
62 'application/unknown',
63 'application/x-binary',
80 '@phan-var FallbackContent $content';
81 return $content->getData();
129 '@phan-var FallbackContent $content';
131 $html = Html::rawElement(
'div', [
'class' =>
'error' ], $msg->inContentLanguage()->parse() );
145class_alias( FallbackContentHandler::class,
'FallbackContentHandler' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
A content handler knows how do deal with a specific type of content on a wiki page.
getModelID()
Returns the model id that identifies the content model this ContentHandler can handle.
Content handler implementation for unknown content.
makeEmptyContent()
Creates an empty FallbackContent object.
unserializeContent( $blob, $format=null)
Constructs an FallbackContent instance wrapping the given data.
getSlotDiffRendererInternal(IContextSource $context)
fillParserOutput(Content $content, ContentParseParams $cpoParams, ParserOutput &$output)
Fills the ParserOutput with an error message.
serializeContent(Content $content, $format=null)
Returns the content's data as-is.
__construct( $modelId, $formats=null)
Constructs an FallbackContentHandler.
Content object implementation representing unknown content.
Renders a diff for a single slot (that is, a diff between two content objects).
Produces a warning message about not being able to render a slot diff.
Base interface for representing page content.
getModel()
Returns the ID of the content model used by this Content object.
Interface for objects which can provide a MediaWiki context on request.