[TASK] Add type converter for core types like Enumeration 08/24708/9
authorSascha Egerer <sascha.egerer@dkd.de>
Sun, 13 Oct 2013 18:44:17 +0000 (20:44 +0200)
committerThomas Maroschik <tmaroschik@dfau.de>
Tue, 15 Oct 2013 14:33:59 +0000 (16:33 +0200)
commit28dbbbf97c0b2e916361727163719a298a6f5ba0
treeef2917cd6b13e035d638e1a8b52422016e7da4eb
parent8dd8191be2201214cc4b3bac8af80a43a20ba49a
[TASK] Add type converter for core types like Enumeration

* Fixed a major bug in Enumeration in the isValid function
  to prevent PHP typeloose comparison hell and added Tests
* Added a CoreTypeInterface that can be used in the extbase
  data mapper to map properties to new core types like
  the enumeration

Resolves: #52762
Releases: 6.2
Change-Id: I966c64ae8a82d13bdcb47c41917da98c48f0b475
Reviewed-on: https://review.typo3.org/24708
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
Reviewed-by: Sascha Egerer
Reviewed-by: Stefan Neufeind
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
12 files changed:
typo3/sysext/core/Classes/Type/Enumeration.php
typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php
typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Type/TypeInterface.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Classes/Property/TypeConverter/CoreTypeConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php
typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php
typo3/sysext/extbase/ext_localconf.php