RequestOutputPlotFillSerieSerieNodeClass.php
1.29 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 ("REQUESTOUTPUTPLOTFILLSERIESERIE_NAME", "fillSerieSerie");
define ("REQUESTOUTPUTPLOTFILLSERIESERIE_FIRSTSERIEID", "firstSerieId");
define ("REQUESTOUTPUTPLOTFILLSERIESERIE_SECONDSERIEID", "secondSerieId");
/**
* @class RequestOutputPlotFillSerieSerieNodeClass
* @brief Definition of fill serie/serie for a plot
* @details
*/
class RequestOutputPlotFillSerieSerieNodeClass extends RequestOutputPlotFillNodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPLOTFILLSERIESERIE_NAME);
}
public function setFirstSerieId($id)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIESERIE_FIRSTSERIEID, $id);
}
public function getFirstSerieId()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIESERIE_FIRSTSERIEID);
}
public function setSecondSerieId($id)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIESERIE_SECONDSERIEID, $id);
}
public function getSecondSerieId()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIESERIE_SECONDSERIEID);
}
public function loadFromNode($xmlNode)
{
$this->setFirstSerieId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIESERIE_FIRSTSERIEID));
$this->setSecondSerieId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIESERIE_SECONDSERIEID));
parent::loadFromNode($xmlNode);
}
}
?>