Task #90055

Introduce PermutationUtility

Added by Oliver Hader about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-01-04
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

PermutationUtility::meltStringItems([['a', 'b'], ['c', 'd'], ['e', 'f']]);

results into
['ace', 'acf', 'ade', 'adf', 'bce', 'bcf', 'bde', 'bdf']

PermutationUtility::meltArrayItems(['a','b'], ['c','e'], ['f','g']);

results into
['a', 'c', 'e'], ['a', 'c', 'f'], ['a', 'd', 'e'], ['a', 'd', 'f'],
['b', 'c', 'e'], ['b', 'c', 'f'], ['b', 'd', 'e'], ['b', 'd', 'f']

Associated revisions

Revision 61a1260d (diff)
Added by Oliver Hader about 2 months ago

[TASK] Introduce PermutationUtility

Permutations are currently used in test cases - however it would
be possible to make use of this functionality in regular sources
as well. That's why corresponding methods are moved into a new
PermutationUtility implementation.

Resolves: #90055
Releases: master, 9.5
Change-Id: I05d978ada2021c7db1b7abeb8a21a825472ae8cc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819
Tested-by: TYPO3com <>
Tested-by: Andreas Fernandez <>
Tested-by: Benni Mack <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Benni Mack <>

Revision ee7bbcb9 (diff)
Added by Oliver Hader about 2 months ago

[TASK] Introduce PermutationUtility

Permutations are currently used in test cases - however it would
be possible to make use of this functionality in regular sources
as well. That's why corresponding methods are moved into a new
PermutationUtility implementation.

Resolves: #90055
Releases: master, 9.5
Change-Id: I05d978ada2021c7db1b7abeb8a21a825472ae8cc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62823
Tested-by: TYPO3com <>
Tested-by: Oliver Hader <>
Reviewed-by: Oliver Hader <>

History

#1 Updated by Oliver Hader about 2 months ago

  • Description updated (diff)

#2 Updated by Oliver Hader about 2 months ago

  • Description updated (diff)

#3 Updated by Gerrit Code Review about 2 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#4 Updated by Gerrit Code Review about 2 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#5 Updated by Gerrit Code Review about 2 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#6 Updated by Gerrit Code Review about 2 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#7 Updated by Gerrit Code Review about 2 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#8 Updated by Gerrit Code Review about 2 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62819

#9 Updated by Oliver Hader about 2 months ago

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

#10 Updated by Gerrit Code Review about 2 months ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62823

#11 Updated by Oliver Hader about 2 months ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF