setAttribute(PARAMGETDDBASEBASEPARAM_NAMEATT, $name); } public function getName() { return $this->getAttribute(PARAMGETDDBASEBASEPARAM_NAMEATT); } public function setTensorOrder($tensor_order) { $tensorNode = $this->getChildInstanceByName(PARAMGETDDBASEBASEPARAM_TENSORORDER, true); $tensorNode->setValue($tensor_order); } public function addCalibInfo($calibInfo) { if ($this->calibInfoExist($calibInfo)) return; $node = new NodeClass(PARAMGETDDBASEBASEPARAM_CALIB); $node->setAttribute(PARAMGETDDBASEBASEPARAM_CALIBNAME,$calibInfo); $this->addChild($node); } public function calibInfoExist($calibInfo) { $calibNodes = $this->getChildrenByName(PARAMGETDDBASEBASEPARAM_CALIB); foreach ($calibNodes as $calibNode) if ($calibNode->getAttribute(PARAMGETDDBASEBASEPARAM_CALIBNAME) == $calibInfo) return true; return false; } } ?>