addChild($node); } //params $node = new RequestOutputPlotParamsNodeClass(); $this->addChild($node); //axes if (!$noXAxis || !$noYAxis || !$noZAxis) { $node = new RequestOutputPlotAxesNodeClass($noXAxis, $noYAxis, $noZAxis); $this->addChild($node); } //additional objects if ($defineAdditionalObjects) { $node = new RequestOutputPlotAdditionalObjectsNodeClass(); $this->addChild($node); } //fills if ($defineFills) { $node = new RequestOutputPlotFillsNodeClass(); $this->addChild($node); } } public function getLegends() { $node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTLEGENDS_NAME); return $node; } public function getParams() { $node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTPARAMS_NAME); return $node; } public function getAxes() { $node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTAXES_NAME); return $node; } public function getAdditionalObjects() { $node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTADDITIONALOBJECTS_NAME); return $node; } public function getFills() { $node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTFILLS_NAME); return $node; } public function loadFromNode($xmlNode) { $legendXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTLEGENDS_NAME); if (isset($legendXmlNode)) $this->getLegends()->loadFromNode($legendXmlNode); $paramsXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTPARAMS_NAME); if (isset($paramsXmlNode)) $this->getParams()->loadFromNode($paramsXmlNode); $axesXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTAXES_NAME); if (isset($axesXmlNode)) $this->getAxes()->loadFromNode($axesXmlNode); $additionalObjXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTADDITIONALOBJECTS_NAME); if (isset($additionalObjXmlNode)) $this->getAdditionalObjects()->loadFromNode($additionalObjXmlNode); $fillsXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTFILLS_NAME); if (isset($fillsXmlNode)) $this->getFills()->loadFromNode($fillsXmlNode); } } ?>