getFirstChildByName(REQUESTOUTPUTPLOTPARAMSLEGEND_NAME); if (!isset($node)) { $node = new RequestOutputPlotParamsLegendNodeClass(); $this->addChild($node); } return $node; } public function addTextLegend() { $node = new RequestOutputPlotTextLegendNodeClass(); $this->addChild($node); return $node; } public function loadFromNode($xmlNode) { foreach ($this->getXmlNodeChildrenByTagName($xmlNode, REQUESTOUTPUTPLOTPARAMSLEGEND_NAME) as $paramsLegendXmlNode) { $this->addTextLegend()->loadFromNode($paramsLegendXmlNode); } } } ?>