Location: PHPKode > scripts > BowML > BowAbstractNode.inc.php
<?php

/**
 * Class : BowAbstractNode
 * Developed by Jonas Eriksson
 * @copyright 2003 BICOM KB
 **/
 
 class BowAbstractNode
 {
	/*Instance variables*/
	var $parentNode;
	var $stepsToRoot;
	var $id;
	//Following instance variables are only used by the parser
	var $tagStartPosition;
	var $tagEndPosition;
	
	/**Setter and getter for $parentNode
	* @return integer
	* @desc Return the id of the parentNode
	*/
	function parentNode() { return $this->parentNode; }
	function parentNodeSet( $aParentNode ) { $this->parentNode = $aParentNode; }	
	
	/*Setter and getter for $id*/
	function id() { return $this->id; }
	function idSet( $anId ) 
	{
		$this->id = $anId; 
	}	
	
	/*Setter and getter for stepsToRoot*/
	function stepsToRoot() { return $this->stepsToRoot; }
	function stepsToRootSet( $numberOfStepsToRoot ) { $this->stepsToRoot = $numberOfStepsToRoot; }

	function tagStartPosition() { return $this->tagStartPosition; }
	function tagStartPositionSet( $aPosition ) { $this->tagStartPosition = $aPosition; }
	
	function tagEndPosition() { return $this->tagEndPosition; }
	function tagEndPositionSet( $aPosition ) { $this->tagEndPosition = $aPosition; }
	
	/*Constructor*/
	function BowAbstractNode()
	{
		$this->stepsToRootSet(0);
	}
 }
?>
Return current item: BowML