Location: PHPKode > scripts > pTree > ptree/docs/pTreeNode.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class pTreeNode</title>
			<link rel="stylesheet" href="stylesheet.css" />
						<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			

<h2 class="class-name">Class pTreeNode</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">pTreeNode - Generic Node for Tree Implementation</p>
<p class="description"><p>This class provides a Tree Node definition for generic tree data structure implementation</p></p>
	<ul class="tags">
				<li><span class="field">version:</span> 1.0 First public release</li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">copyright:</span> Copyright® 2005, PontUKom Corp</li>
				<li><span class="field">author:</span> Guilherme Blanco &lt;<a href="mailto:hide@address.com">hide@address.com</a>&gt;</li>
				<li><span class="field">updated:</span> No updates yet</li>
				<li><span class="field">created:</span> 2005-02-19 16:04 GMT - 3:00hs</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_class_pTree_php.html">/class.pTree.php</a> (line <span class="field">282</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../pTreeNode/pTree.html">pTree</a></td>
					<td>
											pTreeNode - Generic Node for Tree Implementation
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
								<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$childNodes" title="details" class="var-name">$childNodes</a>
				</div>
								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$comment" title="details" class="var-name">$comment</a>
				</div>
								<div class="var-title">
					<span class="var-type">integer</span>
					<a href="#$depth" title="details" class="var-name">$depth</a>
				</div>
								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$name" title="details" class="var-name">$name</a>
				</div>
								<div class="var-title">
					<span class="var-type">object</span>
					<a href="#$parentNode" title="details" class="var-name">$parentNode</a>
				</div>
								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$value" title="details" class="var-name">$value</a>
				</div>
							</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">object</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeName</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$parentNode</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object</span>
										<a href="#addChild" title="details" class="method-name">addChild</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$node</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#addComment" title="details" class="method-name">addComment</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeComment</span> = <span class="var-default">""</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">object</span>
										<a href="#fromString" title="details" class="method-name">fromString</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$input</span> = <span class="var-default">""</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getAllChilds" title="details" class="method-name">getAllChilds</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getChildNode" title="details" class="method-name">getChildNode</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#getDepth" title="details" class="method-name">getDepth</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getName" title="details" class="method-name">getName</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object</span>
										<a href="#getParent" title="details" class="method-name">getParent</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getValue" title="details" class="method-name">getValue</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#parseValue" title="details" class="method-name">parseValue</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$nodeValue</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$type</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#removeAllChilds" title="details" class="method-name">removeAllChilds</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#removeChild" title="details" class="method-name">removeChild</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$node</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setValue" title="details" class="method-name">setValue</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$nodeValue</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#toString" title="details" class="method-name">toString</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$mode</span>)
									</div>
							</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$childNodes" id="$childNodes"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$childNodes</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">312</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Child Nodes</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$comment" id="$comment"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$comment</span>
			 = <span class="var-default"> &quot;&quot;</span>			(line <span class="line-number">306</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Node Comment</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$depth" id="$depth"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">integer</span>
			<span class="var-name">$depth</span>
			 = <span class="var-default"> -1</span>			(line <span class="line-number">318</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Depth of Node</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$name" id="$name"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$name</span>
			 = <span class="var-default"> &quot;&quot;</span>			(line <span class="line-number">288</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Node Name</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$parentNode" id="$parentNode"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">object</span>
			<span class="var-name">$parentNode</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">300</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Parent TreeNode Reference</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$value" id="$value"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$value</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">294</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Node Value</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>

						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">330</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor - Should not be called directly. Please use <a href="../pTreeNode/pTreeNode.html#methodaddChild">addChild</a> instead.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Tree Node</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../pTreeNode/pTreeNode.html#methodaddChild">pTreeNode::addChild()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeName</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$parentNode</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$nodeName</span><span class="var-description">: Name of Tree Node</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$parentNode</span><span class="var-description">: Parent Tree Node reference, if any</span>			</li>
				</ul>
		
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../pTreeNode/pTree.html#method__construct">pTree::__construct()</a>
								: Constructor - Generates a Tree Data Structure
							</li>
				</ul>
	</div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number">350</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Destructor - Should not be called directly. This does the same as <a href="../pTreeNode/pTreeNode.html#methodremoveAllChilds">removeAllChilds</a> method.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../pTreeNode/pTreeNode.html#methodremoveAllChilds">pTreeNode::removeAllChilds()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodaddChild" id="addChild"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addChild</span> (line <span class="line-number">435</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add - Add a Tree Node with Value</p>
	<ul class="tags">
				<li><span class="field">return:</span> Generated Tree Node</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			addChild
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$node</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$node</span><span class="var-description">: Node Name</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: Value of new Node</span>			</li>
				</ul>
		
		
	</div>
<a name="methodaddComment" id="addComment"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addComment</span> (line <span class="line-number">514</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add Comment - Set up a Tree Node Comment</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addComment
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeComment</span> = <span class="var-default">""</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$nodeComment</span><span class="var-description">: Comment of Tree Node</span>			</li>
				</ul>
		
		
	</div>
<a name="methodfromString" id="fromString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">fromString</span> (line <span class="line-number">564</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">From String - Generates Tree Structure using Formatted String Entry (reverse of <a href="../pTreeNode/pTreeNode.html#methodtoString">toString</a> method)</p>
	<ul class="tags">
				<li><span class="field">return:</span> Tree</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../pTreeNode/pTreeNode.html#methodtoString">pTreeNode::toString()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			fromString
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$input</span> = <span class="var-default">""</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$input</span><span class="var-description">: Formatted input of Tree</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetAllChilds" id="getAllChilds"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAllChilds</span> (line <span class="line-number">375</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get All Childs - Retrieve All Child Nodes of the given Tree Node</p>
	<ul class="tags">
				<li><span class="field">return:</span> Tree Nodes array</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllChilds
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetChildNode" id="getChildNode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getChildNode</span> (line <span class="line-number">363</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get Child - Retrieve a Child Node of the given Tree Node</p>
	<ul class="tags">
				<li><span class="field">return:</span> Tree Node</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getChildNode
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$nodeName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$nodeName</span><span class="var-description">: Name of Child Node</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetDepth" id="getDepth"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getDepth</span> (line <span class="line-number">490</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get Depth - Grab Tree Node Depth</p>
	<ul class="tags">
				<li><span class="field">return:</span> Depth of Tree Node</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getDepth
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetName" id="getName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getName</span> (line <span class="line-number">502</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get Name - Retrieve Tree Node Name</p>
	<ul class="tags">
				<li><span class="field">return:</span> Name of Tree Node</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getName
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetParent" id="getParent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getParent</span> (line <span class="line-number">454</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get Parent - Retrieve the parent Tree Node of item, or item if none</p>
	<ul class="tags">
				<li><span class="field">return:</span> Tree Node</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			getParent
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetValue" id="getValue"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getValue</span> (line <span class="line-number">478</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get Value - Get the Value of given Tree Node</p>
	<ul class="tags">
				<li><span class="field">return:</span> Value of Tree Node</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getValue
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodparseValue" id="parseValue"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseValue</span> (line <span class="line-number">615</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Parse Value - Encode/Decode Value parameter</p>
	<ul class="tags">
				<li><span class="field">return:</span> Value of Node</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			parseValue
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$nodeValue</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$nodeValue</span><span class="var-description">: Value of Node (encoded or decoded)</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$type</span><span class="var-description">: Type of processment: [0] Encode / [1] Decode</span>			</li>
				</ul>
		
		
	</div>
<a name="methodremoveAllChilds" id="removeAllChilds"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">removeAllChilds</span> (line <span class="line-number">412</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Remove All Childs - Remove All Child Nodes</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			removeAllChilds
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodremoveChild" id="removeChild"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">removeChild</span> (line <span class="line-number">389</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Remove Child - Remove Child Node</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE</li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">see:</span> <a href="../pTreeNode/pTreeNode.html#methodremoveAllChilds">pTreeNode::removeAllChilds()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			removeChild
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$node</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$node</span><span class="var-description">: Name of Child Node or Child Tree Node Object</span>			</li>
				</ul>
		
		
	</div>
<a name="methodsetValue" id="setValue"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setValue</span> (line <span class="line-number">466</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set Value - Set up a Value in Tree Node</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setValue
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$nodeValue</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$nodeValue</span><span class="var-description">: Value of a Tree Node</span>			</li>
				</ul>
		
		
	</div>
<a name="methodtoString" id="toString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">toString</span> (line <span class="line-number">528</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">To String - Creates a Human readable output of Tree Node (reverse of <a href="../pTreeNode/pTreeNode.html#methodfromString">fromString</a> method)</p>
	<ul class="tags">
				<li><span class="field">return:</span> Formatted readable output of Tree</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../pTreeNode/pTreeNode.html#methodfromString">pTreeNode::fromString()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			toString
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$mode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$mode</span><span class="var-description">: Output Mode</span>			</li>
				</ul>
		
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../pTreeNode/pTree.html#methodtoString">pTree::toString()</a>
								: To String - Creates a Human readable output of Tree Node
							</li>
				</ul>
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 20 Feb 2005 23:03:05 -0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>
Return current item: pTree