MediaWiki master
|
Inherited by MediaWiki\Installer\DatabaseConnectForm, and MediaWiki\Installer\DatabaseSettingsForm.
Public Member Functions | |
__construct (WebInstaller $webInstaller, DatabaseInstaller $dbInstaller) | |
Protected Member Functions | |
getCheckBox ( $var, $label, $attribs=[], $helpData="") | |
Get a labelled checkbox to configure a local boolean variable. | |
getName () | |
Return the internal name, e.g. | |
getPasswordBox ( $var, $label, $attribs=[], $helpData="") | |
Get a labelled password box to configure a local variable. | |
getRadioSet ( $params) | |
Get a set of labelled radio buttons. | |
getTextBox ( $var, $label, $attribs=[], $helpData="") | |
Get a labelled text box to configure a local variable. | |
getVar ( $var, $default=null) | |
Get a variable, taking local defaults into account. | |
setVar ( $name, $value) | |
Set a variable. | |
setVarsFromRequest ( $varNames) | |
Convenience function to set variables based on form data. | |
Protected Attributes | |
DatabaseInstaller | $dbInstaller |
WebInstaller | $webInstaller |
Definition at line 8 of file DatabaseForm.php.
MediaWiki\Installer\DatabaseForm::__construct | ( | WebInstaller | $webInstaller, |
DatabaseInstaller | $dbInstaller ) |
Definition at line 12 of file DatabaseForm.php.
References MediaWiki\Installer\DatabaseForm\$dbInstaller, and MediaWiki\Installer\DatabaseForm\$webInstaller.
|
protected |
Get a labelled checkbox to configure a local boolean variable.
string | $var | |
string | $label | |
array | $attribs | Optional. |
string | $helpData | Optional. |
Definition at line 108 of file DatabaseForm.php.
References MediaWiki\Installer\DatabaseForm\getName(), and MediaWiki\Installer\DatabaseForm\getVar().
Referenced by MediaWiki\Installer\MysqlConnectForm\getHtml(), MediaWiki\Installer\PostgresConnectForm\getHtml(), and MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox().
|
protected |
Return the internal name, e.g.
'mysql', or 'sqlite'.
Definition at line 40 of file DatabaseForm.php.
Referenced by MediaWiki\Installer\DatabaseForm\getCheckBox(), MediaWiki\Installer\DatabaseForm\getPasswordBox(), MediaWiki\Installer\DatabaseForm\getRadioSet(), MediaWiki\Installer\DatabaseForm\getTextBox(), and MediaWiki\Installer\DatabaseForm\setVarsFromRequest().
|
protected |
Get a labelled password box to configure a local variable.
Implements password hiding.
string | $var | |
string | $label | |
array | $attribs | |
string | $helpData | HTML |
Definition at line 82 of file DatabaseForm.php.
References MediaWiki\Installer\DatabaseForm\getName(), and MediaWiki\Installer\DatabaseForm\getVar().
Referenced by MediaWiki\Installer\DatabaseConnectForm\getInstallUserBox(), and MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox().
|
protected |
Get a set of labelled radio buttons.
array | $params | Parameters are: var: The variable to be configured (required) label: The message name for the label (required) itemLabelPrefix: The message name prefix for the item labels (required) values: List of allowed values (required) itemAttribs Array of attribute arrays, outer key is the value name (optional) |
Definition at line 134 of file DatabaseForm.php.
References $params, MediaWiki\Installer\DatabaseForm\getName(), and MediaWiki\Installer\DatabaseForm\getVar().
|
protected |
Get a labelled text box to configure a local variable.
string | $var | |
string | $label | |
array | $attribs | |
string | $helpData | HTML |
Definition at line 54 of file DatabaseForm.php.
References MediaWiki\Installer\DatabaseForm\getName(), and MediaWiki\Installer\DatabaseForm\getVar().
Referenced by MediaWiki\Installer\MysqlConnectForm\getHtml(), MediaWiki\Installer\PostgresConnectForm\getHtml(), MediaWiki\Installer\SqliteConnectForm\getHtml(), MediaWiki\Installer\DatabaseConnectForm\getInstallUserBox(), and MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox().
|
protected |
Get a variable, taking local defaults into account.
string | $var | |
mixed | null | $default |
Definition at line 23 of file DatabaseForm.php.
Referenced by MediaWiki\Installer\DatabaseForm\getCheckBox(), MediaWiki\Installer\MysqlSettingsForm\getHtml(), MediaWiki\Installer\DatabaseForm\getPasswordBox(), MediaWiki\Installer\DatabaseForm\getRadioSet(), MediaWiki\Installer\DatabaseForm\getTextBox(), MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox(), MediaWiki\Installer\MysqlSettingsForm\submit(), MediaWiki\Installer\PostgresConnectForm\submit(), MediaWiki\Installer\PostgresSettingsForm\submit(), MediaWiki\Installer\SqliteConnectForm\submit(), and MediaWiki\Installer\DatabaseSettingsForm\submitWebUserBox().
|
protected |
Set a variable.
string | $name | |
mixed | $value |
Definition at line 32 of file DatabaseForm.php.
Referenced by MediaWiki\Installer\MysqlSettingsForm\getHtml(), MediaWiki\Installer\MysqlSettingsForm\submit(), MediaWiki\Installer\PostgresConnectForm\submit(), MediaWiki\Installer\PostgresSettingsForm\submit(), MediaWiki\Installer\SqliteConnectForm\submit(), and MediaWiki\Installer\DatabaseSettingsForm\submitWebUserBox().
|
protected |
Convenience function to set variables based on form data.
Assumes that variables containing "password" in the name are (potentially fake) passwords.
array | $varNames |
Definition at line 148 of file DatabaseForm.php.
References MediaWiki\Installer\DatabaseForm\getName().
Referenced by MediaWiki\Installer\MysqlConnectForm\submit(), MediaWiki\Installer\MysqlSettingsForm\submit(), MediaWiki\Installer\PostgresConnectForm\submit(), MediaWiki\Installer\SqliteConnectForm\submit(), MediaWiki\Installer\DatabaseConnectForm\submitInstallUserBox(), and MediaWiki\Installer\DatabaseSettingsForm\submitWebUserBox().
|
protected |
Definition at line 10 of file DatabaseForm.php.
Referenced by MediaWiki\Installer\DatabaseForm\__construct().
|
protected |
Definition at line 9 of file DatabaseForm.php.
Referenced by MediaWiki\Installer\DatabaseForm\__construct().