[Typo3-dev] extending extensions

Carlos Chiari (DE) ccho at dimension-e.net
Wed Jan 14 16:59:51 CET 2004


Hi:

Just another idea,

The extending method could benefit from a line like this:

$TYPO3_CONF_VARS["BE"]["XCLASS"]["typo3/class.myclass.php"][ ] =
PATH_typo3conf."class.ux_myclass.php";


$TYPO3_CONF_VARS["BE"]["XCLASS"]["typo3/class.myclass.php"]['ExtendingOrder'
][] = $_EXTKEY;

The first line will always look for the the maximum of the existing integer
indices and add 1 to make the new key.
The second line will provide the developer with an array where to find the
order in which the class was extended, in case debuggin is needed.

Regards

Carlos


----- Original Message ----- 
From: "Carlos Chiari (DE)" <ccho at dimension-e.net>
To: <bnscs at gmx.de>; "List for Core-/Extension development"
<typo3-dev at lists.netfielders.de>
Sent: Wednesday, January 14, 2004 10:44 AM
Subject: Re: [Typo3-dev] extending extensions


> Hi:
>
> Can we use some sort of global var/array key-value  to know how many times
a
> class has been "extended"?
>
>
> 1. Instead of
>
> $TYPO3_CONF_VARS["BE"]["XCLASS"]["typo3/class.myclass.php"] =
> PATH_typo3conf."class.ux_myclass.php";
>
> in ext_localconf.php, we could use
>
> $TYPO3_CONF_VARS["BE"]["XCLASS"]["typo3/class.myclass.php"][] =
> PATH_typo3conf."class.ux_myclass.php";
>
> ^^^
>
> Then, at the function makeInstance, we look for this key to find out how
> many times the extension has been extended, and do the proper adjustments.
>
>
> Maybe this could help?
>
> Carlos
>
>







More information about the TYPO3-dev mailing list