43 'application/octet-stream',
44 'application/unknown',
45 'application/x-binary',
62 '@phan-var FallbackContent $content';
63 return $content->getData();
110 '@phan-var FallbackContent $content';
112 $html = Html::rawElement(
'div', [
'class' =>
'error' ], $msg->inContentLanguage()->parse() );
127class_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.
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.
getSlotDiffRendererWithOptions(IContextSource $context, $options=[])
Content object implementation representing unknown content.
Content objects represent page content, e.g.
getModel()
Get the content model ID.
Interface for objects which can provide a MediaWiki context on request.