71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /*
 | |
| 	This file is part of ActiveLink PHP XML Package (www.active-link.com).
 | |
| 	Copyright (c) 2002-2004 by Zurab Davitiani
 | |
| 
 | |
| 	You can contact the author of this software via E-mail at
 | |
| 	hattrick@mailcan.com
 | |
| 
 | |
| 	ActiveLink PHP XML Package is free software; you can redistribute it and/or modify
 | |
| 	it under the terms of the GNU Lesser General Public License as published by
 | |
| 	the Free Software Foundation; either version 2.1 of the License, or
 | |
| 	(at your option) any later version.
 | |
| 
 | |
| 	ActiveLink PHP XML Package is distributed in the hope that it will be useful,
 | |
| 	but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
| 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
| 	GNU Lesser General Public License for more details.
 | |
| 
 | |
| 	You should have received a copy of the GNU Lesser General Public License
 | |
| 	along with ActiveLink PHP XML Package; if not, write to the Free Software
 | |
| 	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | |
| */
 | |
| 
 | |
| /**
 | |
|   *	Leaf class is part of a Tree-Branch-Leaf trio
 | |
|   *	@class		Leaf
 | |
|   *	@package	org.active-link.xml
 | |
|   *	@author		Zurab Davitiani
 | |
|   *	@version	0.4.0
 | |
|   *	@see		Tree, Branch
 | |
|   */
 | |
| 
 | |
| class Leaf {
 | |
| 
 | |
| 	// protected variables
 | |
| 	var $value;
 | |
| 
 | |
| 	/**
 | |
| 	  *	Constructor for the object
 | |
| 	  *	@method		Leaf
 | |
| 	  *	@param		optional mixed value
 | |
| 	  *	@returns	none
 | |
| 	  */
 | |
| 	function Leaf($value = "") {
 | |
| 		$this->setValue($value);
 | |
| 	}
 | |
| 
 | |
| 	/**
 | |
| 	  *	Gets Leaf object value
 | |
| 	  *	@method		getValue
 | |
| 	  *	@returns	value of the object
 | |
| 	  */
 | |
| 	function getValue() {
 | |
| 		return $this->value;
 | |
| 	}
 | |
| 
 | |
| 	/**
 | |
| 	  *	Sets Leaf object to the specified value
 | |
| 	  *	@method		setValue
 | |
| 	  *	@param		mixed value
 | |
| 	  *	@returns	none
 | |
| 	  */
 | |
| 	function setValue($value) {
 | |
| 		$this->value = $value;
 | |
| 	}
 | |
| 
 | |
| }
 | |
| 
 | |
| ?>
 |