TYPO3 CMS  TYPO3_7-6
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 
76  public function setTreeId($treeId)
77  {
78  $this->treeId = $treeId;
79  }
80 
86  public function getTreeId()
87  {
88  return $this->treeId;
89  }
90 
97  public function setExpandAll($expandAll)
98  {
99  $this->expandAll = $expandAll;
100  }
101 
107  public function getExpandAll()
108  {
109  return $this->expandAll;
110  }
111 
119  {
120  $this->levelMaximum = $levelMaximum;
121  }
122 
128  public function getLevelMaximum()
129  {
130  return $this->levelMaximum;
131  }
132 
139  protected function isExpanded(\TYPO3\CMS\Backend\Tree\TreeNode $node)
140  {
141  return $this->getExpandAll() || \TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->expandedList, $node->getId());
142  }
143 
151  {
152  $this->expandedList = $expandedList;
153  }
154 
160  public function getExpandedList()
161  {
162  return $this->expandedList;
163  }
164 
170  public function initializeTreeData()
171  {
172  $this->expandedList = $GLOBALS['BE_USER']->uc['tcaTrees'][$this->treeId];
173  }
174 
182  {
183  $this->selectedList = $selectedList;
184  }
185 
191  public function getSelectedList()
192  {
193  return $this->selectedList;
194  }
195 
203  {
204  $this->nonSelectableLevelList = $nonSelectableLevelList;
205  }
206 
212  public function getNonSelectableLevelList()
213  {
215  }
216 
223  public function setItemWhiteList(array $itemWhiteList)
224  {
225  $this->itemWhiteList = $itemWhiteList;
226  }
227 
233  public function getItemWhiteList()
234  {
235  return $this->itemWhiteList;
236  }
237 
245  {
246  $this->itemUnselectableList = $itemUnselectableList;
247  }
248 
254  public function getItemUnselectableList()
255  {
257  }
258 }
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']