MediaWiki  REL1_24
Installer Class Reference

Base installer class. More...

Inheritance diagram for Installer:
Collaboration diagram for Installer:

List of all members.

Public Member Functions

 __construct ()
 Constructor, always call this from child classes.
 addInstallStep ($callback, $findStep= 'BEGINNING')
 Add an installation step following the given step.
 dirIsExecutable ($dir, $url)
 Checks if scripts located in the given directory can be executed via the given URL.
 disableLinkPopups ()
 doEnvironmentChecks ()
 Do initial checks of the PHP environment.
 doEnvironmentPreps ()
 exportVars ()
 Exports all wg* variables stored by the installer into global scope.
 findExtensions ($directory= 'extensions')
 Finds extensions that follow the format /$directory/Name/Name.php, and returns an array containing the value for 'Name' for each found extension.
 generateKeys ()
 Generate $wgSecretKey.
 getCompiledDBs ()
 Get a list of DBs supported by current PHP setup.
 getDBInstaller ($type=false)
 Get an instance of DatabaseInstaller for the specified DB type.
 getDefaultSkin (array $skinNames)
 Returns a default value to be used for $wgDefaultSkin: the preferred skin, if available among the installed skins, or any other one otherwise.
 getFakePassword ($realPassword)
 Get a fake password for sending back to the user in HTML.
 getParserOptions ()
 getVar ($name, $default=null)
 Get an MW configuration variable, or internal installer configuration variable.
 parse ($text, $lineStart=false)
 Convert wikitext $text to HTML.
 performInstallation ($startCB, $endCB)
 Actually perform the installation.
 populateSiteStats (DatabaseInstaller $installer)
 Install step which adds a row to the site_stats table with appropriate initial values.
 restoreLinkPopups ()
 setParserLanguage ($lang)
 ParserOptions are constructed before we determined the language, so fix it.
 setPassword ($name, $value)
 Set a variable which stores a password, except if the new value is a fake password in which case leave it as it is.
 setVar ($name, $value)
 Set a MW configuration variable, or internal installer configuration variable.
 showError ($msg)
 Same as showMessage(), but for displaying errors.
 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.

Static Public Member Functions

static apacheModulePresent ($moduleName)
 Checks for presence of an Apache module.
static getDBTypes ()
 Get a list of known DB types.
static getExistingLocalSettings ()
 Determine if LocalSettings.php exists.
static locateExecutable ($path, $names, $versionInfo=false)
 Search a path for any of the given executable names.
static locateExecutableInDefaultPaths ($names, $versionInfo=false)
 Same as locateExecutable(), but checks in getPossibleBinPaths() by default.
static maybeGetWebserverPrimaryGroup ()
 On POSIX systems return the primary group of the webserver we're running under.
static overrideConfig ()
 Override the necessary bits of the config to run an installation.

Public Attributes

array $licenses
 License types.
array $rightsProfiles
 User rights profiles.
const MINIMUM_PCRE_VERSION = '7.2'
 The oldest version of PCRE we can support.

Protected Member Functions

 createMainpage (DatabaseInstaller $installer)
 Insert Main Page with default content.
 createSysop ()
 Create the first user account, grant it sysop and bureaucrat rights.
 disableTimeLimit ()
 Disable the time limit for execution.
 doGenerateKeys ($keys)
 Generate a secret value for variables using our CryptRand generator.
 envCheckBrokenXML ()
 Some versions of libxml+PHP break < and > encoding horribly.
 envCheckCache ()
 Environment check for compiled object cache types.
 envCheckCtype ()
 envCheckDB ()
 Environment check for DB types.
 envCheckDiff3 ()
 Search for GNU diff3.
 envCheckGit ()
 Search for git.
 envCheckGraphics ()
 Environment check for ImageMagick and GD.
 envCheckIconv ()
 envCheckJSON ()
 envCheckLibicu ()
 Check the libicu version.
 envCheckMagicQuotes ()
 Environment check for magic_quotes_(gpc|runtime|sybase).
 envCheckMbstring ()
 Environment check for mbstring.func_overload.
 envCheckMemory ()
 Environment check for available memory.
 envCheckModSecurity ()
 Scare user to death if they have mod_security.
 envCheckPath ()
 Environment check to inform user which paths we've assumed.
 envCheckPCRE ()
 Environment check for the PCRE module.
 envCheckRegisterGlobals ()
 Environment check for register_globals.
 envCheckSafeMode ()
 Environment check for safe_mode.
 envCheckServer ()
 Environment check to inform user which server we've assumed.
 envCheckShellLocale ()
 Environment check for preferred locale in shell.
 envCheckSuhosinMaxValueLength ()
 Checks if suhosin.get.max_value_length is set, and if so generate a warning because it decreases ResourceLoader performance.
 envCheckUploadsDirectory ()
 Environment check for the permissions of the uploads directory.
 envCheckXML ()
 Environment check for the XML module.
 envGetDefaultServer ()
 Helper function to be called from envPrepServer()
 envPrepExtension ()
 Environment prep for setting the preferred PHP file extension.
 envPrepPath ()
 Environment prep for setting $IP and $wgScriptPath.
 envPrepServer ()
 Environment prep for the server hostname.
 getDocUrl ($page)
 Overridden by WebInstaller to provide lastPage parameters.
 getInstallSteps (DatabaseInstaller $installer)
 Get an array of install steps.
 includeExtensions ()
 Installs the auto-detected extensions.
 unicodeChar ($c)
 Convert a hex string representing a Unicode code point to that code point.

