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

Public Member Functions

 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)
 
int compareTo ($other)
 
 getAdditionalData ()
 
 __serialize ()
 
 __unserialize (array $arrayRepresentation)
 

Protected Attributes

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 = []
 

Detailed Description

Representation Tree Node

Definition at line 23 of file TreeRepresentationNode.php.

Member Function Documentation

◆ dataFromArray()

◆ getCallbackAction()

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::getCallbackAction ( )

Returns the callback action

Returns
‪string

Definition at line 134 of file TreeRepresentationNode.php.

References TYPO3\CMS\Backend\Tree\TreeRepresentationNode\$callbackAction.

◆ getClass()

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::getClass ( )
Returns
‪string

Definition at line 66 of file TreeRepresentationNode.php.

References TYPO3\CMS\Backend\Tree\TreeRepresentationNode\$class.

◆ getIcon()

string Icon TYPO3\CMS\Backend\Tree\TreeRepresentationNode::getIcon ( )

◆ getLabel()

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::getLabel ( )

◆ getType()

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::getType ( )
Returns
‪string

Definition at line 114 of file TreeRepresentationNode.php.

References TYPO3\CMS\Backend\Tree\TreeRepresentationNode\$type.

◆ setCallbackAction()

TYPO3\CMS\Backend\Tree\TreeRepresentationNode::setCallbackAction (   $callbackAction)

Sets the callback action

Parameters
string$callbackAction

Definition at line 124 of file TreeRepresentationNode.php.

References TYPO3\CMS\Backend\Tree\TreeRepresentationNode\$callbackAction.

Referenced by TYPO3\CMS\Backend\Tree\TreeRepresentationNode\dataFromArray().

◆ setClass()

TYPO3\CMS\Backend\Tree\TreeRepresentationNode::setClass (   $class)
Parameters
string$class

Definition at line 58 of file TreeRepresentationNode.php.

Referenced by TYPO3\CMS\Backend\Tree\TreeRepresentationNode\dataFromArray().

◆ setIcon()

TYPO3\CMS\Backend\Tree\TreeRepresentationNode::setIcon (   $icon)

◆ setLabel()

TYPO3\CMS\Backend\Tree\TreeRepresentationNode::setLabel (   $label)

◆ setType()

TYPO3\CMS\Backend\Tree\TreeRepresentationNode::setType (   $type)

◆ toArray()

array TYPO3\CMS\Backend\Tree\TreeRepresentationNode::toArray (   $addChildNodes = true)

Returns the node in an array representation that can be used for serialization

Parameters
bool$addChildNodes
Returns
‪array

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

Definition at line 145 of file TreeRepresentationNode.php.

Member Data Documentation

◆ $callbackAction

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::$callbackAction = ''
protected

Callback function that is called e.g after a click on the label

Definition at line 53 of file TreeRepresentationNode.php.

Referenced by TYPO3\CMS\Backend\Tree\TreeRepresentationNode\getCallbackAction(), and TYPO3\CMS\Backend\Tree\TreeRepresentationNode\setCallbackAction().

◆ $class

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::$class = ''
protected

Node CSS Class

Definition at line 41 of file TreeRepresentationNode.php.

Referenced by TYPO3\CMS\Backend\Tree\TreeRepresentationNode\getClass().

◆ $icon

string Icon TYPO3\CMS\Backend\Tree\TreeRepresentationNode::$icon = ''
protected

◆ $label

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::$label = ''
protected

◆ $type

string TYPO3\CMS\Backend\Tree\TreeRepresentationNode::$type = ''
protected