[TYPO3-v4] Deprecation of t3lib_div::testInt() in TYPO3 4.6
Georg Ringer
typo3 at ringerge.org
Wed Nov 23 11:35:07 CET 2011
Am 23.11.2011 11:26, schrieb Jigal van Hemert:
> It shows also the need for a more intelligent deprecation log...
true but another topic.
> Now you see the very unwanted side effect of such deprecations. Instead
> of using an API call it has to be wrapped inside a function of your own.
anyone of course can use the t3lib_div::, it works still out of the box.
> Why would one wrap two functions + check in a function when both
> function contain exactly the same code? It's better copy the code to my
> own function then.
because code should get better, even the t3lib_div or maybe especially
t3lib_div!
> Because there is a list of those wrapper functions a new extension is
> born; another extension programmers library.
this is just the case if an extension wants to be supprted in 2 major
versions at the same time with the same version!
extension authors still can just say version 1.0 > for 4-5 and use 2.0
for 4-6 and develop only the new one.
it is the same all the time, also with new features!
t3lib->exec_SELECTgetSingleRow doesn't work with 4-3 (or even 4-4?)
because it has been introduced later. so if you want your extension
working *at the same time with the same version* with *both major
versions*, you need to take care of theat.
same for new syntax with icons, same for the tree, same for so many things.
fluid got many new viewhelpers with 4-6. if you want to have those in
4-5 you need to have those in another way.
georg
More information about the TYPO3-project-v4
mailing list