Definition at line 31 of file Node.php.
◆ __construct()
◆ attachChild()
Attach a child node
- Parameters
-
- Returns
- void
Definition at line 106 of file Node.php.
108 $this->_children[] = $node;
setParent(Zend_Server_Reflection_Node $node, $new=false)
◆ createChild()
◆ getChildren()
Return an array of all child nodes
- Returns
- array
Definition at line 120 of file Node.php.
◆ getEndPoints()
Retrieve the bottommost nodes of this node's tree
Retrieves the bottommost nodes of the tree by recursively calling getEndPoints() on all children. If a child is null, it returns the parent as an end point.
- Returns
- array
Definition at line 175 of file Node.php.
177 $endPoints = array();
182 foreach ($this->_children as $child) {
183 $value = $child->getValue();
186 $endPoints[] = $this;
188 && $child->hasChildren())
190 $childEndPoints = $child->getEndPoints();
191 if (!empty($childEndPoints)) {
192 $endPoints = array_merge($endPoints, $childEndPoints);
194 }
elseif ((
null !==
$value) && !$child->hasChildren()) {
195 $endPoints[] = $child;
elseif(isset( $params[ 'redirect_parent']))
◆ getParent()
Return the parent node
- Returns
- null|Zend_Server_Reflection_Node
Definition at line 140 of file Node.php.
◆ getValue()
Return the node's current value
- Returns
- mixed
Definition at line 150 of file Node.php.
◆ hasChildren()
Does this node have children?
- Returns
- boolean
Definition at line 130 of file Node.php.
132 return count($this->_children) > 0;
◆ setParent()
Set parent node
- Parameters
-
- Returns
- void
Definition at line 76 of file Node.php.
78 $this->_parent = $node;
attachChild(Zend_Server_Reflection_Node $node)
◆ setValue()
Set the node value
- Parameters
-
- Returns
- void
Definition at line 161 of file Node.php.
◆ $_children
◆ $_parent
◆ $_value
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Server/Reflection/Node.php