コード例 #1
0
ファイル: oxdb.php プロジェクト: ioanok/symfoxid
 /**
  * Sets configs object with method getVar() and properties needed for successful connection.
  *
  * @param object $oConfig configs.
  */
 public static function setConfig($oConfig)
 {
     self::$_dbType = $oConfig->getVar('dbType');
     self::$_dbUser = $oConfig->getVar('dbUser');
     self::$_dbPwd = $oConfig->getVar('dbPwd');
     self::$_dbName = $oConfig->getVar('dbName');
     self::$_dbHost = $oConfig->getVar('dbHost');
     self::$_iDebug = $oConfig->getVar('iDebug');
     self::$_blLogChangesInAdmin = $oConfig->getVar('blLogChangesInAdmin');
     self::$_iUtfMode = $oConfig->getVar('iUtfMode');
     self::$_sDefaultDatabaseConnection = $oConfig->getVar('sDefaultDatabaseConnection');
     self::$_aSlaveHosts = $oConfig->getVar('aSlaveHosts');
     self::$_iMasterSlaveBalance = $oConfig->getVar('iMasterSlaveBalance');
     self::$_sAdminEmail = $oConfig->getVar('sAdminEmail');
     self::$_sLocalTimeFormat = $oConfig->getVar('sLocalTimeFormat');
     self::$_sLocalDateFormat = $oConfig->getVar('sLocalDateFormat');
 }