94 $this->
addHTML( $this->parent->parse( $text ) );
111 throw new MWException( __METHOD__ .
' called after sending headers' );
113 $this->redirectTarget = $url;
119 if ( !$this->redirectTarget ) {
134 'mediawiki.legacy.shared',
136 'mediawiki.skinning.interface',
141 if ( file_exists(
"$wgStyleDirectory/Vector/skin.json" ) ) {
145 $data = $registry->readFromQueue( [
146 "$wgStyleDirectory/Vector/skin.json" => 1,
148 if ( isset( $data[
'globals'][
'wgResourceModules'] ) ) {
152 $moduleNames[] =
'skins.vector.styles';
155 $moduleNames[] =
'mediawiki.legacy.config';
164 foreach ( $moduleNames as $moduleName ) {
174 $module->readStyleFiles(
175 $module->getStyleFiles( $rlContext ),
176 $module->getFlip( $rlContext ),
181 return implode(
"\n", $styles );
190 return Html::linkedStyle( $_SERVER[
'PHP_SELF'] .
'?css=1' );
205 if ( !$this->redirectTarget && strlen( $this->
contents ) ) {
208 $this->contents =
'';
251 $this->parent->request->response()->header(
'Content-Type: text/html; charset=utf-8' );
254 $this->parent->request->response()->header(
'X-Frame-Options: DENY' );
257 if ( $this->redirectTarget ) {
258 $this->parent->request->response()->header(
'Location: ' . $this->redirectTarget );
272 <meta name=
"robots" content=
"noindex, nofollow" />
273 <meta
http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
277 <?php echo Html::linkedScript(
'config.js' ) .
"\n"; ?>
280<?php echo Html::openElement(
'body', [
'class' => $this->
getDir() ] ) .
"\n"; ?>
281<div
id=
"mw-page-base"></div>
282<div
id=
"mw-head-base"></div>
283<div
id=
"content" class=
"mw-body">
284<div
id=
"bodyContent" class=
"mw-body-content">
292 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
301 <div
class=
"portal" id=
"p-logo">
302 <a
style=
"background-image: url(images/installer-logo.png);"
303 href=
"https://www.mediawiki.org/"
304 title=
"Main Page"></a>
307 $message =
wfMessage(
'config-sidebar' )->plain();
308 foreach ( explode(
'----', $message ) as
$section ) {
309 echo
'<div class="portal"><div class="body">';
310 echo $this->parent->parse(
$section,
true );
317 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
324 <meta
http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
325 <meta name=
"robots" content=
"noindex, nofollow" />
329 <?php echo Html::linkedScript(
'config.js' ); ?>
332<body
style=
"background-image: none">
345 return Html::linkedScript(
"../resources/lib/jquery/jquery.js" );
Apache License January http
$wgStyleDirectory
Filesystem stylesheets directory.
$wgVersion
MediaWiki version number.
wfBCP47( $code)
Get the normalised IETF language tag See unit test for examples.
WebRequest clone which takes values from a provided array.
Object passed around to modules which contains information about the state of a specific loader reque...
Dynamic JavaScript and CSS resource loading system.
static makeCombinedStyles(array $stylePairs)
Combines an associative array mapping media type to CSS into a single stylesheet with "@media" blocks...
Output class modelled on OutputPage.
bool $useShortHeader
Whether to use the limited header (used during CC license callbacks)
__construct(WebInstaller $parent)
string $contents
Buffered contents that haven't been output yet.
getCssUrl()
"<link>" to index.php?css=1 for the "<head>"
useShortHeader( $use=true)
getCSS()
Get the stylesheet of the MediaWiki skin.
bool $allowFrames
Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to ...
WebInstaller $parent
The WebInstaller object this WebInstallerOutput is used by.
bool $headerDone
Has the header (or short header) been output?
headerDone()
Get whether the header has been output.
allowFrames( $allow=true)
Class for the core installer web interface.
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their contents
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as $wgLang
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<div ...>$1</div>"). - flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException':Called before an exception(or PHP error) is logged. This is meant for integration with external error aggregation services
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output & $resourceLoader
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section