MediaWiki
REL1_19
|
Class for generating LocalSettings.php file. More...
Public Member Functions | |
__construct (Installer $installer) | |
Constructor. | |
getText () | |
Return the full text of the generated LocalSettings.php file, including the extensions. | |
setGroupRights ($group, $rightsArr) | |
For $wgGroupPermissions, set a given ['group']['permission'] value. | |
writeFile ($fileName) | |
Write the generated LocalSettings to a file. | |
Static Public Member Functions | |
static | escapePhpString ($string) |
Returns the escaped version of a string of php code. | |
Private Member Functions | |
buildMemcachedServerList () | |
getDefaultText () | |
Private Attributes | |
$dbSettings = '' | |
$extensions = array() | |
$groupPermissions = array() | |
$installer | |
$safeMode = false | |
$values = array() |
Class for generating LocalSettings.php file.
Definition at line 15 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::__construct | ( | Installer $ | installer | ) |
Constructor.
$installer | Installer subclass |
Definition at line 33 of file LocalSettingsGenerator.php.
References $installer, escapePhpString(), Installer\getDBInstaller(), Installer\getVar(), and wfBoolToStr().
LocalSettingsGenerator::buildMemcachedServerList | ( | ) | [private] |
Definition at line 154 of file LocalSettingsGenerator.php.
Referenced by getDefaultText().
static LocalSettingsGenerator::escapePhpString | ( | $ | string | ) | [static] |
Returns the escaped version of a string of php code.
$string | String |
Definition at line 97 of file LocalSettingsGenerator.php.
Referenced by __construct(), getDefaultText(), SqliteInstaller\getLocalSettings(), Ibm_db2Installer\getLocalSettings(), MysqlInstaller\getLocalSettings(), and getText().
LocalSettingsGenerator::getDefaultText | ( | ) | [private] |
Definition at line 175 of file LocalSettingsGenerator.php.
References buildMemcachedServerList(), escapePhpString(), and wfBoolToStr().
Referenced by getText().
Return the full text of the generated LocalSettings.php file, including the extensions.
Definition at line 121 of file LocalSettingsGenerator.php.
References escapePhpString(), and getDefaultText().
Referenced by writeFile().
LocalSettingsGenerator::setGroupRights | ( | $ | group, |
$ | rightsArr | ||
) |
For $wgGroupPermissions, set a given ['group']['permission'] value.
$group | String Group name |
$rightsArr | Array An array of permissions, in the form of: array( 'right' => true, 'right2' => false ) |
Definition at line 86 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::writeFile | ( | $ | fileName | ) |
Write the generated LocalSettings to a file.
$fileName | String Full path to filename to write to |
Definition at line 147 of file LocalSettingsGenerator.php.
References getText().
LocalSettingsGenerator::$dbSettings = '' [private] |
Definition at line 20 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::$extensions = array() [private] |
Definition at line 17 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::$groupPermissions = array() [private] |
Definition at line 19 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::$installer [private] |
Definition at line 26 of file LocalSettingsGenerator.php.
Referenced by __construct().
LocalSettingsGenerator::$safeMode = false [private] |
Definition at line 21 of file LocalSettingsGenerator.php.
LocalSettingsGenerator::$values = array() [private] |
Definition at line 18 of file LocalSettingsGenerator.php.