コード例 #1
0
ファイル: MysqlInstaller.php プロジェクト: Tjorriemorrie/app
 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};";
 }
コード例 #2
0
 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}\";";
 }
コード例 #3
0
 /**
  * @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);";
 }
コード例 #4
0
 /**
  * @return string
  */
 public function getLocalSettings()
 {
     $dir = LocalSettingsGenerator::escapePhpString($this->getVar('wgSQLiteDataDir'));
     return "# SQLite-specific settings\n\$wgSQLiteDataDir = \"{$dir}\";";
 }
コード例 #5
0
 /**
  * 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}\";";
 }