57 'application/octet-stream',
58 'application/unknown',
59 'application/x-binary',
76 '@phan-var FallbackContent $content';
77 return $content->getData();
125 '@phan-var FallbackContent $content';
127 $html = Html::rawElement(
'div', [
'class' =>
'error' ], $msg->inContentLanguage()->parse() );
141class_alias( FallbackContentHandler::class,
'FallbackContentHandler' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Base class for content handling.
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.
Content objects represent page content, e.g.
getModel()
Get the content model ID.
Interface for objects which can provide a MediaWiki context on request.