[TYPO3-dev] Informations about the best way to replace a function in a class

Pierre Rouwens prouwens at tc2l.ca
Mon Jul 10 16:30:04 CEST 2006


Hi Mickael,

OK i understand... so what the best way to achieve this ?

Michael Stucki a écrit :
> Pierre Rouwens wrote:
> 
>> I need to replace a function in tslib_BEfunc. What is the best way to
>> achieve it ? i know using xclass is bad ? but what can i do else ?
>> I'm starting an extension where i can configure stuff to work with the
>> workspace, and i'm trying to understand the whole system.
> 
> I suppose you mean t3lib_BEfunc. Of course XCLASSes are generally a bad idea
> (see other discussions) but even more in case of this class it will not
> work.
> 
> The reason is that most parts (if not all) of t3lib_BEfunc are
> class-functions which are called (::) without instanciating the class
> object (which is required to use XCLASSes).
> 
> - michael




More information about the TYPO3-dev mailing list