Feature #16915
closed
Integrate function to determine extension key from a table name and vice versa
Added by Oliver Hader about 17 years ago.
Updated almost 9 years ago.
Description
Sometimes it could be necessarry to know which table belongs to which extension key. If such a mapping is integrated, the inverse function is also possible.
e.g.
table 'tx_myextension_data' -> extension 'my_extension'
extension 'my_extension' -> tables 'tx_myextension_data,tx_myextension_categories'
The results should be stored in $GLOBALS['TYPO3_LOADED_EXT'][<extKey>]['tables'] and $GLOBALS['TYPO3_LOADED_TABLES'][<tableName>].
(issue imported from #M4877)
Files
Please see the attached file 0004877.patch.
A new watchTables method was integrated to t3lib_extMgm, that just watches the inclusion of new tables while processing the cached ext_tables.php file. Tables are are assigne to a key (and vice versa) by comparison of TCA before and after the processing of an extension's ext_tables.php file.
The PNG shows the structure of TYPO3_LOADED_TABLES using Tools>Configuration.
I guess this functionality is only useful when you are able to retrieve the extenension key to a table at ANY time. What happens when you deinstall the extension and afterward ask for the origin of a still existing table of that extension?
- Category changed from Extension Manager to Backend API
- Target version deleted (
0)
- PHP Version deleted (
5)
- Status changed from New to Needs Feedback
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF