ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DataNode Class Reference
+ Collaboration diagram for DataNode:

Public Member Functions

 __construct (string $label, array $children=[])
 
 getLabel ()
 
 getChildren ()
 

Protected Attributes

string $label
 
array $children
 

Detailed Description

Definition at line 27 of file ExpandableTreeTest.php.

Constructor & Destructor Documentation

◆ __construct()

DataNode::__construct ( string  $label,
array  $children = [] 
)

Definition at line 32 of file ExpandableTreeTest.php.

33 {
34 $this->label = $label;
35 $this->children = $children;
36 }

References $children, and $label.

Member Function Documentation

◆ getChildren()

DataNode::getChildren ( )

Definition at line 41 of file ExpandableTreeTest.php.

41 : array
42 {
43 return $this->children;
44 }

References $children.

◆ getLabel()

DataNode::getLabel ( )

Definition at line 37 of file ExpandableTreeTest.php.

37 : string
38 {
39 return $this->label;
40 }

References $label.

Field Documentation

◆ $children

array DataNode::$children
protected

Definition at line 30 of file ExpandableTreeTest.php.

Referenced by __construct(), and getChildren().

◆ $label

string DataNode::$label
protected

Definition at line 29 of file ExpandableTreeTest.php.

Referenced by __construct(), and getLabel().


The documentation for this class was generated from the following file: