MediaWiki master
HtmlOutputHelper.php
Go to the documentation of this file.
1<?php
21
25use Wikimedia\Bcp47Code\Bcp47Code;
26use Wikimedia\Parsoid\Core\ClientError;
27
33
47 public function getHtml(): ParserOutput;
48
59 public function getETag( string $suffix = '' ): ?string;
60
68 public function getLastModified(): ?string;
69
77 public function getParamSettings(): array;
78
92 $targetLanguage,
93 $sourceLanguage = null
94 ): void;
95
104 public function putHeaders( ResponseInterface $response, bool $forHtml = true ): void;
105
106}
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.
getParamSettings()
Gets the request parameters of this request.
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.
An interface similar to PSR-7's ResponseInterface, the primary difference being that it is mutable.
Copyright (C) 2011-2020 Wikimedia Foundation and others.