MediaWiki master
HtmlOutputHelper.php
Go to the documentation of this file.
1<?php
7
11use Wikimedia\Bcp47Code\Bcp47Code;
12use Wikimedia\Parsoid\Core\ClientError;
13
19
33 public function getHtml(): ParserOutput;
34
45 public function getETag( string $suffix = '' ): ?string;
46
54 public function getLastModified(): ?string;
55
63 public static function getParamSettings(): array;
64
78 $targetLanguage,
79 $sourceLanguage = null
80 ): void;
81
90 public function putHeaders( ResponseInterface $response, bool $forHtml = true ): void;
91
92}
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.
An interface similar to PSR-7's ResponseInterface, the primary difference being that it is mutable.
Copyright (C) 2011-2020 Wikimedia Foundation and others.