TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
TreeRepresentationNode Class Reference
Inheritance diagram for TreeRepresentationNode:
TreeNode ComparableNodeInterface DatabaseTreeNode

Public Member Functions

 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

 $label = ''
 
 $type = ''
 
 $class = ''
 
 $icon = ''
 
 $callbackAction = ''
 
- Protected Attributes inherited from TreeNode
 $id = ''
 
 $parentNode = null
 
 $childNodes = null
 

Detailed Description

Representation Tree Node

Definition at line 20 of file TreeRepresentationNode.php.

Member Function Documentation

dataFromArray (   $data)

Sets data of the node by a given data array

Parameters
array$data
Returns
void

Definition at line 170 of file TreeRepresentationNode.php.

References TreeRepresentationNode\setCallbackAction(), TreeRepresentationNode\setClass(), TreeRepresentationNode\setIcon(), TreeRepresentationNode\setLabel(), and TreeRepresentationNode\setType().

getCallbackAction ( )

Returns the callback action

Returns
string

Definition at line 140 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$callbackAction.

getClass ( )
Returns
string

Definition at line 69 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$class.

getIcon ( )
Returns
string

Definition at line 86 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$icon.

getLabel ( )
Returns
string

Definition at line 102 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$label.

getType ( )
Returns
string

Definition at line 119 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$type.

setCallbackAction (   $callbackAction)

Sets the callback action

Parameters
string$callbackAction
Returns
void

Definition at line 130 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$callbackAction.

Referenced by TreeRepresentationNode\dataFromArray().

setClass (   $class)
Parameters
string$class
Returns
void

Definition at line 61 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$class.

Referenced by TreeRepresentationNode\dataFromArray().

setIcon (   $icon)
Parameters
string$icon
Returns
void

Definition at line 78 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$icon.

Referenced by TreeRepresentationNode\dataFromArray().

setLabel (   $label)
Parameters
string$label

Definition at line 94 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$label.

Referenced by TreeRepresentationNode\dataFromArray().

setType (   $type)
Parameters
string$type
Returns
void

Definition at line 111 of file TreeRepresentationNode.php.

References TreeRepresentationNode\$type.

Referenced by TreeRepresentationNode\dataFromArray().

toArray (   $addChildNodes = true)

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

Parameters
bool$addChildNodes
Returns
array

Definition at line 151 of file TreeRepresentationNode.php.

Member Data Documentation

$callbackAction = ''
protected
$class = ''
protected
$icon = ''
protected
$label = ''
protected
$type = ''
protected