====== JVersion ====== ^ API ^ Package ^ phpDocumentor ^ Last reviewed ^ Doc status ^ | {{references:package.png?nolink}} [[references:joomla.framework|Joomla.Framework]] | {{references:package.png?nolink}} [[references:joomla.framework|Joomla.Framework]] | [[http://api.joomla.org/Joomla-Framework/JVersion.html|JVersion]] | never | Work in progress | Provides version information of Joomla! **Note:** If your code runs in the context of the Joomla! Front-end (Site) or Back-end (Administrator) you can use the global object variable **$_VERSION** instead of creating a new instance of ''JVersion''. ===== Methods ===== ^ Method ^ Description ^ | {{references:Method.png?nolink}} [[JVersion-getHelpVersion|getHelpVersion]] | Returns a version suffix for help files. This method is used internally by the Back-end help system. | | {{references:Method.png?nolink}} [[JVersion-getLongVersion|getLongVersion]] | Returns the long format Joomla! version. | | {{references:Method.png?nolink}} [[JVersion-getShortVersion|getShortVersion]] | Returns the short format Joomla! version. | | {{references:Method.png?nolink}} [[JVersion-isCompatible|isCompatible]] | Compares a "PHP standardized" version number against the current Joomla! version. | ===== Constants ===== ^ Constant ^ Description ^ | {{references:Constant.png?nolink}} **JVERSION** | A constant containing the Joomla! short version. | ---- ~~DISCUSSION~~