Why don't you use the standard method we use for extensions? See:
http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5_-_Part_06#Packaging_the_component
http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5_-_Part_15
and
http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5_-_Part_17.
If you use that, the version number is stored in the #__extensions
table as a value in the manifest_cache column. You can check it just
by reading that row (based on the component name) and unpacking that
column.
Good luck. Mark
On Mon, May 14, 2012 at 6:55 PM, xtempore wrote:
> I'm working on a component which acts as a wrapper for a 3rd party
> product.
>
> As part of the component I want to be able to install the latest
> version of that product, and then keep track of the version so that I
> can later check whether it is still up to date.
>
> To do that, I need somewhere to store the current product version.
>
> One place I considered is in the parameters for the component, but I'm
> not sure how best to do that.
>
> Also I'm not sure what would then happen the next time the user
> updates the options. Would my additional parameter get lost?
>
> Any suggestions as to the best place/method for storing internal data
> like this>\?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
Hi. Sorry, I misunderstood. In that case, I don't think there is any convention. Just make a place in your database. Mark
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/JVpzCm9kHvwJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.