[TYPO3-core] RFC: #14945: Rename t3lib_BEfunc::time and introduce new function

Martin Kutschker masi-no at spam-typo3.org
Mon Jul 5 09:53:19 CEST 2010


Am 05.07.2010 09:44, schrieb Steffen Kamper:
> Hi,
> 
> Georg Ringer schrieb:
>> Am 02.07.2010 12:18, schrieb Benjamin Mack:
>>> wow, this is exactly how I imagined it. I got to look into the code
>>> closer, but that's the approach I think is clean.
>>
>> I don't know if the whole thing should belong to the BE only, so maybe
>> t3lib works better?
>>
> 
> 
> imho these functions are not bound to BE, so beFunc is the wrong holder for them. t3lib_utility_Date
> is the right context for all this stuff, so i like to suggest:
> * add functions to t3lib_utility_Date
> * use these functions in t3lib_beFunc and add deprecation there
> 
> This allows the correct naming of the functions without loosing any compatibility and also have a
> cleanup.

That's how v2 is done.

Currently the functions in the utility class are only copies. That's ok for now, but in a next step
we can think about improvements (if only of the names) and additions.

Masi


More information about the TYPO3-team-core mailing list