ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
This class gives all kind of DB information using the database 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 database 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 $DIC, $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 152 of file class.ilDBAnalyzer.php.
ilDBAnalyzer::getBestDefinitionAlternative | ( | $a_def | ) |
$a_def |
Definition at line 116 of file class.ilDBAnalyzer.php.
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 262 of file class.ilDBAnalyzer.php.
References Vendor\Package\$c, Vendor\Package\$f, and $i.
ilDBAnalyzer::getFieldInformation | ( | $a_table, | |
$a_remove_not_allowed_attributes = false |
|||
) |
Get field information of a table.
string | table name |
Definition at line 65 of file class.ilDBAnalyzer.php.
References 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 205 of file class.ilDBAnalyzer.php.
References Vendor\Package\$c, Vendor\Package\$f, and $i.
ilDBAnalyzer::getPrimaryKeyInformation | ( | $a_table | ) |
Get primary key of a table.
string | table name |
Definition at line 174 of file class.ilDBAnalyzer.php.
References Vendor\Package\$c, and Vendor\Package\$f.
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 297 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.