‪TYPO3CMS  9.5
AbstractTableConfigurationTreeDataProvider.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 
21 {
25  protected ‪$expandAll = false;
26 
30  protected ‪$levelMaximum = 4;
31 
35  protected ‪$treeData;
36 
40  protected ‪$treeId;
41 
45  protected ‪$nonSelectableLevelList = '0';
46 
50  protected ‪$expandedList = '';
51 
55  protected ‪$selectedList = '';
56 
63  protected ‪$itemWhiteList = [];
64 
68  protected ‪$itemUnselectableList = [];
69 
75  public function ‪setTreeId(‪$treeId)
76  {
77  $this->treeId = ‪$treeId;
78  }
79 
85  public function ‪getTreeId()
86  {
88  }
89 
95  public function ‪setExpandAll(‪$expandAll)
96  {
97  $this->expandAll = ‪$expandAll;
98  }
99 
105  public function ‪getExpandAll()
106  {
108  }
109 
115  public function ‪setLevelMaximum(‪$levelMaximum)
116  {
117  $this->levelMaximum = ‪$levelMaximum;
118  }
119 
125  public function ‪getLevelMaximum()
126  {
127  return ‪$this->levelMaximum;
128  }
129 
136  protected function ‪isExpanded(\‪TYPO3\CMS\Backend\Tree\TreeNode $node)
137  {
138  return $this->‪getExpandAll() || \TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->expandedList, $node->getId());
139  }
140 
146  public function ‪setExpandedList(‪$expandedList)
147  {
148  $this->expandedList = ‪$expandedList;
149  }
150 
156  public function ‪getExpandedList()
157  {
158  return ‪$this->expandedList;
159  }
160 
164  public function ‪initializeTreeData()
165  {
166  $this->expandedList = ‪$GLOBALS['BE_USER']->uc['tcaTrees'][‪$this->treeId];
167  }
168 
174  public function ‪setSelectedList(‪$selectedList)
175  {
176  $this->selectedList = ‪$selectedList;
177  }
178 
184  public function ‪getSelectedList()
185  {
187  }
188 
195  {
196  $this->nonSelectableLevelList = ‪$nonSelectableLevelList;
197  }
198 
204  public function ‪getNonSelectableLevelList()
205  {
207  }
208 
214  public function ‪setItemWhiteList(array ‪$itemWhiteList)
215  {
216  $this->itemWhiteList = ‪$itemWhiteList;
217  }
218 
224  public function ‪getItemWhiteList()
225  {
227  }
228 
235  {
236  $this->itemUnselectableList = ‪$itemUnselectableList;
237  }
238 
244  public function ‪getItemUnselectableList()
245  {
247  }
248 }
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\initializeTreeData
‪initializeTreeData()
Definition: AbstractTableConfigurationTreeDataProvider.php:156
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$expandAll
‪bool $expandAll
Definition: AbstractTableConfigurationTreeDataProvider.php:24
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$expandedList
‪string $expandedList
Definition: AbstractTableConfigurationTreeDataProvider.php:44
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setLevelMaximum
‪setLevelMaximum($levelMaximum)
Definition: AbstractTableConfigurationTreeDataProvider.php:107
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setExpandAll
‪setExpandAll($expandAll)
Definition: AbstractTableConfigurationTreeDataProvider.php:87
‪TYPO3
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$itemWhiteList
‪array $itemWhiteList
Definition: AbstractTableConfigurationTreeDataProvider.php:55
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$treeId
‪string $treeId
Definition: AbstractTableConfigurationTreeDataProvider.php:36
‪TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider
Definition: AbstractTreeDataProvider.php:21
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider
Definition: AbstractTableConfigurationTreeDataProvider.php:21
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getSelectedList
‪string getSelectedList()
Definition: AbstractTableConfigurationTreeDataProvider.php:176
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$treeData
‪TYPO3 CMS Backend Tree TreeNode $treeData
Definition: AbstractTableConfigurationTreeDataProvider.php:32
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getExpandedList
‪string getExpandedList()
Definition: AbstractTableConfigurationTreeDataProvider.php:148
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getExpandAll
‪bool getExpandAll()
Definition: AbstractTableConfigurationTreeDataProvider.php:97
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getItemWhiteList
‪array getItemWhiteList()
Definition: AbstractTableConfigurationTreeDataProvider.php:216
‪TYPO3\CMS\Core\Tree\TableConfiguration
Definition: AbstractTableConfigurationTreeDataProvider.php:2
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$itemUnselectableList
‪$itemUnselectableList
Definition: AbstractTableConfigurationTreeDataProvider.php:60
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setTreeId
‪setTreeId($treeId)
Definition: AbstractTableConfigurationTreeDataProvider.php:67
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\isExpanded
‪bool isExpanded(\TYPO3\CMS\Backend\Tree\TreeNode $node)
Definition: AbstractTableConfigurationTreeDataProvider.php:128
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getNonSelectableLevelList
‪string getNonSelectableLevelList()
Definition: AbstractTableConfigurationTreeDataProvider.php:196
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getItemUnselectableList
‪array getItemUnselectableList()
Definition: AbstractTableConfigurationTreeDataProvider.php:236
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setExpandedList
‪setExpandedList($expandedList)
Definition: AbstractTableConfigurationTreeDataProvider.php:138
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$levelMaximum
‪int $levelMaximum
Definition: AbstractTableConfigurationTreeDataProvider.php:28
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getTreeId
‪string getTreeId()
Definition: AbstractTableConfigurationTreeDataProvider.php:77
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setSelectedList
‪setSelectedList($selectedList)
Definition: AbstractTableConfigurationTreeDataProvider.php:166
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setItemUnselectableList
‪setItemUnselectableList(array $itemUnselectableList)
Definition: AbstractTableConfigurationTreeDataProvider.php:226
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setNonSelectableLevelList
‪setNonSelectableLevelList($nonSelectableLevelList)
Definition: AbstractTableConfigurationTreeDataProvider.php:186
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setItemWhiteList
‪setItemWhiteList(array $itemWhiteList)
Definition: AbstractTableConfigurationTreeDataProvider.php:206
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$selectedList
‪string $selectedList
Definition: AbstractTableConfigurationTreeDataProvider.php:48
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$nonSelectableLevelList
‪string $nonSelectableLevelList
Definition: AbstractTableConfigurationTreeDataProvider.php:40
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getLevelMaximum
‪int getLevelMaximum()
Definition: AbstractTableConfigurationTreeDataProvider.php:117