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
58 public function getETag( string $suffix = '' ): ?string;
59
67 public function getLastModified(): ?string;
68
76 public function getParamSettings(): array;
77
85 $targetLanguage,
86 $sourceLanguage = null
87 ): void;
88
97 public function putHeaders( ResponseInterface $response, bool $forHtml = true ): void;
98
99}
Rendered output of a wiki page, as parsed from wikitext.
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.