MediaWiki master
MediaWiki\Installer\WebInstallerPage Class Reference

Abstract class to define pages for the web installer. More...

Inherited by MediaWiki\Installer\WebInstallerComplete, MediaWiki\Installer\WebInstallerDBConnect, MediaWiki\Installer\WebInstallerDBSettings, MediaWiki\Installer\WebInstallerDocument, MediaWiki\Installer\WebInstallerExistingWiki, MediaWiki\Installer\WebInstallerInstall, MediaWiki\Installer\WebInstallerLanguage, MediaWiki\Installer\WebInstallerName, MediaWiki\Installer\WebInstallerOptions, MediaWiki\Installer\WebInstallerRestart, MediaWiki\Installer\WebInstallerUpgrade, and MediaWiki\Installer\WebInstallerWelcome.

Collaboration diagram for MediaWiki\Installer\WebInstallerPage:

Public Member Functions

 __construct (WebInstaller $parent)
 
 addHTML ( $html)
 
 endForm ( $continue='continue', $back='back')
 
 execute ()
 
 getName ()
 
 getVar ( $var, $default=null)
 
 isSlow ()
 Is this a slow-running page in the installer? If so, WebInstaller will set_time_limit(0) before calling execute().
 
 setVar ( $name, $value)
 
 startForm ()
 

Public Attributes

WebInstaller $parent
 The WebInstaller object this WebInstallerPage belongs to.
 

Protected Member Functions

 endLiveBox ()
 Opposite to WebInstallerPage::startLiveBox.
 
 getFieldsetEnd ()
 Get the end tag of a fieldset.
 
 getFieldsetStart ( $legend)
 Get the starting tags of a fieldset.
 
 getId ()
 
 inlineScript ( $script)
 Javascript to include inline.
 
 startLiveBox ()
 Opens a textarea used to display the progress of a long operation.
 

Detailed Description

Abstract class to define pages for the web installer.

Since
1.17

Definition at line 19 of file WebInstallerPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Installer\WebInstallerPage::__construct ( WebInstaller $parent)

Definition at line 33 of file WebInstallerPage.php.

References MediaWiki\Installer\WebInstallerPage\$parent.

Member Function Documentation

◆ addHTML()

◆ endForm()

◆ endLiveBox()

MediaWiki\Installer\WebInstallerPage::endLiveBox ( )
protected

◆ execute()

◆ getFieldsetEnd()

MediaWiki\Installer\WebInstallerPage::getFieldsetEnd ( )
protected

Get the end tag of a fieldset.

Returns
string

Definition at line 169 of file WebInstallerPage.php.

◆ getFieldsetStart()

MediaWiki\Installer\WebInstallerPage::getFieldsetStart ( $legend)
protected

Get the starting tags of a fieldset.

Parameters
string$legendMessage name
Returns
string

Definition at line 159 of file WebInstallerPage.php.

References wfMessage().

◆ getId()

MediaWiki\Installer\WebInstallerPage::getId ( )
protected

◆ getName()

MediaWiki\Installer\WebInstallerPage::getName ( )
Returns
string

Definition at line 123 of file WebInstallerPage.php.

Referenced by MediaWiki\Installer\WebInstallerPage\getId().

◆ getVar()

◆ inlineScript()

MediaWiki\Installer\WebInstallerPage::inlineScript ( $script)
protected

Javascript to include inline.

Handles addings CSP nonce.

Since
1.45
Parameters
string$scriptScript, not including <script> tag
Returns
string HTML to output

Definition at line 205 of file WebInstallerPage.php.

Referenced by MediaWiki\Installer\WebInstallerPage\endLiveBox(), and MediaWiki\Installer\WebInstallerPage\startLiveBox().

◆ isSlow()

MediaWiki\Installer\WebInstallerPage::isSlow ( )

Is this a slow-running page in the installer? If so, WebInstaller will set_time_limit(0) before calling execute().

Right now this only applies to Install and Upgrade pages

Returns
bool Always false in this default implementation.

Reimplemented in MediaWiki\Installer\WebInstallerInstall, and MediaWiki\Installer\WebInstallerUpgrade.

Definition at line 44 of file WebInstallerPage.php.

◆ setVar()

◆ startForm()

◆ startLiveBox()

MediaWiki\Installer\WebInstallerPage::startLiveBox ( )
protected

Member Data Documentation

◆ $parent

WebInstaller MediaWiki\Installer\WebInstallerPage::$parent

The WebInstaller object this WebInstallerPage belongs to.

Definition at line 26 of file WebInstallerPage.php.

Referenced by MediaWiki\Installer\WebInstallerPage\__construct().


The documentation for this class was generated from the following file: