[TASK] Move t3lib_tcemain::getUniqueFields to EXT:version 34/11634/11
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 24 Apr 2013 10:13:05 +0000 (12:13 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Wed, 24 Apr 2013 10:17:20 +0000 (12:17 +0200)
The method is only used within EXT:version, therefore
it should be moved.

See related review in EXT:version: https://review.typo3.org/11632

Change-Id: Idc115f78e44a54bfaab86cc7e434c6688fe34d65
Resolves: #37494
Releases: 6.1
Reviewed-on: https://review.typo3.org/11634
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 7334475..a93f464 100644 (file)
@@ -6357,9 +6357,10 @@ class DataHandler {
         *
         * @param string $table Table name
         * @return array Array of fieldnames
-        * @todo Define visibility
+        * @deprecated since 6.1, will be removed in two versions, use \TYPO3\CMS\Version\Hook\DataHandlerHook::getUniqueFields() instead
         */
        public function getUniqueFields($table) {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
                $listArr = array();
                if ($GLOBALS['TCA'][$table]['columns']) {
                        foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $configArr) {