TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
core
Classes
Tree
TableConfiguration
DatabaseTreeNode.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
class
DatabaseTreeNode
extends
\TYPO3\CMS\Backend\Tree\TreeRepresentationNode
21
{
25
protected
$selectable
;
26
30
protected
$selected
=
false
;
31
35
protected
$expanded
=
true
;
36
40
protected
$hasChildren
=
false
;
41
45
private
$sortValue
;
46
53
public
function
setExpanded
(
$expanded
)
54
{
55
$this->expanded =
$expanded
;
56
}
57
63
public
function
getExpanded
()
64
{
65
return
$this->expanded
;
66
}
67
74
public
function
setSelectable
(
$selectable
)
75
{
76
$this->selectable =
$selectable
;
77
}
78
84
public
function
getSelectable
()
85
{
86
return
$this->selectable
;
87
}
88
95
public
function
setSelected
(
$selected
)
96
{
97
$this->selected =
$selected
;
98
}
99
105
public
function
getSelected
()
106
{
107
return
$this->selected
;
108
}
109
115
public
function
hasChildren
()
116
{
117
return
$this->hasChildren
;
118
}
119
126
public
function
setHasChildren
($value)
127
{
128
$this->
hasChildren
= (bool)$value;
129
}
130
142
public
function
compareTo
($other)
143
{
144
if
($this->
equals
($other)) {
145
return
0;
146
}
147
return
$this->sortValue > $other->getSortValue() ? 1 : -1;
148
}
149
155
public
function
getSortValue
()
156
{
157
return
$this->sortValue
;
158
}
159
166
public
function
setSortValue
(
$sortValue
)
167
{
168
$this->sortValue =
$sortValue
;
169
}
170
}
Generated on Wed Nov 11 2015 01:51:53 for TYPO3 by
1.8.3