treeId = $treeId; } /** * Gets the id of the tree * * @return string */ public function getTreeId() { return $this->treeId; } /** * Sets the expandAll * * @param bool $expandAll */ public function setExpandAll($expandAll) { $this->expandAll = $expandAll; } /** * Gets the expandAll * * @return bool */ public function getExpandAll() { return $this->expandAll; } /** * Sets the levelMaximum * * @param int $levelMaximum */ public function setLevelMaximum($levelMaximum) { $this->levelMaximum = $levelMaximum; } /** * Gets the levelMaximum * * @return int */ public function getLevelMaximum() { return $this->levelMaximum; } /** * Gets the expanded state of a given node * * @return bool */ protected function isExpanded(TreeNode $node) { return $this->getExpandAll() || GeneralUtility::inList($this->expandedList, $node->getId()); } /** * Init the tree data */ public function initializeTreeData() {} /** * Sets the list for selected nodes * * @param string $selectedList */ public function setSelectedList($selectedList) { $this->selectedList = $selectedList; } /** * Gets the list for selected nodes * * @return string */ public function getSelectedList() { return $this->selectedList; } /** * Sets the list for non selectable tree levels * * @param string $nonSelectableLevelList */ public function setNonSelectableLevelList($nonSelectableLevelList) { $this->nonSelectableLevelList = $nonSelectableLevelList; } /** * Gets the list for non selectable tree levels * * @return string */ public function getNonSelectableLevelList() { return $this->nonSelectableLevelList; } /** * Setter for the itemWhiteList */ public function setItemWhiteList(array $itemWhiteList) { $this->itemWhiteList = $itemWhiteList; } /** * Getter for the itemWhiteList * * @return array */ public function getItemWhiteList() { return $this->itemWhiteList; } /** * Setter for $itemUnselectableList */ public function setItemUnselectableList(array $itemUnselectableList) { $this->itemUnselectableList = $itemUnselectableList; } /** * Getter for $itemUnselectableList * * @return array */ public function getItemUnselectableList() { return $this->itemUnselectableList; } /** * @internal See property comment */ public function setAvailableItems(array $availableItems) { $this->availableItems = $availableItems; } /** * @param int[] $startingPoints */ public function setStartingPoints(array $startingPoints): void { $this->startingPoints = $startingPoints; } /** * @return int[] */ public function getStartingPoints(): array { return $this->startingPoints; } }