Blame view

src/Request/ParamsRequestImpl/Nodes/Infos/InfoParamTableDefMinMaxNodeClass.php 1.12 KB
944199fe   Benjamin Renard   Use table definit...
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
<?php

define ("INFOPARAMTABLEDEFMINMAX_TAGNAME", "minMaxTable");
define ("INFOPARAMTABLEDEFMINMAX_MINNAME", "minName");
define ("INFOPARAMTABLEDEFMINMAX_MAXNAME", "maxName");

/**
 * @class InfoParamTableDefMinMaxNodeClass
 * @brief Definition of a "min max" table
 * @details
 */
class InfoParamTableDefMinMaxNodeClass extends InfoParamTableDefNodeClass
{
	public function __construct()
	{
		parent::__construct(INFOPARAMTABLEDEFMINMAX_TAGNAME);
	}

	public function setMinName($minName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFMINMAX_MINNAME,$minName);
	}

	public function getMinName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFMINMAX_MINNAME);
	}
	
	public function setMaxName($maxName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFMINMAX_MAXNAME,$maxName);
	}
	
	public function getMaxName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFMINMAX_MAXNAME);
	}
966bd5f8   Benjamin Renard   Add request to ge...
38
39
40
41
42
43
44
	
	public function loadFromNode($xmlNode)
	{
		parent::loadFromNode($xmlNode);
		$this->setMinName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFMINMAX_MINNAME));
		$this->setMaxName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFMINMAX_MAXNAME));
	}
944199fe   Benjamin Renard   Use table definit...
45
46
47
}

?>