getChildrenByName(PARAMGETCONSTANTPARAM_NAME); foreach ($nodes as $node) if (($node->getSampling() == $sampling) && ($node->getType() == $type) && ($node->getConstValue() == $value) && ($node->getDim1() == $dim1) && ($node->getDim2() == $dim2)) return $node; return NULL; } public function addConstant($sampling = "60", $type = "int", $dim1 = "1", $dim2 = "1", $value = "1") { $constantNode = new ParamGetConstantParamNodeClass(); $constantNode->setSampling($sampling); $constantNode->setType($type); $constantNode->setDim1($dim1); $constantNode->setDim2($dim2); $constantNode->setConstValue($value); $this->addChild($constantNode); return $constantNode; } public function loadFromNode($xmlNode) { foreach ($this->getXmlNodeChildrenByTagName($xmlNode, PARAMGETCONSTANTPARAM_NAME) as $constantXmlNode) { $this->addConstant()->loadFromNode($constantXmlNode); } } } ?>