[TYPO3-dev] XCLASS conflict examples
tapio
tapio.markula at dnainternet.net
Mon Feb 13 18:06:21 CET 2006
>>Then there are at lest three alternavites to choose
>
>
> That is another problem.
> The core, and most of the extension are not provided hooks.
> XCLASS is the only choice of the public extension developer.
In many situation yes. I use myself XCLASSes but I also try to avoid
using them unnecessary. You can avoid using *unnecessary many* XCLASSes
by creating local used functions inside some class, which you have used
an XCLASS. Then you must create only *one* XCLASS implementation and you
can *avoid* creating two XCLASS implementation. Less XCLASS => less
possible conflicts.
If you modify a function with XCLASS it is always modified, when certain
class has been used. Using local version of function inside another
class, it is possible to avoid conficts, if the class, which use the
local function, has not been used in many situations but which can be
called rather a termination file.
More information about the TYPO3-dev
mailing list