Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLineNodeClass.php 764 Bytes
4ede4320   Benjamin Renard   Integration for s...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

define ("REQUESTOUTPUTPLOTLINE_TYPE", "type");

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

/**
 * @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()
	{
		$this->getAttribute(REQUESTOUTPUTPLOTLINE_TYPE);
	}
966bd5f8   Benjamin Renard   Add request to ge...
32
33
34
35
36
37
	
	public function loadFromNode($xmlNode)
	{
		$this->setType($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLINE_TYPE));
		parent::loadFromNode($xmlNode);
	}
4ede4320   Benjamin Renard   Integration for s...
38
39
40
}

?>