Static Protected Member Functions

static getPossibleBinPaths ()
 Get an array of likely places we can find executables.

Protected Attributes

array $compiledDBs
 List of detected DBs, access using getCompiledDBs().
array $dbInstallers = array()
 Cached DB installer instances, access using getDBInstaller().
array $defaultVarNames
 MediaWiki configuration globals that will eventually be passed through to LocalSettings.php.
array $envChecks
 A list of environment check methods called by doEnvironmentChecks().
array $envPreps
 A list of environment preparation methods called by doEnvironmentPreps().
array $extraInstallSteps = array()
 Extra steps for installation, for things like DatabaseInstallers to modify.
array $internalDefaults
 Variables that are stored alongside globals, and are used for any configuration of the installation process aside from the MediaWiki configuration.
 $mediaWikiAnnounceLanguages
 Supported language codes for Mailman.
 $mediaWikiAnnounceUrl
 URL to mediawiki-announce subscription.
int $minMemorySize = 50
 Minimum memory size in MB.
array $objectCaches
 Known object cache types and the functions used to test for their existence.
ParserOptions $parserOptions
 Cached ParserOptions, used by parse().
Title $parserTitle
 Cached Title, used by parse().
array $settings

Static Protected Attributes

static $dbTypes

Private Member Functions

 subscribeToMediaWikiAnnounce (Status $s)

Private Attributes

array $installSteps = array()
 The actual list of installation steps.

Detailed Description

Base installer class.

This class provides the base for installation and update functionality for both MediaWiki core and extensions.

Since:
1.17

Definition at line 39 of file Installer.php.


Constructor & Destructor Documentation

Constructor, always call this from child classes.

Definition at line 348 of file Installer.php.

Referenced by CliInstaller\__construct().


Member Function Documentation

Installer::addInstallStep ( callback,
findStep = 'BEGINNING' 
)

Add an installation step following the given step.

Parameters:
callable$callbackA valid installation callback array, in this form: array( 'name' => 'some-unique-name', 'callback' => array( $obj, 'function' ) );
string$findStepThe step to find. Omit to put the step at the beginning

Definition at line 1785 of file Installer.php.

static Installer::apacheModulePresent ( moduleName) [static]

Checks for presence of an Apache module.

Works only if PHP is running as an Apache module, too.

Parameters:
string$moduleNameName of module to check.
Returns:
bool

Definition at line 1390 of file Installer.php.

Installer::createMainpage ( DatabaseInstaller installer) [protected]

Insert Main Page with default content.

Parameters:
DatabaseInstaller$installer
Returns:
Status

Definition at line 1726 of file Installer.php.

References $res, and Status\warning().

Installer::createSysop ( ) [protected]

Create the first user account, grant it sysop and bureaucrat rights.

Returns:
Status

Definition at line 1653 of file Installer.php.

References $keys, $wgLang, and global.

Installer::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 in CliInstaller.

Definition at line 1343 of file Installer.php.

Definition at line 636 of file Installer.php.

References $html.

Installer::disableTimeLimit ( ) [protected]

Disable the time limit for execution.

Some long-running pages (Install, Upgrade) will want to do this

Definition at line 1793 of file Installer.php.

Do initial checks of the PHP environment.

Set variables according to the observed environment.

