mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 00:58:48 +02:00
3059 - Automatically set the documentation URLs
This commit is contained in:
@@ -2088,6 +2088,24 @@ class utils
|
||||
return COMPILATION_TIMESTAMP;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string eg : '2_7_0'
|
||||
*/
|
||||
public static function GetItopVersionWikiSyntax()
|
||||
{
|
||||
$sVersionShort = self::GetItopVersionShort();
|
||||
return str_replace('.', '_', $sVersionShort);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string eg '2.7.0' if ITOP_VERSION is '2.7.0-dev'
|
||||
*/
|
||||
public static function GetItopVersionShort()
|
||||
{
|
||||
$aExplodedVersion = explode('-', ITOP_VERSION);
|
||||
return $aExplodedVersion[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given class if configured as a high cardinality class.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user