|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilDBAnalyzer:Public Member Functions | |
| __construct (ilDBInterface $ilDBInterface=null) | |
| ilDBAnalyzer constructor. More... | |
| getFieldInformation (string $a_table, bool $a_remove_not_allowed_attributes=false) | |
| Get field information of a table. More... | |
| getBestDefinitionAlternative (array $a_def) | |
| getAutoIncrementField (string $a_table) | |
| Gets the auto increment field of a table. More... | |
| getPrimaryKeyInformation (string $a_table) | |
| Get primary key of a table. More... | |
| getIndicesInformation (string $a_table, bool $a_abstract_table=false) | |
| Get information on indices of a table. More... | |
| getConstraintsInformation (string $a_table, bool $a_abstract_table=false) | |
| Get information on constraints of a table. More... | |
| hasSequence (string $a_table) | |
| Check whether sequence is defined for current table (only works on "abstraced" tables) More... | |
Protected Attributes | |
| ilDBManager | $manager |
| ilDBReverse | $reverse |
| ilDBInterface$il_db | |
| array | $allowed_attributes |
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 This class gives all kind of DB information using the database manager and reverse module.
Definition at line 32 of file class.ilDBAnalyzer.php.
| ilDBAnalyzer::__construct | ( | ilDBInterface | $ilDBInterface = null | ) |
ilDBAnalyzer constructor.
Definition at line 49 of file class.ilDBAnalyzer.php.
References $DIC, $ilDB, ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
| ilDBAnalyzer::getAutoIncrementField | ( | string | $a_table | ) |
Gets the auto increment field of a table.
This should be used on ILIAS 3.10.x "MySQL" tables only.
Definition at line 154 of file class.ilDBAnalyzer.php.
| ilDBAnalyzer::getBestDefinitionAlternative | ( | array | $a_def | ) |
Definition at line 119 of file class.ilDBAnalyzer.php.
Referenced by getFieldInformation().
Here is the caller graph for this function:| ilDBAnalyzer::getConstraintsInformation | ( | string | $a_table, |
| bool | $a_abstract_table = false |
||
| ) |
Get information on constraints of a table.
Primary key is NOT included! Fulltext indices are included and marked.
Definition at line 259 of file class.ilDBAnalyzer.php.
References $c, Vendor\Package\$f, and $i.
| ilDBAnalyzer::getFieldInformation | ( | string | $a_table, |
| bool | $a_remove_not_allowed_attributes = false |
||
| ) |
Get field information of a table.
Definition at line 69 of file class.ilDBAnalyzer.php.
References getBestDefinitionAlternative().
Here is the call graph for this function:| ilDBAnalyzer::getIndicesInformation | ( | string | $a_table, |
| bool | $a_abstract_table = false |
||
| ) |
Get information on indices of a table.
Primary key is NOT included! Fulltext indices are included and marked.
Definition at line 204 of file class.ilDBAnalyzer.php.
References $c, Vendor\Package\$f, and $i.
| ilDBAnalyzer::getPrimaryKeyInformation | ( | string | $a_table | ) |
Get primary key of a table.
Definition at line 174 of file class.ilDBAnalyzer.php.
References $c, and Vendor\Package\$f.
Referenced by hasSequence().
Here is the caller graph for this function:| ilDBAnalyzer::hasSequence | ( | string | $a_table | ) |
Check whether sequence is defined for current table (only works on "abstraced" tables)
Definition at line 292 of file class.ilDBAnalyzer.php.
References getPrimaryKeyInformation().
Here is the call graph for this function:
|
protected |
Definition at line 40 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 34 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 36 of file class.ilDBAnalyzer.php.
|
protected |
Definition at line 38 of file class.ilDBAnalyzer.php.