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 #2

Updated by Markus Klein over 12 years ago

  • Assignee deleted (Susanne Moog)

I'll push this patch to gerrit for you.

Actions #3

Updated by Gerrit Code Review over 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #4

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #5

Updated by Gerrit Code Review over 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #6

Updated by Gerrit Code Review over 12 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #7

Updated by Gerrit Code Review over 12 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #8

Updated by Gerrit Code Review over 12 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10210

Actions #9

Updated by Michael Schams over 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Gerrit Code Review over 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10289

Actions #11

Updated by Steffen Ritter over 12 years ago

  • TYPO3 Version changed from 4.7 to 6.0
Actions #12

Updated by Susanne Moog over 12 years ago

  • Status changed from Under Review to Resolved
Actions #13

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF