Blame view

src/Request/ParamsRequestImpl/Nodes/Infos/InfoParamTableDefCenterWidthNodeClass.php 1.23 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 ("INFOPARAMTABLEDEFCENTERWIDTH_TAGNAME", "centerWidthTable");
define ("INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME", "centerName");
define ("INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME", "widthName");

/**
 * @class InfoParamTableDefCenterWidthNodeClass
 * @brief Definition of a center table
 * @details
 */
class InfoParamTableDefCenterWidthNodeClass extends InfoParamTableDefNodeClass
{
	public function __construct()
	{
		parent::__construct(INFOPARAMTABLEDEFCENTERWIDTH_TAGNAME);
	}

	public function setCenterName($centerName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME,$centerName);
	}

	public function getCenterName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME);
	}
	
	public function setWidthName($widthName)
	{
		$this->setAttribute(INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME,$widthName);
	}
	
	public function getWidthName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME);
	}
966bd5f8   Benjamin Renard   Add request to ge...
38
39
40
41
42
43
44
	
	public function loadFromNode($xmlNode)
	{
		parent::loadFromNode($xmlNode);
		$this->setCenterName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFCENTERWIDTH_CENTERNAME));
		$this->setWidthName($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFCENTERWIDTH_WIDTHNAME));
	}
944199fe   Benjamin Renard   Use table definit...
45
46
47
}

?>