‪TYPO3CMS  9.5
ActionList.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 
23 class ‪ActionList extends \TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList
24 {
35  public function ‪listURL($alternativeId = '', ‪$table = '-1', $excludeList = '')
36  {
37  $urlParameters = [];
38  if ((string)$alternativeId !== '') {
39  $urlParameters['id'] = $alternativeId;
40  } else {
41  $urlParameters['id'] = ‪$this->id;
42  }
43  if (‪$table === '-1') {
44  $urlParameters['table'] = ‪$this->table;
45  } else {
46  $urlParameters['table'] = ‪$table;
47  }
48  if ($this->thumbs) {
49  $urlParameters['imagemode'] = ‪$this->thumbs;
50  }
51  if ($this->returnUrl) {
52  $urlParameters['returnUrl'] = ‪$this->returnUrl;
53  }
54  if ($this->searchString) {
55  $urlParameters['search_field'] = ‪$this->searchString;
56  }
57  if ($this->searchLevels) {
58  $urlParameters['search_levels'] = ‪$this->searchLevels;
59  }
60  if ($this->showLimit) {
61  $urlParameters['showLimit'] = ‪$this->showLimit;
62  }
63  if ($this->firstElementNumber) {
64  $urlParameters['pointer'] = ‪$this->firstElementNumber;
65  }
66  if ((!$excludeList || !\‪TYPO3\CMS\Core\Utility\GeneralUtility::inList($excludeList, 'sortField')) && $this->sortField) {
67  $urlParameters['sortField'] = ‪$this->sortField;
68  }
69  if ((!$excludeList || !\‪TYPO3\CMS\Core\Utility\GeneralUtility::inList($excludeList, 'sortRev')) && $this->sortRev) {
70  $urlParameters['sortRev'] = ‪$this->sortRev;
71  }
72  if (\‪TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET')) {
73  $urlParameters['SET'] = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET');
74  }
75  if (\‪TYPO3\CMS\Core\Utility\GeneralUtility::_GP('show')) {
76  $urlParameters['show'] = (int)\‪TYPO3\CMS\Core\Utility\GeneralUtility::_GP('show');
77  }
79  $uriBuilder = GeneralUtility::makeInstance(\‪TYPO3\CMS\Backend\Routing\UriBuilder::class);
80  return (string)$uriBuilder->buildUriFromRoute('user_task', $urlParameters);
81  }
82 }
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$sortField
‪string $sortField
Definition: DatabaseRecordList.php:186
‪TYPO3
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$searchLevels
‪int $searchLevels
Definition: DatabaseRecordList.php:371
‪TYPO3\CMS\SysAction
Definition: ActionList.php:2
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$table
‪string $table
Definition: DatabaseRecordList.php:349
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$showLimit
‪int $showLimit
Definition: DatabaseRecordList.php:300
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$thumbs
‪bool $thumbs
Definition: DatabaseRecordList.php:282
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$id
‪int $id
Definition: DatabaseRecordList.php:204
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$searchString
‪string $searchString
Definition: DatabaseRecordList.php:431
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$returnUrl
‪string $returnUrl
Definition: DatabaseRecordList.php:343
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45
‪TYPO3\CMS\SysAction\ActionList
Definition: ActionList.php:24
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$sortRev
‪bool $sortRev
Definition: DatabaseRecordList.php:437
‪TYPO3\CMS\SysAction\ActionList\listURL
‪string listURL($alternativeId='', $table='-1', $excludeList='')
Definition: ActionList.php:35
‪TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\$firstElementNumber
‪int $firstElementNumber
Definition: DatabaseRecordList.php:419