Feature #16915

Integrate function to determine extension key from a table name and vice versa

Added by Oliver Hader over 12 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2007-01-29
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

0004877.patch View (4.77 KB) Administrator Admin, 2007-01-29 12:21

0004877.png View (46.8 KB) Administrator Admin, 2007-01-29 12:21

History

#1 Updated by Oliver Hader over 12 years ago

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.

#2 Updated by Marcus Krause almost 11 years ago

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?

#3 Updated by Helmut Hummel about 8 years ago

  • Category changed from Extension Manager to Backend API
  • Target version deleted (0)
  • PHP Version deleted (5)

#4 Updated by Mathias Schreiber almost 5 years ago

  • Status changed from New to Needs Feedback

is this still valid?

#5 Updated by Alexander Opitz over 4 years ago

  • 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