MediaWiki master
HtmlOutputHelper.php
Go to the documentation of this file.
1<?php
7
11use Wikimedia\Bcp47Code\Bcp47Code;
12use Wikimedia\Parsoid\Core\ClientError;
13use Wikimedia\Parsoid\Core\HtmlPageBundle;
14
20
34 public function getHtml(): ParserOutput;
35
48 public function getPageBundle(): HtmlPageBundle;
49
60 public function getETag( string $suffix = '' ): ?string;
61
69 public function getLastModified(): ?string;
70
78 public static function getParamSettings(): array;
79
93 $targetLanguage,
94 $sourceLanguage = null
95 ): void;
96
105 public function putHeaders( ResponseInterface $response, bool $forHtml = true ): void;
106
107}
ParserOutput is a rendering of a Content object or a message.
getHtml()
Fetch the HTML for rendering of a given page.
setVariantConversionLanguage( $targetLanguage, $sourceLanguage=null)
Set the language to be used for variant conversion.
getETag(string $suffix='')
Returns an ETag uniquely identifying the HTML output.
getLastModified()
Returns the time at which the HTML was rendered.
putHeaders(ResponseInterface $response, bool $forHtml=true)
Set the HTTP headers based on the response generated.
static getParamSettings()
Gets the request parameters of this request.
getPageBundle()
Fetch the rendering of a given page as a full-document HtmlPageBundle.
An interface similar to PSR-7's ResponseInterface, the primary difference being that it is mutable.
Copyright (C) 2011-2020 Wikimedia Foundation and others.