public function getID() {
		$parents = $this->getParents();
		$c = count($parents);

		if($c > 0) {
			$id = $parents[0].'-';
			for($i=1; $i<$c; $i++)
				$id .= $parents[$i].'-';
			$id .= $this->name;
			return $id;
		}
		else
			return $this->name;
	}
public function getID() {
		$parents = $this->getParents();
		$c = count($parents);

		if($c > 0) {
			$id = $parents[0].'-';
			for($i=1; $i<$c; $i++)
				$id .= $parents[$i].'-';
			$id .= $this->name;
			return $id;
		}
		else
			return $this->name;
	}
public function getID ( ) { $ parents = $ this -> getParents ( ) ; $ c = count ( $ parents ) ; if ( $ c > 0 ) { $ id = $ parents [ 0 ] . '-' ; for ( $ i = 1 ; $ i < $ c ; $ i ++ ) $ id .= $ parents [ $ i ] . '-' ; $ id .= $ this -> name ; return $ id ; } else return $ this -> name ; }
Get field id.
@return string
Get field id .