It's possible that this may be called under the CLI SAPI, not the SAPI that the wiki will primarily run under. In that case, the subclass should initialise variables such as wgScriptPath, before calling this function.

Under the web subclass, it can already be assumed that PHP 5+ is in use and that sessions are working.

Returns:
Status

Definition at line 419 of file Installer.php.

Definition at line 448 of file Installer.php.

Installer::doGenerateKeys ( keys) [protected]

Generate a secret value for variables using our CryptRand generator.

Produce a warning if the random source was insecure.

Parameters:
array$keys
Returns:
Status

Definition at line 1625 of file Installer.php.

Some versions of libxml+PHP break < and > encoding horribly.

Returns:
bool

Definition at line 743 of file Installer.php.

Installer::envCheckCache ( ) [protected]

Environment check for compiled object cache types.

Definition at line 867 of file Installer.php.

References $limit, and showMessage().

Installer::envCheckCtype ( ) [protected]
Returns:
bool

Definition at line 1179 of file Installer.php.

References showMessage().

Installer::envCheckDB ( ) [protected]

Environment check for DB types.

Returns:
bool

Definition at line 690 of file Installer.php.

Installer::envCheckDiff3 ( ) [protected]

Search for GNU diff3.

Returns:
bool

Definition at line 901 of file Installer.php.

Installer::envCheckGit ( ) [protected]

Search for git.

Since:
1.22
Returns:
bool

Definition at line 947 of file Installer.php.

Installer::envCheckGraphics ( ) [protected]

Environment check for ImageMagick and GD.

Returns:
bool

Definition at line 921 of file Installer.php.

References setVar().

Installer::envCheckIconv ( ) [protected]
Returns:
bool

Definition at line 1192 of file Installer.php.

Installer::envCheckJSON ( ) [protected]
Returns:
bool

Definition at line 1205 of file Installer.php.

Installer::envCheckLibicu ( ) [protected]

Check the libicu version.

Definition at line 1128 of file Installer.php.

Environment check for magic_quotes_(gpc|runtime|sybase).

Returns:
bool

Definition at line 758 of file Installer.php.

References $test, and showError().

Installer::envCheckMbstring ( ) [protected]

Environment check for mbstring.func_overload.

Returns:
bool

Definition at line 774 of file Installer.php.

References showError(), and wfIniGetBool().

Installer::envCheckMemory ( ) [protected]

Environment check for available memory.

Returns:
bool

Definition at line 841 of file Installer.php.

Scare user to death if they have mod_security.

Returns:
bool

Definition at line 889 of file Installer.php.

Installer::envCheckPath ( ) [protected]

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

Returns:
bool

Reimplemented in WebInstaller, and CliInstaller.

Definition at line 982 of file Installer.php.

Installer::envCheckPCRE ( ) [protected]

Environment check for the PCRE module.

Note:
If this check were to fail, the parser would probably throw an exception before the result of this check is shown to the user.
Returns:
bool

Definition at line 819 of file Installer.php.

Environment check for register_globals.

Prevent installation if enabled

Returns:
bool

Definition at line 730 of file Installer.php.

References showError().

Installer::envCheckSafeMode ( ) [protected]

Environment check for safe_mode.

Returns:
bool

Definition at line 788 of file Installer.php.

Installer::envCheckServer ( ) [protected]

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

Returns:
bool

Definition at line 969 of file Installer.php.

Environment check for preferred locale in shell.

Returns:
bool

Definition at line 995 of file Installer.php.

Checks if suhosin.get.max_value_length is set, and if so generate a warning because it decreases ResourceLoader performance.

Returns:
bool

Definition at line 1092 of file Installer.php.

Environment check for the permissions of the uploads directory.

Returns:
bool

Definition at line 1073 of file Installer.php.

References setVar().

Installer::envCheckXML ( ) [protected]

Environment check for the XML module.

Returns:
bool

Definition at line 801 of file Installer.php.

Installer::envGetDefaultServer ( ) [abstract, protected]

Helper function to be called from envPrepServer()

Returns:
string

Reimplemented in WebInstaller, and CliInstaller.

Installer::envPrepExtension ( ) [protected]

Environment prep for setting the preferred PHP file extension.

Definition at line 1234 of file Installer.php.

Installer::envPrepPath ( ) [protected]

Environment prep for setting $IP and $wgScriptPath.

Definition at line 1247 of file Installer.php.

Installer::envPrepServer ( ) [protected]

Environment prep for the server hostname.

Definition at line 1218 of file Installer.php.

