MediaWiki  REL1_24
CliInstaller Class Reference

Class for the core installer command line interface. More...

Inheritance diagram for CliInstaller:
Collaboration diagram for CliInstaller:

List of all members.

Public Member Functions

 __construct ($siteName, $admin=null, array $option=array())
 Constructor.
 dirIsExecutable ($dir, $url)
 Checks if scripts located in the given directory can be executed via the given URL.
 endStage ($step, $status)
 envCheckPath ()
 Environment check to inform user which paths we've assumed.
 execute ()
 Main entry point.
 showError ($msg)
 Same as showMessage(), but for displaying errors.
 showHelpBox ($msg)
 Dummy.
 showMessage ($msg)
 UI interface for displaying a short message The parameters are like parameters to wfMessage().
 showStatusMessage (Status $status)
 Show a message to the installing user by using a Status object.
 startStage ($step)
 writeConfigurationFile ($path)
 Write LocalSettings.php to a given path.

Protected Member Functions

 envGetDefaultServer ()
 Helper function to be called from envPrepServer()
 getMessageText ($params)

Private Attributes

 $optionMap
 $specifiedScriptPath = false

Detailed Description

Class for the core installer command line interface.

Since:
1.17

Definition at line 30 of file CliInstaller.php.


Constructor & Destructor Documentation

CliInstaller::__construct ( siteName,
admin = null,
array option = array() 
)

Constructor.

Parameters:
string$siteName
string$admin
array$option

Definition at line 56 of file CliInstaller.php.

References $GLOBALS, $wgContLang, $wgLang, Installer\__construct(), as, Language\factory(), Installer\findExtensions(), Installer\getDefaultSkin(), Installer\getVar(), global, and Installer\setVar().


Member Function Documentation

CliInstaller::dirIsExecutable ( dir,
url 
)

Checks if scripts located in the given directory can be executed via the given URL.

Used only by environment checks.

Parameters:
string$dir
string$url
Returns:
bool|int|string

Reimplemented from Installer.

Definition at line 219 of file CliInstaller.php.

References $dir, and showMessage().

CliInstaller::endStage ( step,
status 
)

Definition at line 155 of file CliInstaller.php.

References showMessage(), and showStatusMessage().

Environment check to inform user which paths we've assumed.

Returns:
bool

Reimplemented from Installer.

Definition at line 207 of file CliInstaller.php.

References Installer\getVar(), and showMessage().

Helper function to be called from envPrepServer()

Returns:
string

Reimplemented from Installer.

Definition at line 215 of file CliInstaller.php.

CliInstaller::getMessageText ( params) [protected]
Parameters:
array$params
Returns:
string

Definition at line 175 of file CliInstaller.php.

References $params, and wfMessage().

Referenced by showMessage().

Same as showMessage(), but for displaying errors.

Parameters:
string$msg

Reimplemented from Installer.

Definition at line 165 of file CliInstaller.php.

Dummy.

Definition at line 188 of file CliInstaller.php.

UI interface for displaying a short message The parameters are like parameters to wfMessage().

The messages will be in wikitext format, which will be converted to an output format such as HTML or text before being sent to the user.

Parameters:
string$msg

Reimplemented from Installer.

Definition at line 160 of file CliInstaller.php.

References getMessageText().

Referenced by dirIsExecutable(), endStage(), envCheckPath(), and startStage().

Show a message to the installing user by using a Status object.

Parameters:
Status$status

Reimplemented from Installer.

Definition at line 191 of file CliInstaller.php.

References array(), as, Status\getErrorsArray(), and Status\getWarningsArray().

Referenced by endStage(), and execute().

Definition at line 148 of file CliInstaller.php.

References showMessage().

Write LocalSettings.php to a given path.

Parameters:
string$pathFull path to write LocalSettings.php to

Definition at line 143 of file CliInstaller.php.

References InstallerOverrides\getLocalSettingsGenerator().


Member Data Documentation

CliInstaller::$optionMap [private]
Initial value:
 array(
        'dbtype' => 'wgDBtype',
        'dbserver' => 'wgDBserver',
        'dbname' => 'wgDBname',
        'dbuser' => 'wgDBuser',
        'dbpass' => 'wgDBpassword',
        'dbprefix' => 'wgDBprefix',
        'dbtableoptions' => 'wgDBTableOptions',
        'dbmysql5' => 'wgDBmysql5',
        'dbport' => 'wgDBport',
        'dbschema' => 'wgDBmwschema',
        'dbpath' => 'wgSQLiteDataDir',
        'server' => 'wgServer',
        'scriptpath' => 'wgScriptPath',
    )

Definition at line 33 of file CliInstaller.php.

CliInstaller::$specifiedScriptPath = false [private]

Definition at line 31 of file CliInstaller.php.


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