TYPO3 CMS  TYPO3_7-6
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)
 
 getExpanded ()
 
 setSelectable ($selectable)
 
 getSelectable ()
 
 setSelected ($selected)
 
 getSelected ()
 
 hasChildren ()
 
 setHasChildren ($value)
 
 compareTo ($other)
 
 getSortValue ()
 
 setSortValue ($sortValue)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Tree\TreeRepresentationNode
 setClass ($class)
 
 getClass ()
 
 setIcon ($icon)
 
 getIcon ()
 
 setLabel ($label)
 
 getLabel ()
 
 setType ($type)
 
 getType ()
 
 setCallbackAction ($callbackAction)
 
 getCallbackAction ()
 
 toArray ($addChildNodes=true)
 
 dataFromArray ($data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Tree\TreeNode
 __construct (array $data=[])
 
 setChildNodes (\TYPO3\CMS\Backend\Tree\TreeNodeCollection $childNodes)
 
 removeChildNodes ()
 
 getChildNodes ()
 
 hasChildNodes ()
 
 setId ($id)
 
 getId ()
 
 setParentNode (\TYPO3\CMS\Backend\Tree\TreeNode $parentNode=null)
 
 getParentNode ()
 
 equals (\TYPO3\CMS\Backend\Tree\TreeNode $other)
 
 compareTo ($other)
 
 toArray ($addChildNodes=true)
 
 dataFromArray ($data)
 
 serialize ()
 
 unserialize ($serializedString)
 

Protected Attributes

 $selectable
 
 $selected = false
 
 $expanded = true
 
 $hasChildren = false
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Tree\TreeRepresentationNode
 $label = ''
 
 $type = ''
 
 $class = ''
 
 $icon = ''
 
 $callbackAction = ''
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Tree\TreeNode
 $id = ''
 
 $parentNode = null
 
 $childNodes = null
 

Private Attributes

 $sortValue
 

Detailed Description

Represents a node in a TCA database setup

Definition at line 20 of file DatabaseTreeNode.php.

Member Function Documentation

◆ compareTo()

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

Implements TYPO3\CMS\Backend\Tree\ComparableNodeInterface.

Definition at line 142 of file DatabaseTreeNode.php.

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

◆ getExpanded()

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

Gets the expand state

Returns
bool

Definition at line 63 of file DatabaseTreeNode.php.

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

◆ getSelectable()

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

Gets the selectable property

Returns
bool

Definition at line 84 of file DatabaseTreeNode.php.

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

◆ getSelected()

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

Gets the select state

Returns
bool

Definition at line 105 of file DatabaseTreeNode.php.

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

◆ getSortValue()

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

Gets the sort value

Returns
mixed

Definition at line 155 of file DatabaseTreeNode.php.

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

◆ hasChildren()

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

◆ setExpanded()

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

Sets the expand state

Parameters
$expanded
Returns
void

Definition at line 53 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
Returns
void

Definition at line 126 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
Returns
void

Definition at line 74 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
Returns
void

Definition at line 95 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
Returns
void

Definition at line 166 of file DatabaseTreeNode.php.

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

Member Data Documentation

◆ $expanded

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

◆ $hasChildren

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

◆ $selectable

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

◆ $selected

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

◆ $sortValue

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