getAttribute(PARAMGETCONSTANTPARAM_SAMPLING); } public function setSampling($sampling) { $this->setAttribute(PARAMGETCONSTANTPARAM_SAMPLING, $sampling); } public function getType() { return $this->getAttribute(PARAMGETCONSTANTPARAM_TYPE); } public function setType($type) { $this->setAttribute(PARAMGETCONSTANTPARAM_TYPE, strtolower($type)); } public function getConstValue() { return $this->getAttribute(PARAMGETCONSTANTPARAM_VALUE); } public function setConstValue($value) { $this->setAttribute(PARAMGETCONSTANTPARAM_VALUE, $value); } public function getDim1() { return $this->getAttribute(PARAMGETCONSTANTPARAM_DIM1); } public function setDim1($dim1) { $this->setAttribute(PARAMGETCONSTANTPARAM_DIM1, $dim1); } public function getDim2() { return $this->getAttribute(PARAMGETCONSTANTPARAM_DIM2); } public function setDim2($dim2) { $this->setAttribute(PARAMGETCONSTANTPARAM_DIM2, $dim2); } public function loadFromNode($xmlNode) { $this->setSampling($this->getXmlNodeAttribute($xmlNode, PARAMGETCONSTANTPARAM_SAMPLING)); $this->setType($this->getXmlNodeAttribute($xmlNode, PARAMGETCONSTANTPARAM_TYPE)); $this->setConstValue($this->getXmlNodeAttribute($xmlNode, PARAMGETCONSTANTPARAM_VALUE)); $this->setDim1($this->getXmlNodeAttribute($xmlNode, PARAMGETCONSTANTPARAM_DIM1)); $this->setDim2($this->getXmlNodeAttribute($xmlNode, PARAMGETCONSTANTPARAM_DIM2)); } } ?>