‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode:
TYPO3\CMS\Backend\Tree\TreeRepresentationNode TYPO3\CMS\Backend\Tree\TreeNode TYPO3\CMS\Backend\Tree\ComparableNodeInterface

Public Member Functions

 setSelectable ($selectable)
 
bool getSelectable ()
 
 setSelected ($selected)
 
bool getSelected ()
 
bool hasChildren ()
 
 setHasChildren ($value)
 
int compareTo ($other)
 
mixed getSortValue ()
 
 setSortValue ($sortValue)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\TreeRepresentationNode
 setClass ($class)
 
string getClass ()
 
 setIcon ($icon)
 
string Icon getIcon ()
 
 setLabel ($label)
 
string getLabel ()
 
 setType ($type)
 
string getType ()
 
 setCallbackAction ($callbackAction)
 
string getCallbackAction ()
 
array toArray ($addChildNodes=true)
 
 dataFromArray ($data)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\TreeNode
 __construct (array $data=[])
 
 setChildNodes (TreeNodeCollection $childNodes)
 
 removeChildNodes ()
 
TreeNodeCollection getChildNodes ()
 
bool hasChildNodes ()
 
 setId ($id)
 
string int getId ()
 
 setParentNode (TreeNode $parentNode=null)
 
TreeNode getParentNode ()
 
bool equals (TreeNode $other)
 
 getAdditionalData ()
 
 __serialize ()
 
 __unserialize (array $arrayRepresentation)
 

Protected Attributes

bool $selectable
 
bool $selected = false
 
bool $hasChildren = false
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Tree\TreeRepresentationNode
string $label = ''
 
string $type = ''
 
string $class = ''
 
string Icon $icon = ''
 
string $callbackAction = ''
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Tree\TreeNode
string int $id = ''
 
TreeNode null $parentNode
 
TreeNodeCollection null $childNodes
 
array $additionalData = []
 

Private Attributes

mixed $sortValue
 

Detailed Description

Represents a node in a TCA database setup

Definition at line 23 of file DatabaseTreeNode.php.

Member Function Documentation

◆ compareTo()

int TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::compareTo (   $other)

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

Parameters
\TYPO3\CMS\Backend\Tree\TreeNode$other
Returns
‪int see description above

Reimplemented from TYPO3\CMS\Backend\Tree\TreeNode.

Definition at line 112 of file DatabaseTreeNode.php.

References TYPO3\CMS\Backend\Tree\TreeNode\equals().

◆ getSelectable()

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::getSelectable ( )

Gets the selectable property

Returns
‪bool

Definition at line 56 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$selectable.

◆ getSelected()

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::getSelected ( )

Gets the select state

Returns
‪bool

Definition at line 76 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$selected.

◆ getSortValue()

mixed TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::getSortValue ( )

Gets the sort value

Returns
‪mixed

Definition at line 125 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$sortValue.

◆ hasChildren()

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::hasChildren ( )

◆ setHasChildren()

TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::setHasChildren (   $value)

Sets the hasChildren property

Parameters
bool$value

Definition at line 96 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\hasChildren().

◆ setSelectable()

TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::setSelectable (   $selectable)

Sets the selectable property

Parameters
bool$selectable

Definition at line 46 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$selectable.

◆ setSelected()

TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::setSelected (   $selected)

Sets the select state

Parameters
bool$selected

Definition at line 66 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$selected.

◆ setSortValue()

TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::setSortValue (   $sortValue)

Sets the sort value

Parameters
mixed$sortValue

Definition at line 135 of file DatabaseTreeNode.php.

References TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode\$sortValue.

Member Data Documentation

◆ $hasChildren

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::$hasChildren = false
protected

◆ $selectable

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::$selectable
protected

◆ $selected

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::$selected = false
protected

◆ $sortValue

mixed TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::$sortValue
private