Project

General

Profile

Actions

Feature #35822

closed

Implement method to convert integer to version number

Added by Michael Schams over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-04-10
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

The class t3lib_utility_VersionNumber in file t3lib/utility/class.t3lib_utility_versionnumber.php contains a method to convert version numbers to integer values (e.g. "4.12.3" to 4012003) but not the other way round.

I propose to implement an additional method to allow developers to convert integer values to version numbers, so the integer 4012003 would be converted to "4.12.3" as a string.

Please find my suggestion attached (updated file "class.t3lib_utility_versionnumber.php" and the patch).


Files

class.t3lib_utility_versionnumber.php (2.51 KB) class.t3lib_utility_versionnumber.php Updated file Michael Schams, 2012-04-10 14:35
patch-35822.diff (1.27 KB) patch-35822.diff Patch for issue #35822 Michael Schams, 2012-04-10 14:35
Actions

Also available in: Atom PDF