‪TYPO3CMS  10.4
AbstractTableConfigurationTreeDataProvider.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
30  protected ‪$expandAll = false;
31 
35  protected ‪$levelMaximum = 4;
36 
40  protected ‪$treeData;
41 
45  protected ‪$treeId;
46 
50  protected ‪$nonSelectableLevelList = '0';
51 
55  protected ‪$expandedList = '';
56 
60  protected ‪$selectedList = '';
61 
68  protected ‪$itemWhiteList = [];
69 
74  protected ‪$itemUnselectableList = [];
75 
81  public function ‪setTreeId(‪$treeId)
82  {
83  $this->treeId = ‪$treeId;
84  }
85 
91  public function ‪getTreeId()
92  {
93  return ‪$this->treeId;
94  }
95 
101  public function ‪setExpandAll(‪$expandAll)
102  {
103  $this->expandAll = ‪$expandAll;
104  }
105 
111  public function ‪getExpandAll()
112  {
113  return ‪$this->expandAll;
114  }
115 
121  public function ‪setLevelMaximum(‪$levelMaximum)
122  {
123  $this->levelMaximum = ‪$levelMaximum;
124  }
125 
131  public function ‪getLevelMaximum()
132  {
134  }
135 
142  protected function ‪isExpanded(‪TreeNode $node)
143  {
144  return $this->‪getExpandAll() || GeneralUtility::inList($this->expandedList, $node->‪getId());
145  }
146 
152  public function ‪setExpandedList(‪$expandedList)
153  {
154  $this->expandedList = ‪$expandedList;
155  }
156 
162  public function ‪getExpandedList()
163  {
164  return ‪$this->expandedList;
165  }
166 
170  public function ‪initializeTreeData()
171  {
172  $this->expandedList = ‪$GLOBALS['BE_USER']->uc['tcaTrees'][‪$this->treeId];
173  }
174 
180  public function ‪setSelectedList(‪$selectedList)
181  {
182  $this->selectedList = ‪$selectedList;
183  }
184 
190  public function ‪getSelectedList()
191  {
192  return ‪$this->selectedList;
193  }
194 
201  {
202  $this->nonSelectableLevelList = ‪$nonSelectableLevelList;
203  }
204 
210  public function ‪getNonSelectableLevelList()
211  {
213  }
214 
220  public function ‪setItemWhiteList(array ‪$itemWhiteList)
221  {
222  $this->itemWhiteList = ‪$itemWhiteList;
223  }
224 
230  public function ‪getItemWhiteList()
231  {
233  }
234 
241  {
242  $this->itemUnselectableList = ‪$itemUnselectableList;
243  }
244 
250  public function ‪getItemUnselectableList()
251  {
253  }
254 }
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\initializeTreeData
‪initializeTreeData()
Definition: AbstractTableConfigurationTreeDataProvider.php:161
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$expandAll
‪bool $expandAll
Definition: AbstractTableConfigurationTreeDataProvider.php:29
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$expandedList
‪string $expandedList
Definition: AbstractTableConfigurationTreeDataProvider.php:49
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setLevelMaximum
‪setLevelMaximum($levelMaximum)
Definition: AbstractTableConfigurationTreeDataProvider.php:112
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setExpandAll
‪setExpandAll($expandAll)
Definition: AbstractTableConfigurationTreeDataProvider.php:92
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$itemWhiteList
‪array $itemWhiteList
Definition: AbstractTableConfigurationTreeDataProvider.php:60
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$treeId
‪string $treeId
Definition: AbstractTableConfigurationTreeDataProvider.php:41
‪TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider
Definition: AbstractTreeDataProvider.php:22
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider
Definition: AbstractTableConfigurationTreeDataProvider.php:26
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getSelectedList
‪string getSelectedList()
Definition: AbstractTableConfigurationTreeDataProvider.php:181
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\isExpanded
‪bool isExpanded(TreeNode $node)
Definition: AbstractTableConfigurationTreeDataProvider.php:133
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$treeData
‪TYPO3 CMS Backend Tree TreeNode $treeData
Definition: AbstractTableConfigurationTreeDataProvider.php:37
‪TYPO3\CMS\Backend\Tree\TreeNode
Definition: TreeNode.php:25
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getExpandedList
‪string getExpandedList()
Definition: AbstractTableConfigurationTreeDataProvider.php:153
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getExpandAll
‪bool getExpandAll()
Definition: AbstractTableConfigurationTreeDataProvider.php:102
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getItemWhiteList
‪array getItemWhiteList()
Definition: AbstractTableConfigurationTreeDataProvider.php:221
‪TYPO3\CMS\Core\Tree\TableConfiguration
Definition: AbstractTableConfigurationTreeDataProvider.php:16
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setTreeId
‪setTreeId($treeId)
Definition: AbstractTableConfigurationTreeDataProvider.php:72
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getNonSelectableLevelList
‪string getNonSelectableLevelList()
Definition: AbstractTableConfigurationTreeDataProvider.php:201
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getItemUnselectableList
‪array getItemUnselectableList()
Definition: AbstractTableConfigurationTreeDataProvider.php:241
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setExpandedList
‪setExpandedList($expandedList)
Definition: AbstractTableConfigurationTreeDataProvider.php:143
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$levelMaximum
‪int $levelMaximum
Definition: AbstractTableConfigurationTreeDataProvider.php:33
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getTreeId
‪string getTreeId()
Definition: AbstractTableConfigurationTreeDataProvider.php:82
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setSelectedList
‪setSelectedList($selectedList)
Definition: AbstractTableConfigurationTreeDataProvider.php:171
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$itemUnselectableList
‪mixed[] $itemUnselectableList
Definition: AbstractTableConfigurationTreeDataProvider.php:65
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setItemUnselectableList
‪setItemUnselectableList(array $itemUnselectableList)
Definition: AbstractTableConfigurationTreeDataProvider.php:231
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setNonSelectableLevelList
‪setNonSelectableLevelList($nonSelectableLevelList)
Definition: AbstractTableConfigurationTreeDataProvider.php:191
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\setItemWhiteList
‪setItemWhiteList(array $itemWhiteList)
Definition: AbstractTableConfigurationTreeDataProvider.php:211
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$selectedList
‪string $selectedList
Definition: AbstractTableConfigurationTreeDataProvider.php:53
‪TYPO3\CMS\Backend\Tree\TreeNode\getId
‪string getId()
Definition: TreeNode.php:118
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\$nonSelectableLevelList
‪string $nonSelectableLevelList
Definition: AbstractTableConfigurationTreeDataProvider.php:45
‪TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\getLevelMaximum
‪int getLevelMaximum()
Definition: AbstractTableConfigurationTreeDataProvider.php:122