[TYPO3-core] RFC: #9318: Enhance and fix tslib_eidtools

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Sep 10 09:10:42 CEST 2008


Hi!

This is SVN patch request.

Type: feature/bugfix

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=9318

Problem: Current implementation of tslib_eidtools has certain flows. Firsts, it misses a function to initialize $GLOBALS['LANG']. Thus every developer will have to do it manually. The solution is to add such function. The next problem is that TCA is not available by default in eID. So two new functions are added to include TCA for loaded extensions or include TCA for the particular extension (this will provide extra performance benefits). Next if eID script uses connectDB and initFeUsers, database connection will be initialized twice. The patch solves the problem. And finally there is a small performance enhancement by using cached instance of TSFE. 

Solution: the attached patch.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9318.diff
Type: text/x-diff
Size: 5314 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080910/27d98e3f/attachment-0001.diff 


More information about the TYPO3-team-core mailing list