|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilDbSetup. More...
Collaboration diagram for DBSetup:Public Member Functions | |
| isConnectable ($keep_connection=false) | |
| createDatabase ($a_collation) | |
| provideGlobalDB () | |
| revokeGlobalDB () | |
| installDatabase () | |
| isDatabaseExisting () | |
| 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 () | |
| @description legacy version of readdump More... | |
| readDumpSmall () | |
| @description 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 67 of file class.ilDbSetup.php.
References $client, ilDBWrapperFactory\getWrapper(), and ilDBInterface\initFromIniFile().
Here is the call graph for this function:
|
protected |
Definition at line 346 of file class.ilDbSetup.php.
References isDatabaseConnectable(), and isDatabaseInstalled().
Referenced by installDatabase().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::createDatabase | ( | $a_collation | ) |
| $a_collation |
Definition at line 129 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.
Here is the call graph for this function:| DBSetup::dropTables | ( | ) |
Definition at line 409 of file class.ilDbSetup.php.
References ilDBInterface\listTables(), and ilDBInterface\manipulate().
Here is the call graph for this function:| DBSetup::getClient | ( | ) |
Definition at line 358 of file class.ilDbSetup.php.
References $client.
Referenced by createDatabase(), and installDatabase().
Here is the caller graph for this function:| DBSetup::getIlDBInterface | ( | ) |
Definition at line 420 of file class.ilDbSetup.php.
References $ilDBInterface.
|
static |
| \ilClient | $client |
Definition at line 79 of file class.ilDbSetup.php.
References $client.
Referenced by getInstanceForNewClient().
Here is the caller graph for this function:
|
static |
| $client_name | ||
| $dbname | ||
| string | $host | |
| string | $username | |
| string | $password | |
| string | $type |
Definition at line 106 of file class.ilDbSetup.php.
References $password, $type, and getInstanceForClient().
Here is the call graph for this function:
|
protected |
| $fp | |
| $delim |
Definition at line 181 of file class.ilDbSetup.php.
References $result.
Referenced by readDump().
Here is the caller graph for this function:
|
static |
| \ilClient | $client |
Definition at line 92 of file class.ilDbSetup.php.
References $client.
| DBSetup::getSqlDumpFile | ( | ) |
Definition at line 394 of file class.ilDbSetup.php.
References $sql_dump_file.
Referenced by readDump(), readDumpSmall(), and readDumpUltraSmall().
Here is the caller graph for this function:| DBSetup::getStatus | ( | ) |
| DBSetup::installDatabase | ( | ) |
Definition at line 265 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_PDO_MYSQL_INNODB, ilDBConstants\TYPE_PDO_MYSQL_MYISAM, ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
Here is the call graph for this function:| DBSetup::isConnectable | ( | $keep_connection = false | ) |
Definition at line 18 of file class.ilDbSetup.php.
References Vendor\Package\$e, ilDBInterface\connect(), ilDBInterface\getDBType(), and provideGlobalDB().
Referenced by createDatabase(), isDatabaseConnectable(), and isDatabaseExisting().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::isDatabaseConnectable | ( | ) |
Definition at line 318 of file class.ilDbSetup.php.
References ilDBInterface\connect(), and isConnectable().
Referenced by canDatabaseBeInstalled(), and isDatabaseExisting().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::isDatabaseExisting | ( | ) |
Definition at line 301 of file class.ilDbSetup.php.
References isConnectable(), and isDatabaseConnectable().
Referenced by isDatabaseInstalled().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::isDatabaseInstalled | ( | ) |
Definition at line 331 of file class.ilDbSetup.php.
References isDatabaseExisting(), and ilDBInterface\listTables().
Referenced by canDatabaseBeInstalled().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::provideGlobalDB | ( | ) |
Definition at line 155 of file class.ilDbSetup.php.
References $DIC, $GLOBALS, and $ilDBInterface.
Referenced by installDatabase(), and isConnectable().
Here is the caller graph for this function:
|
protected |
@description legacy version of readdump
Definition at line 201 of file class.ilDbSetup.php.
References Vendor\Package\$e, getline(), getSqlDumpFile(), and ilDBInterface\query().
Here is the call graph for this function:
|
protected |
@description legacy version of readdump
Definition at line 235 of file class.ilDbSetup.php.
References getSqlDumpFile(), and ilDBInterface\manipulate().
Here is the call graph for this function:
|
protected |
Definition at line 252 of file class.ilDbSetup.php.
References ilDBInterface\execute(), getSqlDumpFile(), and ilDBInterface\prepareManip().
Referenced by installDatabase().
Here is the call graph for this function:
Here is the caller graph for this function:| DBSetup::revokeGlobalDB | ( | ) |
Definition at line 169 of file class.ilDbSetup.php.
References $GLOBALS.
| DBSetup::setClient | ( | $client | ) |
| DBSetup::setIlDBInterface | ( | $ilDBInterface | ) |
| \ilDBInterface | $ilDBInterface |
Definition at line 429 of file class.ilDbSetup.php.
References $ilDBInterface.
| DBSetup::setSqlDumpFile | ( | $sql_dump_file | ) |
| string | $sql_dump_file |
Definition at line 403 of file class.ilDbSetup.php.
References $sql_dump_file.
| DBSetup::setStatus | ( | $status | ) |
|
protected |
Definition at line 43 of file class.ilDbSetup.php.
Referenced by __construct(), getClient(), getInstanceForClient(), getNewInstanceForClient(), and setClient().
|
protected |
Definition at line 55 of file class.ilDbSetup.php.
Referenced by getIlDBInterface(), provideGlobalDB(), and setIlDBInterface().
|
staticprotected |
Definition at line 51 of file class.ilDbSetup.php.
|
protected |
Definition at line 59 of file class.ilDbSetup.php.
Referenced by getSqlDumpFile(), and setSqlDumpFile().
|
protected |
Definition at line 47 of file class.ilDbSetup.php.
Referenced by getStatus(), and setStatus().
| const DBSetup::STATUS_FAILURE = 2 |
Definition at line 13 of file class.ilDbSetup.php.
| const DBSetup::STATUS_OK = 1 |
Definition at line 12 of file class.ilDbSetup.php.