ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This class gives all kind of DB information using the MDB2 manager and reverse module. More...
Public Member Functions | |
__construct (ilDBInterface $ilDBInterface=null) | |
ilDBAnalyzer constructor. More... | |
getFieldInformation ($a_table, $a_remove_not_allowed_attributes=false) | |
Get field information of a table. More... | |
getBestDefinitionAlternative ($a_def) | |
getAutoIncrementField ($a_table) | |
Gets the auto increment field of a table. More... | |
getPrimaryKeyInformation ($a_table) | |
Get primary key of a table. More... | |
getIndicesInformation ($a_table, $a_abstract_table=false) | |
Get information on indices of a table. More... | |
getConstraintsInformation ($a_table, $a_abstract_table=false) | |
Get information on constraints of a table. More... | |
hasSequence ($a_table) | |
Check whether sequence is defined for current table (only works on "abstraced" tables) More... | |
Protected Attributes | |
$manager | |
$reverse | |
$il_db | |
$allowed_attributes | |
This class gives all kind of DB information using the MDB2 manager and reverse module.
Definition at line 16 of file class.ilDBAnalyzer.php.
ilDBAnalyzer::__construct | ( | ilDBInterface | $ilDBInterface = null | ) |
ilDBAnalyzer constructor.
\ilDBInterface | $ilDBInterface |
Definition at line 44 of file class.ilDBAnalyzer.php.
References $ilDB, ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
ilDBAnalyzer::getAutoIncrementField | ( | $a_table | ) |
Gets the auto increment field of a table.
This should be used on ILIAS 3.10.x "MySQL" tables only.
string | table name |
Definition at line 151 of file class.ilDBAnalyzer.php.
References array.
ilDBAnalyzer::getBestDefinitionAlternative | ( | $a_def | ) |
$a_def |
Definition at line 115 of file class.ilDBAnalyzer.php.
References array.
Referenced by getFieldInformation().
ilDBAnalyzer::getConstraintsInformation | ( | $a_table, | |
$a_abstract_table = false |
|||
) |
Get information on constraints of a table.
Primary key is NOT included! Fulltext indices are included and marked.
string | table name |
Definition at line 261 of file class.ilDBAnalyzer.php.
References $i, $info, and array.
ilDBAnalyzer::getFieldInformation | ( | $a_table, | |
$a_remove_not_allowed_attributes = false |
|||
) |
Get field information of a table.
string | table name |
Definition at line 64 of file class.ilDBAnalyzer.php.
References array, and getBestDefinitionAlternative().
ilDBAnalyzer::getIndicesInformation | ( | $a_table, | |
$a_abstract_table = false |
|||
) |
Get information on indices of a table.
Primary key is NOT included! Fulltext indices are included and marked.
string | table name |
Definition at line 204 of file class.ilDBAnalyzer.php.
References $i, $info, and array.
ilDBAnalyzer::getPrimaryKeyInformation | ( | $a_table | ) |
Get primary key of a table.
string | table name |
Definition at line 173 of file class.ilDBAnalyzer.php.
Referenced by hasSequence().
ilDBAnalyzer::hasSequence | ( | $a_table | ) |
Check whether sequence is defined for current table (only works on "abstraced" tables)
string | table name |
Definition at line 296 of file class.ilDBAnalyzer.php.
References getPrimaryKeyInformation().
|
protected |
Definition at line 34 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 30 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 22 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 26 of file class.ilDBAnalyzer.php.