selectable = $selectable; } /** * Gets the selectable property * * @return bool */ public function getSelectable() { return $this->selectable; } /** * Sets the select state * * @param bool $selected */ public function setSelected($selected) { $this->selected = $selected; } /** * Gets the select state * * @return bool */ public function getSelected() { return $this->selected; } /** * Gets the hasChildren property * * @return bool */ public function hasChildren() { return $this->hasChildren; } /** * Sets the hasChildren property * * @param bool $value */ public function setHasChildren($value) { $this->hasChildren = (bool)$value; } /** * Compares a node to another one. * * Returns: * 1 if its greater than the other one * -1 if its smaller than the other one * 0 if its equal * * @param \TYPO3\CMS\Backend\Tree\TreeNode $other * @return int see description above */ public function compareTo($other) { if ($this->equals($other)) { return 0; } if ($other instanceof self) { return $this->sortValue > $other->getSortValue() ? 1 : -1; } return parent::compareTo($other); } /** * Gets the sort value * * @return mixed */ public function getSortValue() { return $this->sortValue; } /** * Sets the sort value * * @param mixed $sortValue */ public function setSortValue($sortValue) { $this->sortValue = $sortValue; } }