From Habari Project
The version class implements the following static classes, mostly used internally by Habari:
Returns the current Database Version. The database version is an svn revision number in which the database structure was last changed.
Returns the current API Version. The API version is an svn revision in which any of the Habari API's were last changed.
Returns the current Habari version. The version is in the form of 'x.y[.z]-[type] (eg. 0.7-alpha).
Store the current database version in the database (options table).
Retruns True if the database needs to be updated based on the source database version being newer than the schema last applied to the database. This is used by the installer to run the upgrade script(s) during updating.
The update notification system used by Habari compares the Habari version of the local copy against the version reported by the Habari update beacon service.