API Documentation

Zend/Server/Reflection/Node.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  

\Zend_Server_Reflection_Node

Package: Zend\Server\Reflection

Node Tree class for Zend_Server reflection operations

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id: Node.php 24594 2012-01-05 21:27:01Z matthew $  

Properties

Propertyprotectedarray  $_children= 'array()'

Array of child nodes (if any)

Default valuearray()Details
Type
array
Propertyprotected\Zend_Server_Reflection_Node  $_parent= 'null'

Parent node (if any)

Default valuenullDetails
Type
\Zend_Server_Reflection_Node
Propertyprotectedmixed  $_value= 'null'

Node value

Default valuenullDetails
Type
mixed

Methods

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

Constructor

Parameters
Name Type Description
$value mixed
$parent \Zend_Server_Reflection_Node

Optional

Returns
Type Description
\Zend_Server_Reflection_Node
methodpublicattachChild( \Zend_Server_Reflection_Node $node ) : void

Attach a child node

Parameters
Name Type Description
$node \Zend_Server_Reflection_Node
methodpubliccreateChild( mixed $value ) : \Zend_Server_Reflection_Node

Create and attach a new child node

Parameters
Name Type Description
$value mixed
Returns
Type Description
\Zend_Server_Reflection_Node New child node
Details
Access
public  
methodpublicgetChildren( ) : array

Return an array of all child nodes

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

Returns
Type Description
array
methodpublicgetParent( ) : null|\Zend_Server_Reflection_Node

Return the parent node

Returns
Type Description
null|\Zend_Server_Reflection_Node
methodpublicgetValue( ) : mixed

Return the node's current value

Returns
Type Description
mixed
methodpublichasChildren( ) : boolean

Does this node have children?

Returns
Type Description
boolean
methodpublicsetParent( \Zend_Server_Reflection_Node $node, boolean $new = false ) : void

Set parent node

Parameters
Name Type Description
$node \Zend_Server_Reflection_Node
$new boolean

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

methodpublicsetValue( mixed $value ) : void

Set the node value

Parameters
Name Type Description
$value mixed
Documentation was generated by DocBlox 0.15.1.