TYPO3 CMS  TYPO3_8-7
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 = null;
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  {
87  return $this->treeId;
88  }
89 
95  public function setExpandAll($expandAll)
96  {
97  $this->expandAll = $expandAll;
98  }
99 
105  public function getExpandAll()
106  {
107  return $this->expandAll;
108  }
109 
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 
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 
175  {
176  $this->selectedList = $selectedList;
177  }
178 
184  public function getSelectedList()
185  {
186  return $this->selectedList;
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  {
226  return $this->itemWhiteList;
227  }
228 
235  {
236  $this->itemUnselectableList = $itemUnselectableList;
237  }
238 
244  public function getItemUnselectableList()
245  {
247  }
248 }
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']