[TYPO3-dev] version number of extension

Joerg Schoppet joerg at schoppet.de
Fri Jul 7 09:06:00 CEST 2006


Franz Holzinger wrote:
> Hello,
> 
> I need a version number for the tt_products extension which can be asked 
> in the code.
> 
> class tx_ttproducts_pi1 extends ... (derives from tslib_pibase)
> 
> var $version = '020501';            // version number
> 
> This is needed to be stored together with the order data. Sometimes the 
> format of the order data might change. So the programs dealing with 
> order data can detect by the version number which format will be used here.
> 
> However it would be fine to find a common solution for all extensions.
> Which versioning scheme would you prefer? Or should a function be 
> written to fetch the version number from ext_emconf.php as a number? A 
> number value will be needed for easier comparison.
> 
> Greets,
> 
> Franz
> 
> 

Have you looked at $GLOBALS['TYPO3_LOADED_EXT']['tt_products'] ?

Regards

Joerg Schoppet




More information about the TYPO3-dev mailing list