N°4714 New ITOP_CORE_VERSION constant

See following constants PHPDoc for information :
* core/config.class.inc.php ITOP_VERSION
* core/config.class.inc.php ITOP_CORE_VERSION
* setup/itopdesignformat.class.inc.php ITOP_DESIGN_LATEST_VERSION
This commit is contained in:
Pierre Goiffon
2022-01-26 10:31:20 +01:00
parent 477128ad53
commit 64e8aa5fee
2 changed files with 16 additions and 5 deletions

View File

@@ -27,12 +27,21 @@ define('ITOP_APPLICATION_SHORT', 'iTop');
* Constant containing the application version * Constant containing the application version
* Warning: this might be different from iTop core version! * Warning: this might be different from iTop core version!
* *
* @see ITOP_DESIGN_LATEST_VERSION for iTop core version * @see ITOP_CORE_VERSION to get iTop core version
*
* @used-by utils::GetItopPatchVersion
*/ */
define('ITOP_VERSION', '2.7.0-dev'); define('ITOP_VERSION', '2.7.0-dev');
/**
* Constant containing the iTop core version, whatever application was built
*
* Note that in iTop 3.0.0 we used {@see ITOP_DESIGN_LATEST_VERSION} to get core version.
* When releasing, both constants should be updated : see `.make/release/update-versions.php` for that !
*
* @since 2.7.7 3.0.1 3.1.1 N°4714 constant creation
* @used-by utils::GetItopPatchVersion
*/
define('ITOP_CORE_VERSION', '2.7.7');
define('ITOP_REVISION', 'svn'); define('ITOP_REVISION', 'svn');
define('ITOP_BUILD_DATE', '$WCNOW$'); define('ITOP_BUILD_DATE', '$WCNOW$');
define('ITOP_VERSION_FULL', ITOP_VERSION.'-'.ITOP_REVISION); define('ITOP_VERSION_FULL', ITOP_VERSION.'-'.ITOP_REVISION);

View File

@@ -20,9 +20,11 @@
/** /**
* iTop Datamodel XML format version * iTop Datamodel XML format version
* And also iTop core version
* *
* To test for iTop core version use this constant instead of {@link ITOP_VERSION} ! * It was also used in iTop 3.0.0 to get iTop core version (instead of {@see ITOP_VERSION} which gives the application version).
* To address this need you should now use {@see ITOP_CORE_VERSION}
*
* @see ITOP_CORE_VERSION to get full iTop core version
*/ */
define('ITOP_DESIGN_LATEST_VERSION', '1.7'); define('ITOP_DESIGN_LATEST_VERSION', '1.7');