InfoParamTableDefCenterWidthNodeClass.php 1.23 KB
<?php

define ("INFOPARAMTABLEDEFCENTERWIDTH_TAGNAME", "centerWidthTable");
define ("INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME", "centerName");
define ("INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME", "widthName");

/**
 * @class InfoParamTableDefCenterWidthNodeClass
 * @brief Definition of a center table
 * @details
 */
class InfoParamTableDefCenterWidthNodeClass extends InfoParamTableDefNodeClass
{
	public function __construct()
	{
		parent::__construct(INFOPARAMTABLEDEFCENTERWIDTH_TAGNAME);
	}

	public function setCenterName($centerName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME,$centerName);
	}

	public function getCenterName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME);
	}
	
	public function setWidthName($widthName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME,$widthName);
	}
	
	public function getWidthName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME);
	}
	
	public function loadFromNode($xmlNode)
	{
		parent::loadFromNode($xmlNode);
		$this->setCenterName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME));
		$this->setWidthName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME));
	}
}

?>