[TYPO3-dev] Detecting XCLASS conflicts
Bernhard Kraft
kraftb at kraftb.at
Wed Mar 22 15:53:03 CET 2006
Tapio Markula wrote:
>
>> I don't know if you guys and girls on this list have noticed it but I
>> have written
>> an "XCLASS manager" which is able to properly define the inheritance
>> of XCLASSes
>> so more than one XCLASS can extend the same file (truly the XCLASSes
>> are "chained")
>
>
> looks good. This probably works as far as XCLASSes don't extend the
> *same* function. Then the order is relevant.
> The last is dominant? Correct?
If it really happens that two XCLASSes extend the same method the later on will "win".
> If the used XCLASSed
> function doesn't fit for some extension, then you must touch to the
> source code and made ux_ux_some_extenstionClass from
> ux_some_extensionClass? Correct?
this get's done by the XCLASS-Manager.
It rewrites the code of the extension automaticall if you "move it to the right" and makes ux_ux_
out of ux_
It also changes the XCLASS inclusion lines in the ext_localconf.php file of the moved extension so
it XCLASSes the parent class:
$TYPO3_CONF_VARS['XCLASS']['BE']['t3lib/class.t3lib_tceforms.php'] = t3lib_extMGM: ....
get's rewritten to:
$TYPO3_CONF_VARS['XCLASS']['BE']['ext/someext/class.ux_t3lib_tceforms.php'] = t3lib_extMGM: ....
PS: I didn't want to download the complete TER at this time cause it still was the old one ... now
that the new TER is finished I could download it completly and search for XCLASS extensions using grep
or something similar and do some "field tests" ...
Of course if some people report me that it works properly for some extensions (please name them) I couls
also put it into TER (until now just download it from this demo-site - directly from the EM)
greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
More information about the TYPO3-dev
mailing list