| @@ 1136-1183 (lines=48) @@ | ||
| 1133 | * @return string URL |
|
| 1134 | * @deprecated since TYPO3 v9, will be removed in TYPO3 v10 |
|
| 1135 | */ |
|
| 1136 | public function listURL($altId = '', $table = '-1', $exclList = '') |
|
| 1137 | { |
|
| 1138 | $urlParameters = []; |
|
| 1139 | if ((string)$altId !== '') { |
|
| 1140 | $urlParameters['id'] = $altId; |
|
| 1141 | } else { |
|
| 1142 | $urlParameters['id'] = $this->id; |
|
| 1143 | } |
|
| 1144 | if ($table === '-1') { |
|
| 1145 | $urlParameters['table'] = $this->table; |
|
| 1146 | } else { |
|
| 1147 | $urlParameters['table'] = $table; |
|
| 1148 | } |
|
| 1149 | if ($this->thumbs) { |
|
| 1150 | $urlParameters['imagemode'] = $this->thumbs; |
|
| 1151 | } |
|
| 1152 | if ($this->returnUrl) { |
|
| 1153 | $urlParameters['returnUrl'] = $this->returnUrl; |
|
| 1154 | } |
|
| 1155 | if ((!$exclList || !GeneralUtility::inList($exclList, 'search_field')) && $this->searchString) { |
|
| 1156 | $urlParameters['search_field'] = $this->searchString; |
|
| 1157 | } |
|
| 1158 | if ($this->searchLevels) { |
|
| 1159 | $urlParameters['search_levels'] = $this->searchLevels; |
|
| 1160 | } |
|
| 1161 | if ($this->showLimit) { |
|
| 1162 | $urlParameters['showLimit'] = $this->showLimit; |
|
| 1163 | } |
|
| 1164 | if ((!$exclList || !GeneralUtility::inList($exclList, 'firstElementNumber')) && $this->firstElementNumber) { |
|
| 1165 | $urlParameters['pointer'] = $this->firstElementNumber; |
|
| 1166 | } |
|
| 1167 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortField')) && $this->sortField) { |
|
| 1168 | $urlParameters['sortField'] = $this->sortField; |
|
| 1169 | } |
|
| 1170 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortRev')) && $this->sortRev) { |
|
| 1171 | $urlParameters['sortRev'] = $this->sortRev; |
|
| 1172 | } |
|
| 1173 | ||
| 1174 | $urlParameters = array_merge_recursive($urlParameters, $this->overrideUrlParameters); |
|
| 1175 | ||
| 1176 | if ($routePath = GeneralUtility::_GP('route')) { |
|
| 1177 | $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); |
|
| 1178 | $url = (string)$uriBuilder->buildUriFromRoutePath($routePath, $urlParameters); |
|
| 1179 | } else { |
|
| 1180 | $url = GeneralUtility::getIndpEnv('SCRIPT_NAME') . '?' . ltrim(GeneralUtility::implodeArrayForUrl('', $urlParameters), '&'); |
|
| 1181 | } |
|
| 1182 | return $url; |
|
| 1183 | } |
|
| 1184 | ||
| 1185 | /** |
|
| 1186 | * Returns "requestUri" - which is basically listURL |
|
| @@ 3725-3775 (lines=51) @@ | ||
| 3722 | * @param string $exclList Comma separated list of fields NOT to include ("sortField", "sortRev" or "firstElementNumber") |
|
| 3723 | * @return string URL |
|
| 3724 | */ |
|
| 3725 | public function listURL($altId = '', $table = '-1', $exclList = '') |
|
| 3726 | { |
|
| 3727 | $urlParameters = []; |
|
| 3728 | if ((string)$altId !== '') { |
|
| 3729 | $urlParameters['id'] = $altId; |
|
| 3730 | } else { |
|
| 3731 | $urlParameters['id'] = $this->id; |
|
| 3732 | } |
|
| 3733 | if ($table === '-1') { |
|
| 3734 | $urlParameters['table'] = $this->table; |
|
| 3735 | } else { |
|
| 3736 | $urlParameters['table'] = $table; |
|
| 3737 | } |
|
| 3738 | if ($this->thumbs) { |
|
| 3739 | $urlParameters['imagemode'] = $this->thumbs; |
|
| 3740 | } |
|
| 3741 | if ($this->returnUrl) { |
|
| 3742 | $urlParameters['returnUrl'] = $this->returnUrl; |
|
| 3743 | } |
|
| 3744 | if ((!$exclList || !GeneralUtility::inList($exclList, 'search_field')) && $this->searchString) { |
|
| 3745 | $urlParameters['search_field'] = $this->searchString; |
|
| 3746 | } |
|
| 3747 | if ($this->searchLevels) { |
|
| 3748 | $urlParameters['search_levels'] = $this->searchLevels; |
|
| 3749 | } |
|
| 3750 | if ($this->showLimit) { |
|
| 3751 | $urlParameters['showLimit'] = $this->showLimit; |
|
| 3752 | } |
|
| 3753 | if ((!$exclList || !GeneralUtility::inList($exclList, 'firstElementNumber')) && $this->firstElementNumber) { |
|
| 3754 | $urlParameters['pointer'] = $this->firstElementNumber; |
|
| 3755 | } |
|
| 3756 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortField')) && $this->sortField) { |
|
| 3757 | $urlParameters['sortField'] = $this->sortField; |
|
| 3758 | } |
|
| 3759 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortRev')) && $this->sortRev) { |
|
| 3760 | $urlParameters['sortRev'] = $this->sortRev; |
|
| 3761 | } |
|
| 3762 | ||
| 3763 | $urlParameters = array_merge_recursive($urlParameters, $this->overrideUrlParameters); |
|
| 3764 | ||
| 3765 | if ($routePath = GeneralUtility::_GP('route')) { |
|
| 3766 | $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); |
|
| 3767 | $url = (string)$uriBuilder->buildUriFromRoutePath($routePath, $urlParameters); |
|
| 3768 | } else { |
|
| 3769 | $url = GeneralUtility::getIndpEnv('SCRIPT_NAME') . '?' . ltrim( |
|
| 3770 | GeneralUtility::implodeArrayForUrl('', $urlParameters), |
|
| 3771 | '&' |
|
| 3772 | ); |
|
| 3773 | } |
|
| 3774 | return $url; |
|
| 3775 | } |
|
| 3776 | ||
| 3777 | /** |
|
| 3778 | * Returns "requestUri" - which is basically listURL |
|
| @@ 3595-3645 (lines=51) @@ | ||
| 3592 | * @param string $exclList Comma separated list of fields NOT to include ("sortField", "sortRev" or "firstElementNumber") |
|
| 3593 | * @return string URL |
|
| 3594 | */ |
|
| 3595 | public function listURL($altId = '', $table = '-1', $exclList = '') |
|
| 3596 | { |
|
| 3597 | $urlParameters = []; |
|
| 3598 | if ((string)$altId !== '') { |
|
| 3599 | $urlParameters['id'] = $altId; |
|
| 3600 | } else { |
|
| 3601 | $urlParameters['id'] = $this->id; |
|
| 3602 | } |
|
| 3603 | if ($table === '-1') { |
|
| 3604 | $urlParameters['table'] = $this->table; |
|
| 3605 | } else { |
|
| 3606 | $urlParameters['table'] = $table; |
|
| 3607 | } |
|
| 3608 | if ($this->thumbs) { |
|
| 3609 | $urlParameters['imagemode'] = $this->thumbs; |
|
| 3610 | } |
|
| 3611 | if ($this->returnUrl) { |
|
| 3612 | $urlParameters['returnUrl'] = $this->returnUrl; |
|
| 3613 | } |
|
| 3614 | if ((!$exclList || !GeneralUtility::inList($exclList, 'search_field')) && $this->searchString) { |
|
| 3615 | $urlParameters['search_field'] = $this->searchString; |
|
| 3616 | } |
|
| 3617 | if ($this->searchLevels) { |
|
| 3618 | $urlParameters['search_levels'] = $this->searchLevels; |
|
| 3619 | } |
|
| 3620 | if ($this->showLimit) { |
|
| 3621 | $urlParameters['showLimit'] = $this->showLimit; |
|
| 3622 | } |
|
| 3623 | if ((!$exclList || !GeneralUtility::inList($exclList, 'firstElementNumber')) && $this->firstElementNumber) { |
|
| 3624 | $urlParameters['pointer'] = $this->firstElementNumber; |
|
| 3625 | } |
|
| 3626 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortField')) && $this->sortField) { |
|
| 3627 | $urlParameters['sortField'] = $this->sortField; |
|
| 3628 | } |
|
| 3629 | if ((!$exclList || !GeneralUtility::inList($exclList, 'sortRev')) && $this->sortRev) { |
|
| 3630 | $urlParameters['sortRev'] = $this->sortRev; |
|
| 3631 | } |
|
| 3632 | ||
| 3633 | $urlParameters = array_merge_recursive($urlParameters, $this->overrideUrlParameters); |
|
| 3634 | ||
| 3635 | if ($routePath = GeneralUtility::_GP('route')) { |
|
| 3636 | $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); |
|
| 3637 | $url = (string)$uriBuilder->buildUriFromRoutePath($routePath, $urlParameters); |
|
| 3638 | } else { |
|
| 3639 | $url = GeneralUtility::getIndpEnv('SCRIPT_NAME') . '?' . ltrim( |
|
| 3640 | GeneralUtility::implodeArrayForUrl('', $urlParameters), |
|
| 3641 | '&' |
|
| 3642 | ); |
|
| 3643 | } |
|
| 3644 | return $url; |
|
| 3645 | } |
|
| 3646 | ||
| 3647 | /** |
|
| 3648 | * Returns "requestUri" - which is basically listURL |
|