[TYPO3-dev] How to overwrite a class.t3lib_function?
Franz Holzinger
franz at fholzinger.com
Tue May 30 17:57:03 CEST 2006
Ernesto Baschny [cron IT] a écrit :
>>
>>It's not so dificult to extend this function (to make also a query for the
>>alias of the page_language_overlay table), but I don't want to do this in the
>>source-code. Is it possible to overwrite the function in an extension? Or any
>>other ideas to solve the problem?
>
>
> This is for what XCLASS is for. You can extend/modify any class in TYPO3
> in your own extension.
>
I do not think so. XCLASS only works where an object has been created
for a class. For libraries this is not always the case.
And some t3lib files do not have the
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsparser_ext.php'])
{
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsparser_ext.php']);
}
at the end.
E.g. the class.t3lib_div.php cannot be extended. Another solution would
be needed.
Greets,
Franz
More information about the TYPO3-dev
mailing list