| @@ 1001-1021 (lines=21) @@ | ||
| 998 | * @return string[] |
|
| 999 | * @deprecated since TYPO3 v9, will be removed in TYPO3 v10 |
|
| 1000 | */ |
|
| 1001 | protected function getSearchFields($tableName) |
|
| 1002 | { |
|
| 1003 | $fieldArray = []; |
|
| 1004 | $fieldListWasSet = false; |
|
| 1005 | // Get fields from ctrl section of TCA first |
|
| 1006 | if (isset($GLOBALS['TCA'][$tableName]['ctrl']['searchFields'])) { |
|
| 1007 | $fieldArray = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$tableName]['ctrl']['searchFields'], true); |
|
| 1008 | $fieldListWasSet = true; |
|
| 1009 | } |
|
| 1010 | // Call hook to add or change the list |
|
| 1011 | $hookParameters = [ |
|
| 1012 | 'tableHasSearchConfiguration' => $fieldListWasSet, |
|
| 1013 | 'tableName' => $tableName, |
|
| 1014 | 'searchFields' => &$fieldArray, |
|
| 1015 | 'searchString' => $this->searchString |
|
| 1016 | ]; |
|
| 1017 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['mod_list']['getSearchFieldList'] ?? [] as $hookFunction) { |
|
| 1018 | GeneralUtility::callUserFunction($hookFunction, $hookParameters, $this); |
|
| 1019 | } |
|
| 1020 | return $fieldArray; |
|
| 1021 | } |
|
| 1022 | ||
| 1023 | /** |
|
| 1024 | * Returns the title (based on $code) of a table ($table) with the proper link around. For headers over tables. |
|
| @@ 3571-3591 (lines=21) @@ | ||
| 3568 | * @param string $tableName |
|
| 3569 | * @return string[] |
|
| 3570 | */ |
|
| 3571 | protected function getSearchFields($tableName) |
|
| 3572 | { |
|
| 3573 | $fieldArray = []; |
|
| 3574 | $fieldListWasSet = false; |
|
| 3575 | // Get fields from ctrl section of TCA first |
|
| 3576 | if (isset($GLOBALS['TCA'][$tableName]['ctrl']['searchFields'])) { |
|
| 3577 | $fieldArray = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$tableName]['ctrl']['searchFields'], true); |
|
| 3578 | $fieldListWasSet = true; |
|
| 3579 | } |
|
| 3580 | // Call hook to add or change the list |
|
| 3581 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['mod_list']['getSearchFieldList'] ?? [] as $hookFunction) { |
|
| 3582 | $hookParameters = [ |
|
| 3583 | 'tableHasSearchConfiguration' => $fieldListWasSet, |
|
| 3584 | 'tableName' => $tableName, |
|
| 3585 | 'searchFields' => &$fieldArray, |
|
| 3586 | 'searchString' => $this->searchString |
|
| 3587 | ]; |
|
| 3588 | GeneralUtility::callUserFunction($hookFunction, $hookParameters, $this); |
|
| 3589 | } |
|
| 3590 | return $fieldArray; |
|
| 3591 | } |
|
| 3592 | ||
| 3593 | /** |
|
| 3594 | * Returns the title (based on $code) of a table ($table) with the proper link around. For headers over tables. |
|