Node Tree class for Zend_Server reflection operations

category Zend
package Zend_Server
subpackage Reflection
version $Id$
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(mixed $value, \Zend_Server_Reflection_Node $parent = null) : \Zend_Server_Reflection_Node

Parameters

$value

mixed

$parent

\Zend_Server_Reflection_Node

Optional

Returns

\Zend_Server_Reflection_Node

Attach a child node

attachChild(\Zend_Server_Reflection_Node $node) : void

Parameters

$node

\Zend_Server_Reflection_Node

Create and attach a new child node

createChild(mixed $value) : \Zend_Server_Reflection_Node
access public

Parameters

$value

mixed

Returns

\Zend_Server_Reflection_NodeNew child node

Return an array of all child nodes

getChildren() : array

Returns

array

Retrieve the bottommost nodes of this node's tree

getEndPoints() : array

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

Return the parent node

getParent() : null | \Zend_Server_Reflection_Node

Returns

null\Zend_Server_Reflection_Node

Return the node's current value

getValue() : mixed

Returns

mixed

Does this node have children?

hasChildren() : boolean

Returns

boolean

Set parent node

setParent(\Zend_Server_Reflection_Node $node, boolean $new = false) : void

Parameters

$node

\Zend_Server_Reflection_Node

$new

boolean

Whether or not the child node is newly created and should always be attached

Set the node value

setValue(mixed $value) : void

Parameters

$value

mixed

 Properties

 

Array of child nodes (if any)

$_children : array

Default

array()
 

Parent node (if any)

$_parent : \Zend_Server_Reflection_Node

Default

null
 

Node value

$_value : mixed

Default

null