RequestOutputPlotFillSerieConstantNodeClass.php
1.27 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_NAME", "fillSerieConstant");
define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID", "serieId");
define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID", "constantId");
/**
* @class RequestOutputPlotFillSerieConstantNodeClass
* @brief Definition of fill serie/constant for a plot
* @details
*/
class RequestOutputPlotFillSerieConstantNodeClass extends RequestOutputPlotFillNodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPLOTFILLSERIECONSTANT_NAME);
}
public function setSerieId($id)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID, $id);
}
public function getSerieId()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID);
}
public function setConstantId($id)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID, $id);
}
public function getConstantId()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID);
}
public function loadFromNode($xmlNode)
{
$this->setSerieId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID));
$this->setConstantId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID));
parent::loadFromNode($xmlNode);
}
}
?>