setAttribute(PARAMGETDDBASE_NAMEATT, $name); } public function getVIName() { return $this->getAttribute(PARAMGETDDBASE_NAMEATT); } public function addBaseParam($name = "", $calib_info_list = array(), $tensor_order = -1) { $baseParamNode = new ParamGetDDBaseBaseParamNodeClass(); $baseParamNode->setParamName($name); if ($tensor_order > -1) $baseParamNode->setTensorOrder($tensor_order); foreach ($calib_info_list as $calib_info) $baseParamNode->addCalibInfo($calib_info); $this->addChild($baseParamNode); return $baseParamNode; } public function loadFromNode($xmlNode) { $this->setVIName($this->getXmlNodeAttribute($xmlNode, PARAMGETDDBASE_NAMEATT)); foreach ($this->getXmlNodeChildrenByTagName($xmlNode, PARAMGETDDBASEBASEPARAM_NAME) as $baseParamXmlNode) { $this->addBaseParam()->loadFromNode($baseParamXmlNode); } } } ?>