|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
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 (?string $database=null) | |
| listSequences (string $database=null) | |
| createConstraint (string $table, string $name, array $definition) | |
| createSequence (string $seq_name, int $start=1, array $options=[]) | |
| alterTable (string $name, array $changes, bool $check) | |
| createTable (string $name, array $fields, array $options=array()) | |
| getIndexName (string $idx) | |
| getSequenceName (string $sqn) | |
| listTableFields (string $table) | |
| listTableConstraints (string $table) | |
| listTableIndexes (string $table) | |
| createIndex (string $table, string $name, array $definition) | |
| dropIndex (string $table, string $name) | |
| dropSequence (string $seq_name) | |
| getTableCreationQuery (string $name, array $fields, array $options=[]) | |
| dropConstraint (string $table, string $name, bool $primary=false) | |
| dropTable (string $name) | |
| addForeignKey (string $foreign_key_name, array $field_names, string $table_name, array $reference_field_names, string $reference_table, ?ForeignKeyConstraints $on_update=null, ?ForeignKeyConstraints $on_delete=null) | |
| dropForeignKey (string $foreign_key_name, string $table_name) | |
| foreignKeyExists (string $foreign_key_name, string $table_name) | |
Public Member Functions inherited from ilDBManager | |
| listSequences (?string $database=null) | |
Protected Member Functions | |
| fixSequenceName (string $sqn, bool $check=false) | |
| fixIndexName (string $idx) | |
Protected Attributes | |
| PDO | $pdo |
| ilDBPdo | $db_instance |
| ilQueryUtils | $query_utils = null |
Class ilDBPdoManager.
Definition at line 27 of file class.ilDBPdoManager.php.
| ilDBPdoManager::__construct | ( | \PDO | $pdo, |
| ilDBPdo | $db_instance | ||
| ) |
ilDBPdoManager constructor.
Definition at line 36 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
| ilDBPdoManager::addForeignKey | ( | string | $foreign_key_name, |
| array | $field_names, | ||
| string | $table_name, | ||
| array | $reference_field_names, | ||
| string | $reference_table, | ||
| ?ForeignKeyConstraints | $on_update = null, |
||
| ?ForeignKeyConstraints | $on_delete = null |
||
| ) |
| string[] | $field_names |
| string[] | $reference_field_names |
Definition at line 481 of file class.ilDBPdoManager.php.
| ilDBPdoManager::alterTable | ( | string | $name, |
| array | $changes, | ||
| bool | $check | ||
| ) |
Implements ilDBManager.
Definition at line 184 of file class.ilDBPdoManager.php.
References $db_instance.
| ilDBPdoManager::createConstraint | ( | string | $table, |
| string | $name, | ||
| array | $definition | ||
| ) |
Implements ilDBManager.
Definition at line 117 of file class.ilDBPdoManager.php.
References $db_instance, and ilDBPdo\quoteIdentifier().
Referenced by ilDBPdo\addUniqueConstraint().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdoManager::createIndex | ( | string | $table, |
| string | $name, | ||
| array | $definition | ||
| ) |
Implements ilDBManager.
Definition at line 414 of file class.ilDBPdoManager.php.
| ilDBPdoManager::createSequence | ( | string | $seq_name, |
| int | $start = 1, |
||
| array | $options = [] |
||
| ) |
Implements ilDBManager.
Definition at line 138 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_COLUMNS_NAME.
| ilDBPdoManager::createTable | ( | string | $name, |
| array | $fields, | ||
| array | $options = array() |
||
| ) |
Definition at line 294 of file class.ilDBPdoManager.php.
References getQueryUtils().
Here is the call graph for this function:| ilDBPdoManager::dropConstraint | ( | string | $table, |
| string | $name, | ||
| bool | $primary = false |
||
| ) |
Implements ilDBManager.
Definition at line 455 of file class.ilDBPdoManager.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoManager::dropForeignKey | ( | string | $foreign_key_name, |
| string | $table_name | ||
| ) |
Definition at line 518 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropIndex | ( | string | $table, |
| string | $name | ||
| ) |
Implements ilDBManager.
Definition at line 432 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropSequence | ( | string | $seq_name | ) |
Implements ilDBManager.
Definition at line 440 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropTable | ( | string | $name | ) |
| $name | string |
Implements ilDBManager.
Definition at line 469 of file class.ilDBPdoManager.php.
References getDBInstance().
Here is the call graph for this function:
|
protected |
Definition at line 403 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
Here is the caller graph for this function:
|
protected |
Definition at line 75 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences().
Here is the caller graph for this function:| ilDBPdoManager::foreignKeyExists | ( | string | $foreign_key_name, |
| string | $table_name | ||
| ) |
Definition at line 527 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 51 of file class.ilDBPdoManager.php.
References $db_instance.
Referenced by dropConstraint(), dropTable(), and listTableConstraints().
Here is the caller graph for this function:| ilDBPdoManager::getIndexName | ( | string | $idx | ) |
Implements ilDBPdoManagerInterface.
Definition at line 301 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getQueryUtils | ( | ) |
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 | ( | string | $sqn | ) |
Implements ilDBPdoManagerInterface.
Definition at line 306 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getTableCreationQuery | ( | string | $name, |
| array | $fields, | ||
| array | $options = [] |
||
| ) |
Definition at line 450 of file class.ilDBPdoManager.php.
References getQueryUtils().
Here is the call graph for this function:| ilDBPdoManager::listSequences | ( | string | $database = null | ) |
Definition at line 89 of file class.ilDBPdoManager.php.
References $res, and fixSequenceName().
Here is the call graph for this function:| ilDBPdoManager::listTableConstraints | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 327 of file class.ilDBPdoManager.php.
References fixIndexName(), and getDBInstance().
Here is the call graph for this function:| ilDBPdoManager::listTableFields | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 311 of file class.ilDBPdoManager.php.
References $data.
| ilDBPdoManager::listTableIndexes | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 368 of file class.ilDBPdoManager.php.
References fixIndexName().
Here is the call graph for this function:| ilDBPdoManager::listTables | ( | ?string | $database = null | ) |
Implements ilDBManager.
Definition at line 59 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoMySQL\migrateAllTablesToCollation().
Here is the caller graph for this function:
|
protected |
Definition at line 30 of file class.ilDBPdoManager.php.
Referenced by __construct(), alterTable(), createConstraint(), and getDBInstance().
|
protected |
Definition at line 29 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 31 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils().