TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
core
Classes
Tree
TableConfiguration
AbstractTableConfigurationTreeDataProvider.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Tree\TableConfiguration;
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
20
abstract
class
AbstractTableConfigurationTreeDataProvider
extends
\TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider
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
= array();
64
68
protected
$itemUnselectableList
= array();
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
118
public
function
setLevelMaximum
(
$levelMaximum
)
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
150
public
function
setExpandedList
(
$expandedList
)
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
181
public
function
setSelectedList
(
$selectedList
)
182
{
183
$this->selectedList =
$selectedList
;
184
}
185
191
public
function
getSelectedList
()
192
{
193
return
$this->selectedList
;
194
}
195
202
public
function
setNonSelectableLevelList
(
$nonSelectableLevelList
)
203
{
204
$this->nonSelectableLevelList =
$nonSelectableLevelList
;
205
}
206
212
public
function
getNonSelectableLevelList
()
213
{
214
return
$this->nonSelectableLevelList
;
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
244
public
function
setItemUnselectableList
(array
$itemUnselectableList
)
245
{
246
$this->itemUnselectableList =
$itemUnselectableList
;
247
}
248
254
public
function
getItemUnselectableList
()
255
{
256
return
$this->itemUnselectableList
;
257
}
258
}
Generated on Wed Nov 11 2015 01:51:49 for TYPO3 by
1.8.3