Go to the documentation of this file.
107 $this->
addHTML( $this->parent->parse( $text ) );
124 throw new MWException( __METHOD__ .
' called after sending headers' );
126 $this->redirectTarget = $url;
132 if ( !$this->redirectTarget ) {
147 'mediawiki.legacy.shared',
149 'mediawiki.skinning.interface',
152 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
154 if ( file_exists(
"$wgStyleDirectory/Vector/skin.json" ) ) {
158 $data = $registry->readFromQueue( [
159 "$wgStyleDirectory/Vector/skin.json" => 1,
161 if ( isset(
$data[
'globals'][
'wgResourceModules'] ) ) {
165 $moduleNames[] =
'skins.vector.styles';
168 $moduleNames[] =
'mediawiki.legacy.config';
177 foreach ( $moduleNames
as $moduleName ) {
186 $styles = array_merge( $styles, ResourceLoader::makeCombinedStyles(
187 $module->readStyleFiles(
188 $module->getStyleFiles( $rlContext ),
189 $module->getFlip( $rlContext ),
194 return implode(
"\n", $styles );
203 return Html::linkedStyle( $this->parent->getUrl( [
'css' => 1 ] ) );
218 if ( !$this->redirectTarget && strlen( $this->
contents ) ) {
221 $this->contents =
'';
256 $this->parent->request->response()->header(
'Content-Type: text/html; charset=utf-8' );
259 $this->parent->request->response()->header(
'X-Frame-Options: DENY' );
262 if ( $this->redirectTarget ) {
263 $this->parent->request->response()->header(
'Location: ' . $this->redirectTarget );
278 <meta
http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
282 <?
php echo Html::linkedScript(
'config.js' ) .
"\n"; ?>
285 <?
php echo Html::openElement(
'body', [
'class' => $this->
getLanguage()->getDir() ] ) .
"\n"; ?>
286 <
div id=
"mw-page-base"></
div>
287 <
div id=
"mw-head-base"></
div>
288 <
div id=
"content" class=
"mw-body">
289 <
div id=
"bodyContent" class=
"mw-body-content">
297 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
306 <
div class=
"portal" id=
"p-logo">
307 <
a style=
"background-image: url(images/installer-logo.png);"
308 href=
"https://www.mediawiki.org/"
312 $message =
wfMessage(
'config-sidebar' )->plain();
313 foreach ( explode(
'----', $message )
as $section ) {
314 echo
'<div class="portal"><div class="body">';
315 echo $this->parent->parse(
$section,
true );
322 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
329 <meta
http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
334 <?
php echo Html::linkedScript(
'config.js' ); ?>
337 <body
style=
"background-image: none">
350 return Html::linkedScript(
"../resources/lib/jquery/jquery.js" );
Object passed around to modules which contains information about the state of a specific loader reque...
WebRequest clone which takes values from a provided array.
per default it will return the text for text based content
bool $useShortHeader
Whether to use the limited header (used during CC license callbacks)
bool $headerDone
Has the header (or short header) been output?
getCssUrl()
"<link>" to index.php?css=1 for the "<head>"
$wgVersion
MediaWiki version number.
Class for the core installer web interface.
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
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
Apache License January http
getCSS()
Get the stylesheet of the MediaWiki skin.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
__construct(WebInstaller $parent)
Output class modelled on OutputPage.
headerDone()
Get whether the header has been output.
and how to run hooks for an and one after Each event has a name
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)
string $contents
Buffered contents that haven't been output yet.
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
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
WebInstaller $parent
The WebInstaller object this WebInstallerOutput is used by.
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
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
allowFrames( $allow=true)
useShortHeader( $use=true)
addWikiTextAsInterface( $text)
bool $allowFrames
Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to ...
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static factory( $code)
Get a cached or new language object for a given language code.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
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 use $formDescriptor instead 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 "<
$wgStyleDirectory
Filesystem stylesheets directory.