/** * @return bool */ public function TryToCreateDatabase() { CDbCreator::ClearStatic(); $aConnections =& CDbCreator::CreateConnector($this->oSettings); $oConnect = $aConnections[0]; if ($oConnect) { $oConnect->ConnectNoSelect(); $oConnect->Execute($this->oCommandCreator->CreateDatabase($this->oSettings->GetConf('Common/DBName'))); } else { throw new CApiBaseException(Errs::Db_ExceptionError); } return true; }