ILIAS
eassessment Revision 61809
|
This class gives all kind of DB information using the MDB2 manager and reverse module. More...
Public Member Functions | |
__construct () | |
Constructor. | |
getFieldInformation ($a_table, $a_remove_not_allowed_attributes=false) | |
Get field information of a table. | |
getBestDefinitionAlternative ($a_def) | |
getAutoIncrementField ($a_table) | |
Gets the auto increment field of a table. | |
getPrimaryKeyInformation ($a_table) | |
Get primary key of a table. | |
getIndicesInformation ($a_table, $a_abstract_table=false) | |
Get information on indices of a table. | |
getConstraintsInformation ($a_table, $a_abstract_table=false) | |
Get information on constraints of a table. | |
hasSequence ($a_table) | |
Check whether sequence is defined for current table (only works on "abstraced" tables) |
This class gives all kind of DB information using the MDB2 manager and reverse module.
Definition at line 13 of file class.ilDBAnalyzer.php.
ilDBAnalyzer::__construct | ( | ) |
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 128 of file class.ilDBAnalyzer.php.
ilDBAnalyzer::getBestDefinitionAlternative | ( | $a_def | ) |
Definition at line 92 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 245 of file class.ilDBAnalyzer.php.
References $f.
ilDBAnalyzer::getFieldInformation | ( | $a_table, | |
$a_remove_not_allowed_attributes = false |
|||
) |
Get field information of a table.
string | table name |
Definition at line 36 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 180 of file class.ilDBAnalyzer.php.
References $f.
ilDBAnalyzer::getPrimaryKeyInformation | ( | $a_table | ) |
Get primary key of a table.
string | table name |
Definition at line 150 of file class.ilDBAnalyzer.php.
References $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 278 of file class.ilDBAnalyzer.php.
References getPrimaryKeyInformation().