Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Node Tree class for Zend_Server reflection operations

__construct(
mixed $value, \Zend_Server_Reflection_Node $parent
=
null
)
:
\Zend_Server_Reflection_Node
Constructor
Name | Type | Description |
---|---|---|
$value | mixed | |
$parent | \Zend_Server_Reflection_Node | Optional |
Type | Description |
---|---|
\Zend_Server_Reflection_Node |

attachChild(
\Zend_Server_Reflection_Node $node
)
:
void
Attach a child node
Name | Type | Description |
---|---|---|
$node | \Zend_Server_Reflection_Node |

createChild(
mixed $value
)
:
\Zend_Server_Reflection_Node
Create and attach a new child node
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
\Zend_Server_Reflection_Node | New child node |

getEndPoints(
)
:
array
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.
Type | Description |
---|---|
array |

getParent(
)
:
null|\Zend_Server_Reflection_Node
Return the parent node
Type | Description |
---|---|
null|\Zend_Server_Reflection_Node |

setParent(
\Zend_Server_Reflection_Node $node, boolean $new
=
false
)
:
void
Set parent node
Name | Type | Description |
---|---|---|
$node | \Zend_Server_Reflection_Node | |
$new | boolean | Whether or not the child node is newly created and should always be attached |