MediaWiki
master
WebInstallerDocument.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Installer
;
23
24
abstract
class
WebInstallerDocument
extends
WebInstallerPage
{
25
29
abstract
protected
function
getFileName
();
30
31
public
function
execute
() {
32
$text = $this->
getFileContents
();
33
$text =
InstallDocFormatter::format
( $text );
34
$this->parent->output->addWikiTextAsInterface( $text );
35
$this->
startForm
();
36
$this->
endForm
(
false
);
37
return
''
;
38
}
39
43
public
function
getFileContents
() {
44
$file = __DIR__ .
'/../../'
. $this->
getFileName
();
45
if
( !file_exists( $file ) ) {
46
return
wfMessage
(
'config-nofile'
, $file )->plain();
47
}
48
49
return
file_get_contents( $file );
50
}
51
52
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:847
MediaWiki\Installer\InstallDocFormatter\format
static format( $text)
Definition
InstallDocFormatter.php:30
MediaWiki\Installer\WebInstallerDocument
Definition
WebInstallerDocument.php:24
MediaWiki\Installer\WebInstallerDocument\getFileContents
getFileContents()
Definition
WebInstallerDocument.php:43
MediaWiki\Installer\WebInstallerDocument\execute
execute()
Definition
WebInstallerDocument.php:31
MediaWiki\Installer\WebInstallerDocument\getFileName
getFileName()
MediaWiki\Installer\WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:34
MediaWiki\Installer\WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:90
MediaWiki\Installer\WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:73
MediaWiki\Installer
Definition
CliInstaller.php:23
includes
installer
WebInstallerDocument.php
Generated on Wed Oct 9 2024 02:24:06 for MediaWiki by
1.10.0