modX::getVersionData
Gets the modX core version data. The array contains the following keys (examples for version "MODx Revolution 2.0.0-beta-3"):
- version - The current version number, eg: 2
- major_version - The current major version number, eg: 0
- minor_version - The current minor version number, eg: 0
- patch_level - The current release level, eg: 'beta-3'
- code_name - The code name for the product, eg: 'Revolution'
- full_version - A compiled full version name, eg: '2.0.0-beta-3'
- full_appname - The entire version name, eg: 'MODx Revolution 2.0.0-beta-3'
Syntax
API Doc: http://api.modxcms.com/modx/modX.html#getVersionData
array getVersionData ()
Example
Print out the current full version:
$vers = $modx->getVersionData(); echo $vers['full_version'];