‪TYPO3CMS  10.4
DrawingConfiguration.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
36 {
40  protected ‪$selectedLanguageId = 0;
41 
50  protected ‪$defaultLanguageBinding = true;
51 
58  protected ‪$languageMode = false;
59 
65  protected ‪$languageColumns = [];
66 
72  protected ‪$showHidden = true;
73 
81  protected ‪$activeColumns = [1, 0, 2, 3];
82 
90  protected ‪$showNewContentWizard = true;
91 
92  public function ‪getSelectedLanguageId(): int
93  {
95  }
96 
97  public function ‪setSelectedLanguageId(int ‪$selectedLanguageId): void
98  {
99  $this->selectedLanguageId = ‪$selectedLanguageId;
100  }
101 
102  public function ‪getDefaultLanguageBinding(): bool
103  {
105  }
106 
107  public function ‪setDefaultLanguageBinding(bool ‪$defaultLanguageBinding): void
108  {
109  $this->defaultLanguageBinding = ‪$defaultLanguageBinding;
110  }
111 
112  public function ‪getLanguageMode(): bool
113  {
114  return ‪$this->languageMode;
115  }
116 
117  public function ‪setLanguageMode(bool ‪$languageMode): void
118  {
119  $this->languageMode = ‪$languageMode;
120  }
121 
122  public function ‪getLanguageColumns(): array
123  {
124  if (empty($this->languageColumns)) {
125  return [0 => 'Default'];
126  }
128  }
129 
130  public function ‪setLanguageColumns(array ‪$languageColumns): void
131  {
132  $this->languageColumns = ‪$languageColumns;
133  }
134 
135  public function ‪getShowHidden(): bool
136  {
137  return ‪$this->showHidden;
138  }
139 
140  public function ‪setShowHidden(bool ‪$showHidden): void
141  {
142  $this->showHidden = ‪$showHidden;
143  }
144 
145  public function ‪getActiveColumns(): array
146  {
148  }
149 
150  public function ‪setActiveColumns(array ‪$activeColumns): void
151  {
152  $this->activeColumns = ‪$activeColumns;
153  }
154 
155  public function ‪getShowNewContentWizard(): bool
156  {
158  }
159 
160  public function ‪setShowNewContentWizard(bool ‪$showNewContentWizard): void
161  {
162  $this->showNewContentWizard = ‪$showNewContentWizard;
163  }
164 
165  protected function ‪getBackendUser(): ‪BackendUserAuthentication
166  {
167  return ‪$GLOBALS['BE_USER'];
168  }
169 
170  protected function ‪getLanguageService(): ‪LanguageService
171  {
172  return ‪$GLOBALS['LANG'];
173  }
174 }
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getLanguageService
‪getLanguageService()
Definition: DrawingConfiguration.php:163
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$defaultLanguageBinding
‪bool $defaultLanguageBinding
Definition: DrawingConfiguration.php:48
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getBackendUser
‪getBackendUser()
Definition: DrawingConfiguration.php:158
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setLanguageColumns
‪setLanguageColumns(array $languageColumns)
Definition: DrawingConfiguration.php:123
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setShowHidden
‪setShowHidden(bool $showHidden)
Definition: DrawingConfiguration.php:133
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getLanguageMode
‪getLanguageMode()
Definition: DrawingConfiguration.php:105
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setLanguageMode
‪setLanguageMode(bool $languageMode)
Definition: DrawingConfiguration.php:110
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getSelectedLanguageId
‪getSelectedLanguageId()
Definition: DrawingConfiguration.php:85
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getLanguageColumns
‪getLanguageColumns()
Definition: DrawingConfiguration.php:115
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setSelectedLanguageId
‪setSelectedLanguageId(int $selectedLanguageId)
Definition: DrawingConfiguration.php:90
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getDefaultLanguageBinding
‪getDefaultLanguageBinding()
Definition: DrawingConfiguration.php:95
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$selectedLanguageId
‪int $selectedLanguageId
Definition: DrawingConfiguration.php:39
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication
Definition: BackendUserAuthentication.php:62
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$showHidden
‪bool $showHidden
Definition: DrawingConfiguration.php:67
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$languageMode
‪bool $languageMode
Definition: DrawingConfiguration.php:55
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration
Definition: DrawingConfiguration.php:36
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$languageColumns
‪array $languageColumns
Definition: DrawingConfiguration.php:61
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setShowNewContentWizard
‪setShowNewContentWizard(bool $showNewContentWizard)
Definition: DrawingConfiguration.php:153
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setActiveColumns
‪setActiveColumns(array $activeColumns)
Definition: DrawingConfiguration.php:143
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$showNewContentWizard
‪bool $showNewContentWizard
Definition: DrawingConfiguration.php:83
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\$activeColumns
‪array $activeColumns
Definition: DrawingConfiguration.php:75
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\setDefaultLanguageBinding
‪setDefaultLanguageBinding(bool $defaultLanguageBinding)
Definition: DrawingConfiguration.php:100
‪TYPO3\CMS\Backend\View\Drawing
Definition: BackendLayoutRenderer.php:18
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getShowHidden
‪getShowHidden()
Definition: DrawingConfiguration.php:128
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getShowNewContentWizard
‪getShowNewContentWizard()
Definition: DrawingConfiguration.php:148
‪TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\getActiveColumns
‪getActiveColumns()
Definition: DrawingConfiguration.php:138