|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilDBPdoManager:
Collaboration diagram for ilDBPdoManager:Public Member Functions | |||
| __construct (\PDO $pdo, ilDBPdo $db_instance) | |||
| ilDBPdoManager constructor. More... | |||
| getQueryUtils () | |||
| getDBInstance () | |||
| listTables ($database=null) | |||
| listSequences ($database=null) | |||
| createConstraint ($table, $name, $definition) | |||
| createSequence ($seq_name, $start=1, $options=array()) | |||
| alterTable ($name, $changes, $check) | |||
| createTable ($name, $fields, $options=array()) | |||
| getIndexName ($idx) | |||
| getSequenceName ($sqn) | |||
| listTableFields ($table) | |||
| listTableConstraints ($table) | |||
| listTableIndexes ($table) | |||
| createIndex ($table, $name, $definition) | |||
| dropIndex ($table, $name) | |||
| dropSequence ($table_name) | |||
| getTableCreationQuery ($name, $fields, $options=array()) | |||
| dropConstraint ($table, $name, $primary=false) | |||
| dropTable ($name) | |||
| |||
| listTables ($database=null) | |||
| listSequences ($database=null) | |||
| createConstraint ($table, $name, $definition) | |||
| listTableFields ($table) | |||
| listTableConstraints ($table) | |||
| createSequence ($seq_name, $start=1, $options=array()) | |||
| listTableIndexes ($table) | |||
| alterTable ($name, $changes, $check) | |||
| createIndex ($table, $name, $definition) | |||
| dropIndex ($table, $name) | |||
| dropSequence ($seq_name) | |||
| dropConstraint ($table, $name, $primary=false) | |||
| dropTable ($name) | |||
| getIndexName ($idx) | |||
| getSequenceName ($sqn) | |||
Protected Member Functions | |
| fixSequenceName ($sqn, $check=false) | |
| fixIndexName ($idx) | |
Protected Attributes | |
| $pdo | |
| $db_instance | |
| $query_utils | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilDBPdoManager
Definition at line 24 of file class.ilDBPdoManager.php.
| ilDBPdoManager::__construct | ( | \PDO | $pdo, |
| ilDBPdo | $db_instance | ||
| ) |
ilDBPdoManager constructor.
| \PDO | $pdo | |
| \ilDBPdo | $db_instance |
Definition at line 43 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
| ilDBPdoManager::alterTable | ( | $name, | |
| $changes, | |||
| $check | |||
| ) |
| $name | |
| $changes | |
| $check |
Implements ilDBManager.
Definition at line 232 of file class.ilDBPdoManager.php.
References $db_instance, $name, and $query.
| ilDBPdoManager::createConstraint | ( | $table, | |
| $name, | |||
| $definition | |||
| ) |
| $table | |
| $name | |
| $definition |
Implements ilDBManager.
Definition at line 153 of file class.ilDBPdoManager.php.
References $db_instance, $name, and $query.
| ilDBPdoManager::createIndex | ( | $table, | |
| $name, | |||
| $definition | |||
| ) |
| $table | |
| $name | |
| $definition |
Implements ilDBManager.
Definition at line 496 of file class.ilDBPdoManager.php.
| ilDBPdoManager::createSequence | ( | $seq_name, | |
$start = 1, |
|||
$options = array() |
|||
| ) |
| $seq_name | ||
| int | $start | |
| array | $options |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 181 of file class.ilDBPdoManager.php.
References $query, $type, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
| ilDBPdoManager::createTable | ( | $name, | |
| $fields, | |||
$options = array() |
|||
| ) |
| $name | ||
| $fields | ||
| array | $options |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 332 of file class.ilDBPdoManager.php.
References $name, createTable(), and getQueryUtils().
Referenced by createTable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdoManager::dropConstraint | ( | $table, | |
| $name, | |||
$primary = false |
|||
| ) |
| $table | ||
| $name | ||
| bool | $primary |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 560 of file class.ilDBPdoManager.php.
References $name, $query, and getDBInstance().
Here is the call graph for this function:| ilDBPdoManager::dropIndex | ( | $table, | |
| $name | |||
| ) |
| $table | |
| $name |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 520 of file class.ilDBPdoManager.php.
References $name.
| ilDBPdoManager::dropSequence | ( | $table_name | ) |
| $table_name |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 533 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropTable | ( | $name | ) |
| $name | Table-name |
Implements ilDBManager.
Definition at line 578 of file class.ilDBPdoManager.php.
References $name, and getDBInstance().
Here is the call graph for this function:
|
protected |
| $idx |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 478 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
Here is the caller graph for this function:
|
protected |
| $sqn | ||
| bool | $check |
Definition at line 104 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences(), and ilDBPdoManagerPostgres\listSequences().
Here is the caller graph for this function:| ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 72 of file class.ilDBPdoManager.php.
References $db_instance.
Referenced by dropConstraint(), ilDBPdoManagerPostgres\dropConstraint(), ilDBPdoManagerPostgres\dropIndex(), dropTable(), and listTableConstraints().
Here is the caller graph for this function:| ilDBPdoManager::getIndexName | ( | $idx | ) |
| $idx |
Implements ilDBPdoManagerInterface.
Definition at line 350 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoManagerPostgres\dropConstraint(), and ilDBPdoManagerPostgres\dropIndex().
Here is the caller graph for this function:| ilDBPdoManager::getQueryUtils | ( | ) |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 59 of file class.ilDBPdoManager.php.
References $query_utils.
Referenced by createTable(), and getTableCreationQuery().
Here is the caller graph for this function:| ilDBPdoManager::getSequenceName | ( | $sqn | ) |
| $sqn |
Implements ilDBPdoManagerInterface.
Definition at line 360 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getTableCreationQuery | ( | $name, | |
| $fields, | |||
$options = array() |
|||
| ) |
| $name | ||
| $fields | ||
| array | $options |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 548 of file class.ilDBPdoManager.php.
References $name, and getQueryUtils().
Here is the call graph for this function:| ilDBPdoManager::listSequences | ( | $database = null | ) |
| null | $database |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 123 of file class.ilDBPdoManager.php.
References $query, $res, $result, and fixSequenceName().
Here is the call graph for this function:| ilDBPdoManager::listTableConstraints | ( | $table | ) |
| $table |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 390 of file class.ilDBPdoManager.php.
References $index, $query, $result, fixIndexName(), and getDBInstance().
Here is the call graph for this function:| ilDBPdoManager::listTableFields | ( | $table | ) |
| $table |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 371 of file class.ilDBPdoManager.php.
| ilDBPdoManager::listTableIndexes | ( | $table | ) |
| $table |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 438 of file class.ilDBPdoManager.php.
References $index, $query, $result, and fixIndexName().
Here is the call graph for this function:| ilDBPdoManager::listTables | ( | $database = null | ) |
| null | $database |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 82 of file class.ilDBPdoManager.php.
References $data.
|
protected |
Definition at line 34 of file class.ilDBPdoManager.php.
Referenced by __construct(), alterTable(), createConstraint(), ilDBPdoManagerPostgres\createDatabase(), ilDBPdoManagerPostgres\createSequence(), ilDBPdoManagerPostgres\dropDatabase(), ilDBPdoManagerPostgres\dropIndex(), ilDBPdoManagerPostgres\dropSequence(), getDBInstance(), ilDBPdoManagerPostgres\listSequences(), ilDBPdoManagerPostgres\listTableConstraints(), ilDBPdoManagerPostgres\listTableFields(), ilDBPdoManagerPostgres\listTableIndexes(), and ilDBPdoManagerPostgres\listTables().
|
protected |
Definition at line 30 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 53 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils(), and ilDBPdoManagerPostgres\getQueryUtils().