InfoParamTableDefMinMaxNodeClass.php 1.12 KB
<?php

define ("INFOPARAMTABLEDEFMINMAX_TAGNAME", "minMaxTable");
define ("INFOPARAMTABLEDEFMINMAX_MINNAME", "minName");
define ("INFOPARAMTABLEDEFMINMAX_MAXNAME", "maxName");

/**
 * @class InfoParamTableDefMinMaxNodeClass
 * @brief Definition of a "min max" table
 * @details
 */
class InfoParamTableDefMinMaxNodeClass extends InfoParamTableDefNodeClass
{
	public function __construct()
	{
		parent::__construct(INFOPARAMTABLEDEFMINMAX_TAGNAME);
	}

	public function setMinName($minName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFMINMAX_MINNAME,$minName);
	}

	public function getMinName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFMINMAX_MINNAME);
	}
	
	public function setMaxName($maxName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFMINMAX_MAXNAME,$maxName);
	}
	
	public function getMaxName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFMINMAX_MAXNAME);
	}
	
	public function loadFromNode($xmlNode)
	{
		parent::loadFromNode($xmlNode);
		$this->setMinName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFMINMAX_MINNAME));
		$this->setMaxName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFMINMAX_MAXNAME));
	}
}

?>