| @@ 3246-3260 (lines=15) @@ | ||
| 3243 | * Setting the field names to display in extended list. |
|
| 3244 | * Sets the internal variable $this->setFields |
|
| 3245 | */ |
|
| 3246 | public function setDispFields() |
|
| 3247 | { |
|
| 3248 | $backendUser = $this->getBackendUserAuthentication(); |
|
| 3249 | // Getting from session: |
|
| 3250 | $dispFields = $backendUser->getModuleData('list/displayFields'); |
|
| 3251 | // If fields has been inputted, then set those as the value and push it to session variable: |
|
| 3252 | if (is_array($this->displayFields)) { |
|
| 3253 | reset($this->displayFields); |
|
| 3254 | $tKey = key($this->displayFields); |
|
| 3255 | $dispFields[$tKey] = $this->displayFields[$tKey]; |
|
| 3256 | $backendUser->pushModuleData('list/displayFields', $dispFields); |
|
| 3257 | } |
|
| 3258 | // Setting result: |
|
| 3259 | $this->setFields = $dispFields; |
|
| 3260 | } |
|
| 3261 | ||
| 3262 | /** |
|
| 3263 | * Create thumbnail code for record/field |
|
| @@ 670-684 (lines=15) @@ | ||
| 667 | * Sets the internal variable $this->setFields |
|
| 668 | * @deprecated since TYPO3 v9, will be removed in TYPO3 v10 |
|
| 669 | */ |
|
| 670 | public function setDispFields() |
|
| 671 | { |
|
| 672 | $backendUser = $this->getBackendUserAuthentication(); |
|
| 673 | // Getting from session: |
|
| 674 | $dispFields = $backendUser->getModuleData('list/displayFields'); |
|
| 675 | // If fields has been inputted, then set those as the value and push it to session variable: |
|
| 676 | if (is_array($this->displayFields)) { |
|
| 677 | reset($this->displayFields); |
|
| 678 | $tKey = key($this->displayFields); |
|
| 679 | $dispFields[$tKey] = $this->displayFields[$tKey]; |
|
| 680 | $backendUser->pushModuleData('list/displayFields', $dispFields); |
|
| 681 | } |
|
| 682 | // Setting result: |
|
| 683 | $this->setFields = $dispFields; |
|
| 684 | } |
|
| 685 | ||
| 686 | /** |
|
| 687 | * Create thumbnail code for record/field |
|
| @@ 3106-3120 (lines=15) @@ | ||
| 3103 | * Setting the field names to display in extended list. |
|
| 3104 | * Sets the internal variable $this->setFields |
|
| 3105 | */ |
|
| 3106 | public function setDispFields() |
|
| 3107 | { |
|
| 3108 | $backendUser = $this->getBackendUserAuthentication(); |
|
| 3109 | // Getting from session: |
|
| 3110 | $dispFields = $backendUser->getModuleData('list/displayFields'); |
|
| 3111 | // If fields has been inputted, then set those as the value and push it to session variable: |
|
| 3112 | if (is_array($this->displayFields)) { |
|
| 3113 | reset($this->displayFields); |
|
| 3114 | $tKey = key($this->displayFields); |
|
| 3115 | $dispFields[$tKey] = $this->displayFields[$tKey]; |
|
| 3116 | $backendUser->pushModuleData('list/displayFields', $dispFields); |
|
| 3117 | } |
|
| 3118 | // Setting result: |
|
| 3119 | $this->setFields = $dispFields; |
|
| 3120 | } |
|
| 3121 | ||
| 3122 | /** |
|
| 3123 | * Create thumbnail code for record/field |
|