‪TYPO3CMS  10.4
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

 setExpanded ($expanded)
 
bool getExpanded ()
 
 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 ()
 
TYPO3 CMS Backend Tree TreeNodeCollection getChildNodes ()
 
bool hasChildNodes ()
 
 setId ($id)
 
string getId ()
 
 setParentNode (\TYPO3\CMS\Backend\Tree\TreeNode $parentNode=null)
 
TYPO3 CMS Backend Tree TreeNode getParentNode ()
 
bool equals (\TYPO3\CMS\Backend\Tree\TreeNode $other)
 
string serialize ()
 
 unserialize ($serializedString)
 

Protected Attributes

bool $selectable
 
bool $selected = false
 
bool $expanded = true
 
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 $id = ''
 
TYPO3 CMS Backend Tree TreeNode $parentNode
 
TYPO3 CMS Backend Tree TreeNodeCollection $childNodes
 

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 136 of file DatabaseTreeNode.php.

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

◆ getExpanded()

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

Gets the expand state

Returns
‪bool

Definition at line 60 of file DatabaseTreeNode.php.

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

◆ getSelectable()

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

Gets the selectable property

Returns
‪bool

Definition at line 80 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 100 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 149 of file DatabaseTreeNode.php.

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

◆ hasChildren()

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

◆ setExpanded()

TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::setExpanded (   $expanded)

Sets the expand state

Parameters
bool$expanded

Definition at line 50 of file DatabaseTreeNode.php.

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

◆ setHasChildren()

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

Sets the hasChildren property

Parameters
bool$value

Definition at line 120 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 70 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 90 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 159 of file DatabaseTreeNode.php.

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

Member Data Documentation

◆ $expanded

bool TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode::$expanded = true
protected

◆ $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