JVersion
From Joomla! Documentation
JVersion is a class that provides Version information about the currently installed Joomla application.
Contents |
Availability
Defined in
/libraries/joomla/version.php
Methods
| Method name | Description |
|---|---|
| getHelpVersion | Returns the version suffix for help files. For example '.15' for Joomla 1.5 |
| getLongVersion | Returns the version in long format. For example "Joomla! 1.5.10 Production/Stable [Wohmamni] 27-March-2009 23:00 GMT" |
| getShortVersion | Returns the version in short format. For example "1.5.10" |
| isCompatible | Compares "A PHP standardized" version number against the current Joomla! version |
Importing
jimport( 'joomla.version' );
Using the JVERSION constant
The JVERSION constant is available everywhere in the Joomla code and defines the Short Version of the installed joomla framework.
