|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Collaboration diagram for ilDbSetup: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) | |
| 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 8 of file class.ilDbSetup.php.
|
protected |
ilDbSetup constructor.
| \ilClient | $client |
Definition at line 39 of file class.ilDbSetup.php.
References $client, ilDBWrapperFactory\getWrapper(), and ilDBInterface\initFromIniFile().
Here is the call graph for this function:
|
protected |
Definition at line 287 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:| ilDbSetup::createDatabase | ( | $a_collation | ) |
| $a_collation |
Definition at line 100 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:| ilDbSetup::dropTables | ( | ) |
Definition at line 350 of file class.ilDbSetup.php.
References ilDBInterface\listTables(), and ilDBInterface\manipulate().
Here is the call graph for this function:| ilDbSetup::getClient | ( | ) |
Definition at line 299 of file class.ilDbSetup.php.
References $client.
Referenced by createDatabase(), and installDatabase().
Here is the caller graph for this function:| ilDbSetup::getIlDBInterface | ( | ) |
Definition at line 361 of file class.ilDbSetup.php.
References $ilDBInterface.
|
static |
| \ilClient | $client |
Definition at line 51 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 78 of file class.ilDbSetup.php.
References $password, $type, and getInstanceForClient().
Here is the call graph for this function:
|
protected |
| $fp | |
| $delim |
Definition at line 152 of file class.ilDbSetup.php.
References $result.
|
static |
| \ilClient | $client |
Definition at line 64 of file class.ilDbSetup.php.
References $client.
Referenced by ilClient\getDBSetup().
Here is the caller graph for this function:| ilDbSetup::getSqlDumpFile | ( | ) |
Definition at line 335 of file class.ilDbSetup.php.
References $sql_dump_file.
Referenced by readDumpUltraSmall().
Here is the caller graph for this function:| ilDbSetup::getStatus | ( | ) |
| ilDbSetup::installDatabase | ( | ) |
Definition at line 182 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:| ilDbSetup::isConnectable | ( | $keep_connection = false | ) |
Definition at line 233 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:| ilDbSetup::isDatabaseConnectable | ( | ) |
Definition at line 259 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:| ilDbSetup::isDatabaseExisting | ( | ) |
Definition at line 217 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:| ilDbSetup::isDatabaseInstalled | ( | ) |
Definition at line 272 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:| ilDbSetup::provideGlobalDB | ( | ) |
Definition at line 126 of file class.ilDbSetup.php.
References $DIC, $GLOBALS, and $ilDBInterface.
Referenced by installDatabase(), and isConnectable().
Here is the caller graph for this function:
|
protected |
Definition at line 169 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:| ilDbSetup::revokeGlobalDB | ( | ) |
Definition at line 140 of file class.ilDbSetup.php.
References $GLOBALS.
| ilDbSetup::setClient | ( | $client | ) |
| ilDbSetup::setIlDBInterface | ( | $ilDBInterface | ) |
| \ilDBInterface | $ilDBInterface |
Definition at line 370 of file class.ilDbSetup.php.
References $ilDBInterface.
| ilDbSetup::setSqlDumpFile | ( | $sql_dump_file | ) |
| string | $sql_dump_file |
Definition at line 344 of file class.ilDbSetup.php.
References $sql_dump_file.
| ilDbSetup::setStatus | ( | $status | ) |
|
protected |
Definition at line 15 of file class.ilDbSetup.php.
Referenced by __construct(), getClient(), getInstanceForClient(), getNewInstanceForClient(), and setClient().
|
protected |
Definition at line 27 of file class.ilDbSetup.php.
Referenced by getIlDBInterface(), provideGlobalDB(), and setIlDBInterface().
|
staticprotected |
Definition at line 23 of file class.ilDbSetup.php.
|
protected |
Definition at line 31 of file class.ilDbSetup.php.
Referenced by getSqlDumpFile(), and setSqlDumpFile().
|
protected |
Definition at line 19 of file class.ilDbSetup.php.
Referenced by getStatus(), and setStatus().
| const ilDbSetup::STATUS_FAILURE = 2 |
Definition at line 11 of file class.ilDbSetup.php.
| const ilDbSetup::STATUS_OK = 1 |
Definition at line 10 of file class.ilDbSetup.php.