|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilDBPdoManager. 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 | |
Class ilDBPdoManager.
Definition at line 9 of file class.ilDBPdoManager.php.
| ilDBPdoManager::__construct | ( | \PDO | $pdo, |
| ilDBPdo | $db_instance | ||
| ) |
ilDBPdoManager constructor.
| \PDO | $pdo | |
| \ilDBPdo | $db_instance |
Definition at line 27 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
| ilDBPdoManager::alterTable | ( | $name, | |
| $changes, | |||
| $check | |||
| ) |
| $name | |
| $changes | |
| $check |
Implements ilDBManager.
Definition at line 208 of file class.ilDBPdoManager.php.
References $db_instance, and $query.
| ilDBPdoManager::createConstraint | ( | $table, | |
| $name, | |||
| $definition | |||
| ) |
| $table | |
| $name | |
| $definition |
Implements ilDBManager.
Definition at line 131 of file class.ilDBPdoManager.php.
References $db_instance, and $query.
| ilDBPdoManager::createIndex | ( | $table, | |
| $name, | |||
| $definition | |||
| ) |
| $table | |
| $name | |
| $definition |
Implements ilDBManager.
Definition at line 464 of file class.ilDBPdoManager.php.
References $query.
| ilDBPdoManager::createSequence | ( | $seq_name, | |
$start = 1, |
|||
$options = array() |
|||
| ) |
| $seq_name | ||
| int | $start | |
| array | $options |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 158 of file class.ilDBPdoManager.php.
References $options, $query, $start, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
| ilDBPdoManager::createTable | ( | $name, | |
| $fields, | |||
$options = array() |
|||
| ) |
| $name | ||
| $fields | ||
| array | $options |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 307 of file class.ilDBPdoManager.php.
References $options, 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 524 of file class.ilDBPdoManager.php.
References $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 487 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropSequence | ( | $table_name | ) |
| $table_name |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 499 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropTable | ( | $name | ) |
| $name | Table-name |
Implements ilDBManager.
Definition at line 541 of file class.ilDBPdoManager.php.
References getDBInstance().
Here is the call graph for this function:
|
protected |
| $idx |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 447 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 84 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 54 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 324 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 42 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 333 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getTableCreationQuery | ( | $name, | |
| $fields, | |||
$options = array() |
|||
| ) |
| $name | ||
| $fields | ||
| array | $options |
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 513 of file class.ilDBPdoManager.php.
References $options, and getQueryUtils().
Here is the call graph for this function:| ilDBPdoManager::listSequences | ( | $database = null | ) |
| null | $database |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 102 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 361 of file class.ilDBPdoManager.php.
References $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 343 of file class.ilDBPdoManager.php.
| ilDBPdoManager::listTableIndexes | ( | $table | ) |
| $table |
Implements ilDBManager.
Reimplemented in ilDBPdoManagerPostgres.
Definition at line 408 of file class.ilDBPdoManager.php.
References $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 63 of file class.ilDBPdoManager.php.
|
protected |
Definition at line 18 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 14 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils(), and ilDBPdoManagerPostgres\getQueryUtils().