Exports all wg* variables stored by the installer into global scope.

Definition at line 678 of file Installer.php.

Installer::findExtensions ( directory = 'extensions')

Finds extensions that follow the format /$directory/Name/Name.php, and returns an array containing the value for 'Name' for each found extension.

Reasonable values for $directory include 'extensions' (the default) and 'skins'.

Parameters:
string$directoryDirectory to search in
Returns:
array

Definition at line 1430 of file Installer.php.

Referenced by CliInstaller\__construct().

Generate $wgSecretKey.

Will warn if we had to use an insecure random source.

Returns:
Status

Definition at line 1609 of file Installer.php.

Get a list of DBs supported by current PHP setup.

Returns:
array

Definition at line 487 of file Installer.php.

Get an instance of DatabaseInstaller for the specified DB type.

Parameters:
mixed$typeDB installer for which is needed, false to use default.
Returns:
DatabaseInstaller

Definition at line 498 of file Installer.php.

static Installer::getDBTypes ( ) [static]

Get a list of known DB types.

Returns:
array

Definition at line 402 of file Installer.php.

Installer::getDefaultSkin ( array skinNames)

Returns a default value to be used for $wgDefaultSkin: the preferred skin, if available among the installed skins, or any other one otherwise.

Parameters:
string[]$skinNames Names of installed skins.
Returns:
string

Definition at line 1463 of file Installer.php.

Referenced by CliInstaller\__construct().

Installer::getDocUrl ( page) [protected]

Overridden by WebInstaller to provide lastPage parameters.

Parameters:
string$page
Returns:
string

Reimplemented in WebInstaller.

Definition at line 1417 of file Installer.php.

Determine if LocalSettings.php exists.

If it does, return its variables.

Returns:
array

Definition at line 518 of file Installer.php.

Referenced by CliInstaller\execute().

Installer::getFakePassword ( realPassword)

Get a fake password for sending back to the user in HTML.

This is a security mechanism to avoid compromise of the password in the event of session ID compromise.

Parameters:
string$realPassword
Returns:
string

Definition at line 553 of file Installer.php.

Installer::getInstallSteps ( DatabaseInstaller installer) [protected]

Get an array of install steps.

Should always be in the format of array( 'name' => 'someuniquename', 'callback' => array( $obj, 'method' ), ) There must be a config-install-$name message defined per step, which will be shown on install.

Parameters:
DatabaseInstaller$installerDatabaseInstaller so we can make callbacks
Returns:
array

Definition at line 1521 of file Installer.php.

Returns:
ParserOptions

Definition at line 632 of file Installer.php.

static Installer::getPossibleBinPaths ( ) [static, protected]

Get an array of likely places we can find executables.

Check a bunch of known Unix-like defaults, as well as the PATH environment variable (which should maybe make it work for Windows?)

Returns:
array

Definition at line 1260 of file Installer.php.

Installer::getVar ( name,
default = null 
)

Get an MW configuration variable, or internal installer configuration variable.

The defaults come from $GLOBALS (ultimately DefaultSettings.php). Installer variables are typically prefixed by an underscore.

Parameters:
string$name
mixed$default
Returns:
mixed

Definition at line 474 of file Installer.php.

Referenced by CliInstaller\__construct(), and CliInstaller\envCheckPath().

Installs the auto-detected extensions.

Returns:
Status

Definition at line 1477 of file Installer.php.

static Installer::locateExecutable ( path,
names,
versionInfo = false 
) [static]

Search a path for any of the given executable names.

Returns the executable name if found. Also checks the version string returned by each executable.

Used only by environment checks.

Parameters:
string$pathPath to search
array$namesArray of executable names
array | bool$versionInfoFalse or array with two members: 0 => Command to run for version check, with $1 for the full executable name 1 => String to compare the output with

If $versionInfo is not false, only executables with a version matching $versionInfo[1] will be returned.

Returns:
bool|string

Definition at line 1285 of file Installer.php.

static Installer::locateExecutableInDefaultPaths ( names,
versionInfo = false 
) [static]

Same as locateExecutable(), but checks in getPossibleBinPaths() by default.

See also:
locateExecutable()
Parameters:
array$namesArray of possible names.
array | bool$versionInfoDefault: false or array with two members: 0 => Command to run for version check, with $1 for the full executable name 1 => String to compare the output with

If $versionInfo is not false, only executables with a version matching $versionInfo[1] will be returned.

Returns:
bool|string

