ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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) | |
![]() | |
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 |
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 25 of file class.ilDBPdoManager.php.
ilDBPdoManager::__construct | ( | \PDO | $pdo, |
ilDBPdo | $db_instance | ||
) |
ilDBPdoManager constructor.
Definition at line 34 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
ilDBPdoManager::alterTable | ( | string | $name, |
array | $changes, | ||
bool | $check | ||
) |
Implements ilDBManager.
Definition at line 182 of file class.ilDBPdoManager.php.
References $db_instance, and $query.
ilDBPdoManager::createConstraint | ( | string | $table, |
string | $name, | ||
array | $definition | ||
) |
Implements ilDBManager.
Definition at line 115 of file class.ilDBPdoManager.php.
References $db_instance, $query, and ilDBPdo\quoteIdentifier().
Referenced by ilDBPdo\addUniqueConstraint().
ilDBPdoManager::createIndex | ( | string | $table, |
string | $name, | ||
array | $definition | ||
) |
Implements ilDBManager.
Definition at line 412 of file class.ilDBPdoManager.php.
References $query.
ilDBPdoManager::createSequence | ( | string | $seq_name, |
int | $start = 1 , |
||
array | $options = [] |
||
) |
Implements ilDBManager.
Definition at line 136 of file class.ilDBPdoManager.php.
References $query, $type, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
ilDBPdoManager::createTable | ( | string | $name, |
array | $fields, | ||
array | $options = array() |
||
) |
Definition at line 292 of file class.ilDBPdoManager.php.
References getQueryUtils().
ilDBPdoManager::dropConstraint | ( | string | $table, |
string | $name, | ||
bool | $primary = false |
||
) |
Implements ilDBManager.
Definition at line 453 of file class.ilDBPdoManager.php.
References $query, and getDBInstance().
ilDBPdoManager::dropIndex | ( | string | $table, |
string | $name | ||
) |
ilDBPdoManager::dropSequence | ( | string | $seq_name | ) |
Implements ilDBManager.
Definition at line 438 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropTable | ( | string | $name | ) |
$name | string |
Implements ilDBManager.
Definition at line 467 of file class.ilDBPdoManager.php.
References getDBInstance().
|
protected |
Definition at line 401 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
|
protected |
Definition at line 73 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences().
ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 49 of file class.ilDBPdoManager.php.
References $db_instance.
Referenced by dropConstraint(), dropTable(), and listTableConstraints().
ilDBPdoManager::getIndexName | ( | string | $idx | ) |
Implements ilDBPdoManagerInterface.
Definition at line 299 of file class.ilDBPdoManager.php.
ilDBPdoManager::getQueryUtils | ( | ) |
Definition at line 40 of file class.ilDBPdoManager.php.
References $query_utils.
Referenced by createTable(), and getTableCreationQuery().
ilDBPdoManager::getSequenceName | ( | string | $sqn | ) |
Implements ilDBPdoManagerInterface.
Definition at line 304 of file class.ilDBPdoManager.php.
ilDBPdoManager::getTableCreationQuery | ( | string | $name, |
array | $fields, | ||
array | $options = [] |
||
) |
Definition at line 448 of file class.ilDBPdoManager.php.
References getQueryUtils().
ilDBPdoManager::listSequences | ( | string | $database = null | ) |
Definition at line 87 of file class.ilDBPdoManager.php.
References $query, $res, and fixSequenceName().
ilDBPdoManager::listTableConstraints | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 325 of file class.ilDBPdoManager.php.
References $index, $query, fixIndexName(), and getDBInstance().
ilDBPdoManager::listTableFields | ( | string | $table | ) |
ilDBPdoManager::listTableIndexes | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 366 of file class.ilDBPdoManager.php.
References $index, $query, and fixIndexName().
ilDBPdoManager::listTables | ( | ?string | $database = null | ) |
Implements ilDBManager.
Definition at line 57 of file class.ilDBPdoManager.php.
References $data.
Referenced by ilDBPdoMySQL\migrateAllTablesToCollation().
|
protected |
Definition at line 28 of file class.ilDBPdoManager.php.
Referenced by __construct(), alterTable(), createConstraint(), and getDBInstance().
|
protected |
Definition at line 27 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils().