[TYPO3-core] RFC #10563: Feature: Add Core API function to Extension Management: getEMConfArray()

Sebastian Gebhard s.gebhard at markenmotiv.de
Mon Mar 2 15:50:17 CET 2009


After trying to implement the new function into em_index for testing i 
noticed, that there is also a demand for cleaning a em_conf.php for a 
not installed extension (just when the extension is about to be installed).

So I have two suggestions:

1. Make getEMConfArray() a "polymorph" function.
If first parameter is a string, use it as $extKey and search for 
em_conf.php of this extension.
If first paramter is an array use it as EM_CONF array
Second parameter would have the same functionality.

2. Introduce a new function like cleanConfArray() to t3lib_extMgm
The new function will take an EM_CONF array and convert it from old 
style to TER2 style if needed and can be used in getEMConfArray(), 
em_index and anywhere else.

I also noticed the code can still be tweaked up a little bit.

I'll wait for your comments and provide a new patch at the end of the week.


More information about the TYPO3-team-core mailing list