Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Server_Reflection_Node Class Reference

Public Member Functions

 __construct ($value, Zend_Server_Reflection_Node $parent=null)
 Constructor.
 
 setParent (Zend_Server_Reflection_Node $node, $new=false)
 Set parent node.
 
 createChild ($value)
 Create and attach a new child node.
 
 attachChild (Zend_Server_Reflection_Node $node)
 Attach a child node.
 
 getChildren ()
 Return an array of all child nodes.
 
 hasChildren ()
 Does this node have children?
 
 getParent ()
 Return the parent node.
 
 getValue ()
 Return the node's current value.
 
 setValue ($value)
 Set the node value.
 
 getEndPoints ()
 Retrieve the bottommost nodes of this node's tree.
 

Protected Attributes

 $_value = null
 
 $_children = array()
 
 $_parent = null
 

Constructor & Destructor Documentation

__construct (   $value,
Zend_Server_Reflection_Node  $parent = null 
)

Constructor.

Parameters
mixed$value
Zend_Server_Reflection_Node$parentOptional
Returns
Zend_Server_Reflection_Node

Member Function Documentation

attachChild ( Zend_Server_Reflection_Node  $node)

Attach a child node.

Parameters
Zend_Server_Reflection_Node$node
Returns
void
createChild (   $value)

Create and attach a new child node.

Parameters
mixed$valuepublic
Returns
Zend_Server_Reflection_Node New child node
getChildren ( )

Return an array of all child nodes.

Returns
array
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
getParent ( )

Return the parent node.

Returns
null|Zend_Server_Reflection_Node
getValue ( )

Return the node's current value.

Returns
mixed
hasChildren ( )

Does this node have children?

Returns
boolean
setParent ( Zend_Server_Reflection_Node  $node,
  $new = false 
)

Set parent node.

Parameters
Zend_Server_Reflection_Node$node
boolean$newWhether or not the child node is newly created and should always be attached
Returns
void
setValue (   $value)

Set the node value.

Parameters
mixed$value
Returns
void

Member Data Documentation

$_children = array()
protected
$_parent = null
protected
$_value = null
protected