TYPO3 CMS  TYPO3_6-2
DatabaseTreeNode.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $selectable;
27 
31  protected $selected = FALSE;
32 
36  protected $expanded = TRUE;
37 
41  protected $hasChildren = FALSE;
42 
46  private $sortValue;
47 
54  public function setExpanded($expanded) {
55  $this->expanded = $expanded;
56  }
57 
63  public function getExpanded() {
64  return $this->expanded;
65  }
66 
73  public function setSelectable($selectable) {
74  $this->selectable = $selectable;
75  }
76 
82  public function getSelectable() {
83  return $this->selectable;
84  }
85 
92  public function setSelected($selected) {
93  $this->selected = $selected;
94  }
95 
101  public function getSelected() {
102  return $this->selected;
103  }
104 
110  public function hasChildren() {
111  return $this->hasChildren;
112  }
113 
120  public function setHasChildren($value) {
121  $this->hasChildren = (bool) $value;
122  }
123 
135  public function compareTo($other) {
136  if ($this->equals($other)) {
137  return 0;
138  }
139  return $this->sortValue > $other->getSortValue() ? 1 : -1;
140  }
141 
147  public function getSortValue() {
148  return $this->sortValue;
149  }
150 
157  public function setSortValue($sortValue) {
158  $this->sortValue = $sortValue;
159  }
160 
161 }
equals(\TYPO3\CMS\Backend\Tree\TreeNode $other)
Definition: TreeNode.php:149