Moodle  2.2.1
http://www.collinsharper.com
Zend_Server_Reflection_Node Class Reference

Public Member Functions

 __construct ($value, Zend_Server_Reflection_Node $parent=null)
 setParent (Zend_Server_Reflection_Node $node, $new=false)
 createChild ($value)
 attachChild (Zend_Server_Reflection_Node $node)
 getChildren ()
 hasChildren ()
 getParent ()
 getValue ()
 setValue ($value)
 getEndPoints ()

Protected Attributes

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

Detailed Description

Definition at line 31 of file Node.php.


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

Definition at line 58 of file Node.php.

Here is the call graph for this function:


Member Function Documentation

Attach a child node

Parameters:
Zend_Server_Reflection_Node$node
Returns:
void

Definition at line 106 of file Node.php.

Here is the call graph for this function:

Here is the caller graph for this function:

createChild ( value)

Create and attach a new child node

Parameters:
mixed$valuepublic
Returns:
Zend_Server_Reflection_Node New child node

Definition at line 93 of file Node.php.

Return an array of all child nodes

Returns:
array

Definition at line 120 of file Node.php.

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.

Here is the call graph for this function:

getParent ( )

Return the parent node

Returns:
null|Zend_Server_Reflection_Node

Definition at line 140 of file Node.php.

Here is the caller graph for this function:

getValue ( )

Return the node's current value

Returns:
mixed

Definition at line 150 of file Node.php.

Does this node have children?

Returns:
boolean

Definition at line 130 of file Node.php.

Here is the caller graph for this function:

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

Definition at line 76 of file Node.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setValue ( value)

Set the node value

Parameters:
mixed$value
Returns:
void

Definition at line 161 of file Node.php.


Field Documentation

$_children = array() [protected]

Definition at line 43 of file Node.php.

$_parent = null [protected]

Definition at line 49 of file Node.php.

$_value = null [protected]

Definition at line 37 of file Node.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations