TYPO3  7.6
Public Member Functions | Protected Attributes | Private Attributes | List of all members
DatabaseTreeNode Class Reference
Inheritance diagram for DatabaseTreeNode:
TreeRepresentationNode TreeNode 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 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 TreeNode
 __construct (array $data=array())
 
 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 TreeRepresentationNode
 $label = ''
 
 $type = ''
 
 $class = ''
 
 $icon = ''
 
 $callbackAction = ''
 
- Protected Attributes inherited from 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 (   $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 ComparableNodeInterface.

Definition at line 142 of file DatabaseTreeNode.php.

References TreeNode\equals().

getExpanded ( )

Gets the expand state

Returns
bool

Definition at line 63 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$expanded.

getSelectable ( )

Gets the selectable property

Returns
bool

Definition at line 84 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$selectable.

getSelected ( )

Gets the select state

Returns
bool

Definition at line 105 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$selected.

getSortValue ( )

Gets the sort value

Returns
mixed

Definition at line 155 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$sortValue.

hasChildren ( )

Gets the hasChildren property

Returns
bool

Definition at line 115 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$hasChildren.

Referenced by DatabaseTreeNode\setHasChildren().

setExpanded (   $expanded)

Sets the expand state

Parameters
$expanded
Returns
void

Definition at line 53 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$expanded.

setHasChildren (   $value)

Sets the hasChildren property

Parameters
bool$value
Returns
void

Definition at line 126 of file DatabaseTreeNode.php.

References DatabaseTreeNode\hasChildren().

setSelectable (   $selectable)

Sets the selectable property

Parameters
bool$selectable
Returns
void

Definition at line 74 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$selectable.

setSelected (   $selected)

Sets the select state

Parameters
bool$selected
Returns
void

Definition at line 95 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$selected.

setSortValue (   $sortValue)

Sets the sort value

Parameters
mixed$sortValue
Returns
void

Definition at line 166 of file DatabaseTreeNode.php.

References DatabaseTreeNode\$sortValue.

Member Data Documentation

$expanded = true
protected
$hasChildren = false
protected

Definition at line 40 of file DatabaseTreeNode.php.

Referenced by DatabaseTreeNode\hasChildren().

$selectable
protected
$selected = false
protected
$sortValue
private