Definition at line 1324 of file Installer.php.

On POSIX systems return the primary group of the webserver we're running under.

On other systems just returns null.

This is used to advice the user that he should chgrp his mw-config/data/images directory as the webserver user before he can install.

Public because SqliteInstaller needs it, and doesn't subclass Installer.

Returns:
mixed

Definition at line 581 of file Installer.php.

static Installer::overrideConfig ( ) [static]

Override the necessary bits of the config to run an installation.

Definition at line 1752 of file Installer.php.

Installer::parse ( text,
lineStart = false 
)

Convert wikitext $text to HTML.

This is potentially error prone since many parser features require a complete installed MW database. The solution is to just not use those features when you write your messages. This appears to work well enough. Basic formatting and external links work just fine.

But in case a translator decides to throw in a "#ifexist" or internal link or whatever, this function is guarded to catch the attempted DB access and to present some fallback text.

Parameters:
string$text
bool$lineStart
Returns:
string

Definition at line 612 of file Installer.php.

Installer::performInstallation ( startCB,
endCB 
)

Actually perform the installation.

Parameters:
callable$startCBA callback array for the beginning of each step
callable$endCBA callback array for the end of each step
Returns:
array Array of Status objects

Definition at line 1575 of file Installer.php.

Referenced by CliInstaller\execute().

Install step which adds a row to the site_stats table with appropriate initial values.

Parameters:
DatabaseInstaller$installer
Returns:
Status

Definition at line 653 of file Installer.php.

Definition at line 640 of file Installer.php.

ParserOptions are constructed before we determined the language, so fix it.

Parameters:
Language$lang

Definition at line 1407 of file Installer.php.

Installer::setPassword ( name,
value 
)

Set a variable which stores a password, except if the new value is a fake password in which case leave it as it is.

Parameters:
string$name
mixed$value

Definition at line 564 of file Installer.php.

Referenced by WebInstaller\setVarsFromRequest().

Installer::setVar ( name,
value 
)

Set a MW configuration variable, or internal installer configuration variable.

Parameters:
string$name
mixed$value

Definition at line 460 of file Installer.php.

Referenced by CliInstaller\__construct(), envCheckGraphics(), envCheckUploadsDirectory(), and WebInstaller\setVarsFromRequest().

Installer::showError ( msg) [abstract]

Same as showMessage(), but for displaying errors.

Parameters:
string$msg

Reimplemented in WebInstaller, and CliInstaller.

Referenced by envCheckMagicQuotes(), envCheckMbstring(), and envCheckRegisterGlobals().

Installer::showMessage ( msg) [abstract]

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 in WebInstaller, and CliInstaller.

Referenced by envCheckCache(), envCheckCtype(), and unicodeChar().

Installer::showStatusMessage ( Status status) [abstract]

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

Parameters:
Status$status

Reimplemented in WebInstaller, and CliInstaller.

Parameters:
Status$s

Definition at line 1694 of file Installer.php.

Installer::unicodeChar ( c) [protected]

Convert a hex string representing a Unicode code point to that code point.

Parameters:
string$c
Returns:
string

Definition at line 1107 of file Installer.php.

References showMessage().


Member Data Documentation

array Installer::$compiledDBs [protected]

List of detected DBs, access using getCompiledDBs().

Definition at line 57 of file Installer.php.

array Installer::$dbInstallers = array() [protected]

Cached DB installer instances, access using getDBInstaller().

Definition at line 63 of file Installer.php.

Installer::$dbTypes [static, protected]
Initial value:
 array(
        'mysql',
        'postgres',
        'oracle',
        'mssql',
        'sqlite',
    )

Definition at line 92 of file Installer.php.

array Installer::$defaultVarNames [protected]
Initial value:
 array(
        'wgSitename',
        'wgPasswordSender',
        'wgLanguageCode',
        'wgRightsIcon',
        'wgRightsText',
        'wgRightsUrl',
        'wgMainCacheType',
        'wgEnableEmail',
        'wgEnableUserEmail',
        'wgEnotifUserTalk',
        'wgEnotifWatchlist',
        'wgEmailAuthentication',
        'wgDBtype',
        'wgDiff3',
        'wgImageMagickConvertCommand',
        'wgGitBin',
        'IP',
        'wgScriptPath',
        'wgScriptExtension',
        'wgMetaNamespace',
        'wgDeletedDirectory',
        'wgEnableUploads',
        'wgShellLocale',
        'wgSecretKey',
        'wgUseInstantCommons',
        'wgUpgradeKey',
        'wgDefaultSkin',
        'wgResourceLoaderMaxQueryLength',
    )

