|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilDBPdoManager. More...
Inheritance diagram for ilDBPdoManager:
Collaboration diagram for ilDBPdoManager:Public Member Functions | |
| __construct (protected \PDO $pdo, protected \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=[]) | |
| 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) | |
| listTables (?string $database=null) | |
| listSequences (?string $database=null) | |
| createConstraint (string $table, string $name, array $definition) | |
| listTableFields (string $table) | |
| listTableConstraints (string $table) | |
| createSequence (string $seq_name, int $start=1, array $options=[]) | |
| listTableIndexes (string $table) | |
| alterTable (string $name, array $changes, bool $check) | |
| createIndex (string $table, string $name, array $definition) | |
| dropIndex (string $table, string $name) | |
| dropSequence (string $seq_name) | |
| dropConstraint (string $table, string $name, bool $primary=false) | |
| dropTable (string $name) | |
| getIndexName (string $idx) | |
| getSequenceName (string $sqn) | |
Protected Member Functions | |
| fixSequenceName (string $sqn, bool $check=false) | |
| fixIndexName (string $idx) | |
Protected Attributes | |
| ilQueryUtils | $query_utils = null |
Class ilDBPdoManager.
Definition at line 27 of file class.ilDBPdoManager.php.
| ilDBPdoManager::__construct | ( | protected \PDO | $pdo, |
| protected \ilDBPdo | $db_instance | ||
| ) |
| 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 478 of file class.ilDBPdoManager.php.
| ilDBPdoManager::alterTable | ( | string | $name, |
| array | $changes, | ||
| bool | $check | ||
| ) |
Implements ilDBManager.
Definition at line 181 of file class.ilDBPdoManager.php.
References $check.
| ilDBPdoManager::createConstraint | ( | string | $table, |
| string | $name, | ||
| array | $definition | ||
| ) |
Implements ilDBManager.
Definition at line 114 of file class.ilDBPdoManager.php.
Referenced by ilDBPdo\addUniqueConstraint().
Here is the caller graph for this function:| ilDBPdoManager::createIndex | ( | string | $table, |
| string | $name, | ||
| array | $definition | ||
| ) |
Implements ilDBManager.
Definition at line 411 of file class.ilDBPdoManager.php.
| ilDBPdoManager::createSequence | ( | string | $seq_name, |
| int | $start = 1, |
||
| array | $options = [] |
||
| ) |
Implements ilDBManager.
Definition at line 135 of file class.ilDBPdoManager.php.
References ILIAS\UI\Implementation\Component\Input\Field\$options, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
| ilDBPdoManager::createTable | ( | string | $name, |
| array | $fields, | ||
| array | $options = [] |
||
| ) |
Definition at line 291 of file class.ilDBPdoManager.php.
References ILIAS\UI\Implementation\Component\Input\Field\$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 | ( | string | $table, |
| string | $name, | ||
| bool | $primary = false |
||
| ) |
Implements ilDBManager.
Definition at line 452 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 515 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropIndex | ( | string | $table, |
| string | $name | ||
| ) |
Implements ilDBManager.
Definition at line 429 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropSequence | ( | string | $seq_name | ) |
Implements ilDBManager.
Definition at line 437 of file class.ilDBPdoManager.php.
| ilDBPdoManager::dropTable | ( | string | $name | ) |
| $name | string |
Implements ilDBManager.
Definition at line 466 of file class.ilDBPdoManager.php.
References getDBInstance().
Here is the call graph for this function:
|
protected |
Definition at line 400 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 71 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 524 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 47 of file class.ilDBPdoManager.php.
Referenced by dropConstraint(), dropTable(), and listTableConstraints().
Here is the caller graph for this function:| ilDBPdoManager::getIndexName | ( | string | $idx | ) |
Implements ilDBPdoManagerInterface.
Definition at line 298 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getQueryUtils | ( | ) |
Definition at line 38 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 303 of file class.ilDBPdoManager.php.
| ilDBPdoManager::getTableCreationQuery | ( | string | $name, |
| array | $fields, | ||
| array | $options = [] |
||
| ) |
Definition at line 447 of file class.ilDBPdoManager.php.
References ILIAS\UI\Implementation\Component\Input\Field\$options, and getQueryUtils().
Here is the call graph for this function:| ilDBPdoManager::listSequences | ( | ?string | $database = null | ) |
Implements ilDBManager.
Definition at line 85 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 324 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 308 of file class.ilDBPdoManager.php.
References $data.
| ilDBPdoManager::listTableIndexes | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 365 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 55 of file class.ilDBPdoManager.php.
References $data.
|
protected |
Definition at line 29 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils().