ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 | getNewInstanceForClient (\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, and ilClient\getDbType().
|
protected |
Definition at line 345 of file class.ilDbSetup.php.
References isDatabaseConnectable(), and isDatabaseInstalled().
Referenced by installDatabase().
ilDbSetup::createDatabase | ( | $a_collation | ) |
$a_collation |
Definition at line 103 of file class.ilDbSetup.php.
References getClient(), 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 | ( | ) |
ilDbSetup::getClient | ( | ) |
Definition at line 357 of file class.ilDbSetup.php.
References $client.
Referenced by createDatabase(), and installDatabase().
ilDbSetup::getIlDBInterface | ( | ) |
|
static |
\ilClient | $client |
Definition at line 53 of file class.ilDbSetup.php.
References $client, and ilClient\getId().
|
static |
$client_name | ||
$dbname | ||
string | $host | |
string | $username | |
string | $password | |
string | $type |
Definition at line 80 of file class.ilDbSetup.php.
References $password, and $type.
|
protected |
$fp | |
$delim |
Definition at line 155 of file class.ilDbSetup.php.
References $result.
Referenced by readDump().
|
static |
\ilClient | $client |
Definition at line 66 of file class.ilDbSetup.php.
References $client.
Referenced by ilClient\getDBSetup().
ilDbSetup::getSqlDumpFile | ( | ) |
Definition at line 393 of file class.ilDbSetup.php.
References $sql_dump_file.
Referenced by readDump(), readDumpSmall(), and readDumpUltraSmall().
ilDbSetup::getStatus | ( | ) |
ilDbSetup::installDatabase | ( | ) |
Definition at line 239 of file class.ilDbSetup.php.
References canDatabaseBeInstalled(), getClient(), provideGlobalDB(), readDumpUltraSmall(), ilDBConstants\TYPE_GALERA, ilDBConstants\TYPE_INNODB, ilDBConstants\TYPE_MYSQL, 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 291 of file class.ilDbSetup.php.
References provideGlobalDB().
Referenced by createDatabase(), isDatabaseConnectable(), and isDatabaseExisting().
ilDbSetup::isDatabaseConnectable | ( | ) |
Definition at line 317 of file class.ilDbSetup.php.
References isConnectable().
Referenced by canDatabaseBeInstalled(), and isDatabaseExisting().
ilDbSetup::isDatabaseExisting | ( | ) |
Definition at line 275 of file class.ilDbSetup.php.
References isConnectable(), and isDatabaseConnectable().
Referenced by isDatabaseInstalled().
ilDbSetup::isDatabaseInstalled | ( | ) |
Definition at line 330 of file class.ilDbSetup.php.
References $target, and isDatabaseExisting().
Referenced by canDatabaseBeInstalled().
ilDbSetup::provideGlobalDB | ( | ) |
Definition at line 129 of file class.ilDbSetup.php.
References $DIC, $GLOBALS, and $ilDBInterface.
Referenced by installDatabase(), and isConnectable().
|
protected |
legacy version of readdump
Definition at line 175 of file class.ilDbSetup.php.
References $r, getline(), and getSqlDumpFile().
|
protected |
legacy version of readdump
Definition at line 209 of file class.ilDbSetup.php.
References getSqlDumpFile().
|
protected |
Definition at line 226 of file class.ilDbSetup.php.
References getSqlDumpFile().
Referenced by installDatabase().
ilDbSetup::revokeGlobalDB | ( | ) |
Definition at line 143 of file class.ilDbSetup.php.
References $GLOBALS.
ilDbSetup::setClient | ( | $client | ) |
ilDbSetup::setIlDBInterface | ( | $ilDBInterface | ) |
\ilDBInterface | $ilDBInterface |
Definition at line 428 of file class.ilDbSetup.php.
References $ilDBInterface.
ilDbSetup::setSqlDumpFile | ( | $sql_dump_file | ) |
string | $sql_dump_file |
Definition at line 402 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(), getNewInstanceForClient(), 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.