[TASK] Extract displayCond functionality from FormEngine to new class 80/19080/11
authorSebastian Michaelsen <michaelsen@t3seo.de>
Wed, 20 Mar 2013 12:33:54 +0000 (13:33 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 31 Mar 2013 11:34:17 +0000 (13:34 +0200)
commitcf1706708d43781bef47e6d0f9c15521caecdaec
tree10e8d4b8860f0406cd7f4c901db23e1d5cd38cc3
parentd830b432bdcf90396a976f6130886a491e7a4429
[TASK] Extract displayCond functionality from FormEngine to new class

In order to streamline \TYPO3\CMS\Backend\Form\FormEngine
(formerly t3lib_TCEforms) the functionality for 'displayCond' is extracted
into a new class: \TYPO3\CMS\Backend\Form\ElementConditionMatcher

* Refactor the code a bit without changing it's behaviour
* Deprecate FormEngine->isDisplayCondition() and remove its core usages
* Add a bit of documentation in the new class
* Add Unit tests

Releases: 6.1
Resolves: #46461
Change-Id: Ie199fe0600a70231f1e7b710a09164364cef8578
Reviewed-on: https://review.typo3.org/19080
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Form/ElementConditionMatcher.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Tests/Unit/Form/ElementConditionMatcherTest.php [new file with mode: 0644]