MediaWiki configuration globals that will eventually be passed through to LocalSettings.php.

The names only are given here, the defaults typically come from DefaultSettings.php.

Definition at line 152 of file Installer.php.

array Installer::$envChecks [protected]
Initial value:
 array(
        'envCheckDB',
        'envCheckRegisterGlobals',
        'envCheckBrokenXML',
        'envCheckMagicQuotes',
        'envCheckMbstring',
        'envCheckSafeMode',
        'envCheckXML',
        'envCheckPCRE',
        'envCheckMemory',
        'envCheckCache',
        'envCheckModSecurity',
        'envCheckDiff3',
        'envCheckGraphics',
        'envCheckGit',
        'envCheckServer',
        'envCheckPath',
        'envCheckShellLocale',
        'envCheckUploadsDirectory',
        'envCheckLibicu',
        'envCheckSuhosinMaxValueLength',
        'envCheckCtype',
        'envCheckIconv',
        'envCheckJSON',
    )

A list of environment check methods called by doEnvironmentChecks().

These may output warnings using showMessage(), and/or abort the installation process by returning false.

For the WebInstaller these are only called on the Welcome page, if these methods have side-effects that should affect later page loads (as well as the generated stylesheet), use envPreps instead.

Definition at line 110 of file Installer.php.

array Installer::$envPreps [protected]
Initial value:
 array(
        'envPrepExtension',
        'envPrepServer',
        'envPrepPath',
    )

A list of environment preparation methods called by doEnvironmentPreps().

Definition at line 140 of file Installer.php.

array Installer::$extraInstallSteps = array() [protected]

Extra steps for installation, for things like DatabaseInstallers to modify.

Definition at line 231 of file Installer.php.

array Installer::$installSteps = array() [private]

The actual list of installation steps.

This will be initialized by getInstallSteps()

Definition at line 225 of file Installer.php.

array Installer::$internalDefaults [protected]

Variables that are stored alongside globals, and are used for any configuration of the installation process aside from the MediaWiki configuration.

Map of names to defaults.

Definition at line 189 of file Installer.php.

array Installer::$licenses

License types.

Definition at line 271 of file Installer.php.

Installer::$mediaWikiAnnounceLanguages [protected]
Initial value:
 array(
        'ca', 'cs', 'da', 'de', 'en', 'es', 'et', 'eu', 'fi', 'fr', 'hr', 'hu',
        'it', 'ja', 'ko', 'lt', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ro', 'ru',
        'sl', 'sr', 'sv', 'tr', 'uk'
    )

Supported language codes for Mailman.

Definition at line 318 of file Installer.php.

Installer::$mediaWikiAnnounceUrl [protected]
Initial value:
        'https://lists.wikimedia.org/mailman/subscribe/mediawiki-announce'

URL to mediawiki-announce subscription.

Definition at line 312 of file Installer.php.

int Installer::$minMemorySize = 50 [protected]

Minimum memory size in MB.

Definition at line 69 of file Installer.php.

array Installer::$objectCaches [protected]
Initial value:
 array(
        'xcache' => 'xcache_get',
        'apc' => 'apc_fetch',
        'wincache' => 'wincache_ucache_get'
    )

Known object cache types and the functions used to test for their existence.

Definition at line 237 of file Installer.php.

ParserOptions Installer::$parserOptions [protected]

Cached ParserOptions, used by parse().

Definition at line 81 of file Installer.php.

Title Installer::$parserTitle [protected]

Cached Title, used by parse().

Definition at line 75 of file Installer.php.

array Installer::$rightsProfiles
Initial value:
 array(
        'wiki' => array(),
        'no-anon' => array(
            '*' => array( 'edit' => false )
        ),
        'fishbowl' => array(
            '*' => array(
                'createaccount' => false,
                'edit' => false,
            ),
        ),
        'private' => array(
            '*' => array(
                'createaccount' => false,
                'edit' => false,
                'read' => false,
            ),
        ),
    )

User rights profiles.

Definition at line 247 of file Installer.php.

array Installer::$settings [protected]

Definition at line 51 of file Installer.php.

The oldest version of PCRE we can support.

Defining this is necessary because PHP may be linked with a system version of PCRE, which may be older than that bundled with the minimum PHP version.

Definition at line 47 of file Installer.php.


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