addChild($node); return $node; } public function addCurveObject() { $node = new RequestOutputPlotCurveObjectNodeClass(); $this->addChild($node); return $node; } public function getCurveObjects() { return $this->getChildrenByName(REQUESTOUTPUTPLOTCURVEOBJECT_NAME); } public function loadFromNode($xmlNode) { foreach ($this->getXmlNodeChildrenByTagName($xmlNode, REQUESTOUTPUTPLOTTEXT_NAME) as $plotTextXmlNode) { $this->addTextObject()->loadFromNode($plotTextXmlNode); } foreach ($this->getXmlNodeChildrenByTagName($xmlNode, REQUESTOUTPUTPLOTCURVEOBJECT_NAME) as $curveXmlNode) { $this->addCurveObject()->loadFromNode($curveXmlNode); } } } ?>