public function getLocalSettings() { $dbmysql5 = wfBoolToStr($this->getVar('wgDBmysql5', true)); $prefix = LocalSettingsGenerator::escapePhpString($this->getVar('wgDBprefix')); $tblOpts = LocalSettingsGenerator::escapePhpString($this->getTableOptions()); return "# MySQL specific settings\n\$wgDBprefix = \"{$prefix}\";\n\n# MySQL table options to use during installation or update\n\$wgDBTableOptions = \"{$tblOpts}\";\n\n# Experimental charset support for MySQL 5.0.\n\$wgDBmysql5 = {$dbmysql5};"; }
public function getLocalSettings() { $schema = LocalSettingsGenerator::escapePhpString($this->getVar('wgDBmwschema')); $prefix = LocalSettingsGenerator::escapePhpString($this->getVar('wgDBprefix')); $windowsauth = $this->getVar('wgDBWindowsAuthentication') ? 'true' : 'false'; return "# MSSQL specific settings\n\$wgDBWindowsAuthentication = {$windowsauth};\n\$wgDBmwschema = \"{$schema}\";\n\$wgDBprefix = \"{$prefix}\";"; }
/** * @return string */ public function getLocalSettings() { $dir = LocalSettingsGenerator::escapePhpString($this->getVar('wgSQLiteDataDir')); return "# SQLite-specific settings\n\$wgSQLiteDataDir = \"{$dir}\";\n\$wgObjectCaches[CACHE_DB] = array(\n\t'class' => 'SqlBagOStuff',\n\t'loggroup' => 'SQLBagOStuff',\n\t'server' => array(\n\t\t'type' => 'sqlite',\n\t\t'dbname' => 'wikicache',\n\t\t'tablePrefix' => '',\n\t\t'flags' => 0\n\t)\n);"; }
/** * @return string */ public function getLocalSettings() { $dir = LocalSettingsGenerator::escapePhpString($this->getVar('wgSQLiteDataDir')); return "# SQLite-specific settings\n\$wgSQLiteDataDir = \"{$dir}\";"; }
/** * Generate the code to store the DB2-specific settings defined by the configuration form * @return string */ public function getLocalSettings() { $schema = LocalSettingsGenerator::escapePhpString($this->getVar('wgDBmwschema')); $port = LocalSettingsGenerator::escapePhpString($this->getVar('wgDBport')); return "# IBM_DB2 specific settings\n\$wgDBmwschema = \"{$schema}\";\n\$wgDBport = \"{$port}\";"; }