RequestOutputPlotLineNodeClass.php 792 Bytes
<?php

define ("REQUESTOUTPUTPLOTLINE_TYPE", "type");

abstract class RequestOutputPlotLineTypeEnum
{
	const NO   = "no";
	const LINE = "line";
	const YES = "yes";
}

/**
 * @class RequestOutputPlotLineNodeClass
 * @brief Definition of a line element for a plot
 * @details
 */
class RequestOutputPlotLineNodeClass extends RequestOutputPlotCurveNodeClass
{
	public function __construct($name)
	{
		parent::__construct($name);
	}
	
	public function setType($type)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLINE_TYPE, $type);
	}
	
	public function getType()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLINE_TYPE);
	}
	
	public function loadFromNode($xmlNode)
	{
		$this->setType($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLINE_TYPE));
		parent::loadFromNode($xmlNode);
	}
}

?>