<?php
/**
 * ****************************************************************
 * Project:      *
 * Copyright:    Copyright (c) 2007
 * Company:      Thomas Niemann
 * ****************************************************************
 * Workfile:     XMLAttributes.php
 * ****************************************************************
 * Description:  
 *                
 * ***************************************************************/
class XMLAttributes {
	private $attributes;

	/*****************************************************************
	 * constructor
	 *****************************************************************/
	function __construct($attributes) {
		$this->attributes = $attributes;
	}

	/*****************************************************************
	 * get attribute from xml
	 *****************************************************************/
	function __get($name) {
		if (isset ($this->attributes[$name])) {
			return $this->attributes[$name];
		} else {
			return false;
		}
	}
}
?>