TYPO3 CMS  TYPO3_6-2
ActionList.php
Go to the documentation of this file.
1 <?php
3 
22 class ActionList extends \TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList {
23 
34  public function listURL($alternativeId = '', $table = -1, $excludeList = '') {
35  $urlParameters = array();
36  if ((string)$alternativeId !== '') {
37  $urlParameters['id'] = $alternativeId;
38  } else {
39  $urlParameters['id'] = $this->id;
40  }
41  if ($table === -1) {
42  $urlParameters['table'] = $this->table;
43  } else {
44  $urlParameters['table'] = $table;
45  }
46  if ($this->thumbs) {
47  $urlParameters['imagemode'] = $this->thumbs;
48  }
49  if ($this->returnUrl) {
50  $urlParameters['returnUrl'] = $this->returnUrl;
51  }
52  if ($this->searchString) {
53  $urlParameters['search_field'] = $this->searchString;
54  }
55  if ($this->searchLevels) {
56  $urlParameters['search_levels'] = $this->searchLevels;
57  }
58  if ($this->showLimit) {
59  $urlParameters['showLimit'] = $this->showLimit;
60  }
61  if ($this->firstElementNumber) {
62  $urlParameters['pointer'] = $this->firstElementNumber;
63  }
64  if ((!$excludeList || !\TYPO3\CMS\Core\Utility\GeneralUtility::inList($excludeList, 'sortField')) && $this->sortField) {
65  $urlParameters['sortField'] = $this->sortField;
66  }
67  if ((!$excludeList || !\TYPO3\CMS\Core\Utility\GeneralUtility::inList($excludeList, 'sortRev')) && $this->sortRev) {
68  $urlParameters['sortRev'] = $this->sortRev;
69  }
70  if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET')) {
71  $urlParameters['SET'] = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET');
72  }
73  if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('show')) {
74  $urlParameters['show'] = (int)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('show');
75  }
76  return \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('user_task', $urlParameters);
77  }
78 
79 }
listURL($alternativeId='', $table=-1, $excludeList='')
Definition: ActionList.php:34