[BUGFIX] Static access to Enumeration constants 53/32353/3
authorSascha Egerer <sascha.egerer@dkd.de>
Mon, 25 Aug 2014 14:46:23 +0000 (16:46 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 10 Oct 2014 10:01:21 +0000 (12:01 +0200)
commitb15537d2c9a543f757ef46e6c6e0080129cfb42a
treebcbbdc70bd0d13fd842ff3c4bc3efefd56ddd0e0
parenta29faf91c1b84562ad068aafaf9f5e329c09bf85
[BUGFIX] Static access to Enumeration constants

To get all available constants for a TYPO3\CMS\Core\Type\Enumeration
an instance of the Enumeration is required. This is changed by
defining the `getConstants` method as static and using
`get_called_class()` instead of `get_class($this)`.

Resolves: #61090
Releases: master,6.2
Change-Id: I45e8241c6f41a23a1748e620c000b6dd59d6f389
Reviewed-on: http://review.typo3.org/32353
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Type/Enumeration.php