ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
createDatabase ($a_collation) | |
provideGlobalDB () | |
revokeGlobalDB () | |
installDatabase () | |
isDatabaseExisting () | |
isConnectable ($keep_connection=false) | |
isDatabaseConnectable () | |
isDatabaseInstalled () | |
getClient () | |
setClient ($client) | |
getStatus () | |
setStatus ($status) | |
getSqlDumpFile () | |
setSqlDumpFile ($sql_dump_file) | |
dropTables () | |
getIlDBInterface () | |
setIlDBInterface ($ilDBInterface) | |
Static Public Member Functions | |
static | getInstanceForClient (\ilClient $client) |
static | getInstanceForNewClient ($client_name, $dbname, $host='localhost', $username='root', $password='', $type=ilDBConstants::TYPE_PDO_MYSQL_INNODB) |
Data Fields | |
const | STATUS_OK = 1 |
const | STATUS_FAILURE = 2 |
Protected Member Functions | |
__construct (\ilClient $client) | |
ilDbSetup constructor. More... | |
getline ($fp, $delim) | |
readDump () | |
legacy version of readdump More... | |
readDumpSmall () | |
legacy version of readdump More... | |
readDumpUltraSmall () | |
canDatabaseBeInstalled () | |
Protected Attributes | |
$client | |
$status = self::STATUS_FAILURE | |
$ilDBInterface | |
$sql_dump_file = './setup/sql/ilias3.sql' | |
Static Protected Attributes | |
static | $instances = array() |
Class ilDbSetup.
Definition at line 10 of file class.ilDbSetup.php.
|
protected |
ilDbSetup constructor.
\ilClient | $client |
Definition at line 41 of file class.ilDbSetup.php.
References $client, ilClient\getDbType(), and ilDBInterface\initFromIniFile().
|
protected |
Definition at line 326 of file class.ilDbSetup.php.
References isDatabaseConnectable(), and isDatabaseInstalled().
Referenced by installDatabase().
ilDbSetup::createDatabase | ( | $a_collation | ) |
$a_collation |
Definition at line 92 of file class.ilDbSetup.php.
References ilDBInterface\connect(), ilDBInterface\createDatabase(), getClient(), ilDBInterface\getDBType(), ilDBInterface\initFromIniFile(), isConnectable(), ilDBConstants\TYPE_GALERA, ilDBConstants\TYPE_INNODB, ilDBConstants\TYPE_MYSQL, ilDBConstants\TYPE_PDO_MYSQL_INNODB, ilDBConstants\TYPE_PDO_MYSQL_MYISAM, and ilDBConstants\TYPE_PDO_POSTGRE.
ilDbSetup::dropTables | ( | ) |
Definition at line 382 of file class.ilDbSetup.php.
References ilDBInterface\listTables(), and ilDBInterface\manipulate().
ilDbSetup::getClient | ( | ) |
Definition at line 337 of file class.ilDbSetup.php.
References $client.
Referenced by createDatabase(), and installDatabase().
ilDbSetup::getIlDBInterface | ( | ) |
|
static |
\ilClient | $client |
Definition at line 52 of file class.ilDbSetup.php.
References $client, and ilClient\getId().
Referenced by ilClient\getDBSetup().
|
static |
$client_name | ||
$dbname | ||
string | $host | |
string | $username | |
string | $password | |
string | $type |
Definition at line 70 of file class.ilDbSetup.php.
|
protected |
$fp | |
$delim |
Definition at line 141 of file class.ilDbSetup.php.
References $result.
Referenced by readDump().
ilDbSetup::getSqlDumpFile | ( | ) |
Definition at line 369 of file class.ilDbSetup.php.
References $sql_dump_file.
Referenced by readDump(), readDumpSmall(), and readDumpUltraSmall().
ilDbSetup::getStatus | ( | ) |
ilDbSetup::installDatabase | ( | ) |
Definition at line 221 of file class.ilDbSetup.php.
References canDatabaseBeInstalled(), ilDBInterface\connect(), getClient(), ilDBInterface\getDBType(), provideGlobalDB(), readDumpUltraSmall(), ilDBConstants\TYPE_GALERA, ilDBConstants\TYPE_INNODB, ilDBConstants\TYPE_MYSQL, ilDBConstants\TYPE_ORACLE, ilDBConstants\TYPE_PDO_MYSQL_INNODB, ilDBConstants\TYPE_PDO_MYSQL_MYISAM, ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDbSetup::isConnectable | ( | $keep_connection = false | ) |
Definition at line 272 of file class.ilDbSetup.php.
References ilDBInterface\connect(), ilDBInterface\getDBType(), provideGlobalDB(), and ilDBConstants\TYPE_ORACLE.
Referenced by createDatabase(), isDatabaseConnectable(), and isDatabaseExisting().
ilDbSetup::isDatabaseConnectable | ( | ) |
Definition at line 300 of file class.ilDbSetup.php.
References ilDBInterface\connect(), and isConnectable().
Referenced by canDatabaseBeInstalled(), and isDatabaseExisting().
ilDbSetup::isDatabaseExisting | ( | ) |
Definition at line 257 of file class.ilDbSetup.php.
References isConnectable(), and isDatabaseConnectable().
Referenced by isDatabaseInstalled().
ilDbSetup::isDatabaseInstalled | ( | ) |
Definition at line 312 of file class.ilDbSetup.php.
References $target, array, isDatabaseExisting(), and ilDBInterface\listTables().
Referenced by canDatabaseBeInstalled().
ilDbSetup::provideGlobalDB | ( | ) |
Definition at line 117 of file class.ilDbSetup.php.
References $DIC, $GLOBALS, and $ilDBInterface.
Referenced by installDatabase(), and isConnectable().
|
protected |
legacy version of readdump
Definition at line 160 of file class.ilDbSetup.php.
References $r, getline(), getSqlDumpFile(), and ilDBInterface\query().
|
protected |
legacy version of readdump
Definition at line 193 of file class.ilDbSetup.php.
References getSqlDumpFile(), and ilDBInterface\manipulate().
|
protected |
Definition at line 209 of file class.ilDbSetup.php.
References ilDBInterface\execute(), getSqlDumpFile(), and ilDBInterface\prepareManip().
Referenced by installDatabase().
ilDbSetup::revokeGlobalDB | ( | ) |
Definition at line 130 of file class.ilDbSetup.php.
References $GLOBALS.
ilDbSetup::setClient | ( | $client | ) |
ilDbSetup::setIlDBInterface | ( | $ilDBInterface | ) |
\ilDBInterface | $ilDBInterface |
Definition at line 400 of file class.ilDbSetup.php.
References $ilDBInterface.
ilDbSetup::setSqlDumpFile | ( | $sql_dump_file | ) |
string | $sql_dump_file |
Definition at line 377 of file class.ilDbSetup.php.
References $sql_dump_file.
ilDbSetup::setStatus | ( | $status | ) |
|
protected |
Definition at line 17 of file class.ilDbSetup.php.
Referenced by __construct(), getClient(), getInstanceForClient(), and setClient().
|
protected |
Definition at line 29 of file class.ilDbSetup.php.
Referenced by getIlDBInterface(), provideGlobalDB(), and setIlDBInterface().
|
staticprotected |
Definition at line 25 of file class.ilDbSetup.php.
|
protected |
Definition at line 33 of file class.ilDbSetup.php.
Referenced by getSqlDumpFile(), and setSqlDumpFile().
|
protected |
Definition at line 21 of file class.ilDbSetup.php.
Referenced by getStatus(), and setStatus().
const ilDbSetup::STATUS_FAILURE = 2 |
Definition at line 13 of file class.ilDbSetup.php.
const ilDbSetup::STATUS_OK = 1 |
Definition at line 12 of file class.ilDbSetup.php.