ILIAS  release_7 Revision v7.30-3-g800a261c036
DataNode Class Reference
+ Collaboration diagram for DataNode:

Public Member Functions

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

Protected Attributes

 $label = ""
 
 $children = []
 

Detailed Description

Definition at line 4 of file expandable2.php.

Constructor & Destructor Documentation

◆ __construct() [1/2]

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

Definition at line 16 of file expandable2.php.

17 {
18 $this->label = $label;
19 $this->children = $children;
20 }

References $children, and $label.

◆ __construct() [2/2]

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

Definition at line 13 of file ExpandableTreeTest.php.

14 {
15 $this->label = $label;
16 $this->children = $children;
17 }

References $children, and $label.

Member Function Documentation

◆ getChildren() [1/2]

DataNode::getChildren ( )

Definition at line 25 of file expandable2.php.

26 {
27 return $this->children;
28 }

References $children.

◆ getChildren() [2/2]

DataNode::getChildren ( )

Definition at line 22 of file ExpandableTreeTest.php.

23 {
24 return $this->children;
25 }

References $children.

◆ getLabel() [1/2]

DataNode::getLabel ( )

Definition at line 21 of file expandable2.php.

22 {
23 return $this->label;
24 }

References $label.

◆ getLabel() [2/2]

DataNode::getLabel ( )

Definition at line 18 of file ExpandableTreeTest.php.

19 {
20 return $this->label;
21 }

References $label.

Field Documentation

◆ $children

DataNode::$children = []
protected

Definition at line 14 of file expandable2.php.

Referenced by __construct(), and getChildren().

◆ $label

DataNode::$label = ""
protected

Definition at line 9 of file expandable2.php.

Referenced by __construct(), and getLabel().


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