MediaWiki
master
WebInstallerDocument.php
Go to the documentation of this file.
1
<?php
8
namespace
MediaWiki\Installer
;
9
10
abstract
class
WebInstallerDocument
extends
WebInstallerPage
{
11
15
abstract
protected
function
getFileName
();
16
18
public
function
execute
() {
19
$text = $this->
getFileContents
();
20
$text =
InstallDocFormatter::format
( $text );
21
$this->parent->output->addWikiTextAsInterface( $text );
22
$this->
startForm
();
23
$this->
endForm
(
false
);
24
return
''
;
25
}
26
30
public
function
getFileContents
() {
31
$file = __DIR__ .
'/../../'
. $this->
getFileName
();
32
if
( !file_exists( $file ) ) {
33
return
wfMessage
(
'config-nofile'
, $file )->plain();
34
}
35
36
return
file_get_contents( $file );
37
}
38
39
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:821
MediaWiki\Installer\InstallDocFormatter\format
static format(string $text)
Definition
InstallDocFormatter.php:16
MediaWiki\Installer\WebInstallerDocument
Definition
WebInstallerDocument.php:10
MediaWiki\Installer\WebInstallerDocument\getFileContents
getFileContents()
Definition
WebInstallerDocument.php:30
MediaWiki\Installer\WebInstallerDocument\execute
execute()
string
Definition
WebInstallerDocument.php:18
MediaWiki\Installer\WebInstallerDocument\getFileName
getFileName()
MediaWiki\Installer\WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:19
MediaWiki\Installer\WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:72
MediaWiki\Installer\WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:55
MediaWiki\Installer
Definition
CliInstaller.php:9
includes
Installer
WebInstallerDocument.php
Generated on Thu Jan 15 2026 16:24:44 for MediaWiki by
1.10.0