[!!!][TASK] Remove deprecated getUniqueFields function from DataHandler
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / DataHandler.php
index 65a0b36..1b47797 100644 (file)
@@ -6741,29 +6741,6 @@ class DataHandler {
                return $listArr;
        }
 
-       /**
-        * Returns all fieldnames from a table which have the unique evaluation type set.
-        *
-        * @param string $table Table name
-        * @return array Array of fieldnames
-        * @deprecated since 6.1, will be removed in two versions, use \TYPO3\CMS\Version\Hook\DataHandlerHook::getUniqueFields() instead
-        */
-       public function getUniqueFields($table) {
-               GeneralUtility::logDeprecatedFunction();
-               $listArr = array();
-               if ($GLOBALS['TCA'][$table]['columns']) {
-                       foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $configArr) {
-                               if ($configArr['config']['type'] === 'input') {
-                                       $evalCodesArray = GeneralUtility::trimExplode(',', $configArr['config']['eval'], TRUE);
-                                       if (in_array('uniqueInPid', $evalCodesArray) || in_array('unique', $evalCodesArray)) {
-                                               $listArr[] = $field;
-                                       }
-                               }
-                       }
-               }
-               return $listArr;
-       }
-
        /**
         * Returns TRUE if the TCA/columns field type is a DB reference field
         *