Blame view

src/Request/ParamsRequestImpl/Nodes/Infos/InfoParamTableDefCenterNodeClass.php 1.16 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 ("INFOPARAMTABLEDEFCENTER_TAGNAME", "centerTable");
define ("INFOPARAMTABLEDEFCENTER_CENTERNAME", "centerName");
define ("INFOPARAMTABLEDEFCENTER_SIZE", "size");

/**
 * @class InfoParamTableDefCenterNodeClass
 * @brief Definition of a center table with a constant "width" for all channels
 * @details
 */
class InfoParamTableDefCenterNodeClass extends InfoParamTableDefNodeClass
{
	public function __construct()
	{
		parent::__construct(INFOPARAMTABLEDEFCENTER_TAGNAME);
	}

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

	public function getCenterName()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTER_CENTERNAME);
	}
	
	public function setSize($size)
	{
		$this->setAttribute(INFOPARAMTABLEDEFCENTER_SIZE,$size);
	}
	
	public function getSize()
	{
		return $this->getAttribute(INFOPARAMTABLEDEFCENTER_SIZE);
	}
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, INFOPARAMTABLEDEFCENTER_CENTERNAME));
		$this->setSize($this->getXmlNodeAttribute($xmlNode, INFOPARAMTABLEDEFCENTER_SIZE));
	}
944199fe   Benjamin Renard   Use table definit...
45
46
47
}

?>