Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Contao
Database
setDatabase
Contao\Database::setDatabase PHP Méthode
Database Class Documentation
Afficher le fichier
Open project: contao/core-bundle
setDatabase()
public
méthode
Change the current database
public
setDatabase
(
string
$strDatabase
)
$strDatabase
string
The name of the target database
public function setDatabase($strDatabase) { $this->resConnection->exec("USE {$strDatabase}"); }
Database
__clone
__construct
__destruct
__get
beginTransaction
commitTransaction
execute
executeCached
executeUncached
fieldExists
findInSet
getChildRecords
getFieldNames
getInstance
getNextId
getParentRecords
getSizeOf
getUuid
indexExists
isUniqueValue
listFields
listTables
lockTables
prepare
query
rollbackTransaction
setDatabase
tableExists
unlockTables