/** * @see parent::toXML() */ function toXML() { $xml = parent::toXML(); if ($this->newStatus) { $xml->importDOMDocument($xml->documentElement, $this->newStatus->toXML()); } if ($this->originalStatus) { $xml->importDOMDocument($xml->documentElement, $this->originalStatus->toXML()); } return $xml; }
/** * Génération du xml * * @return CXDSXmlDocument */ function toXML() { $xml = parent::toXML(); if ($this->submissionSetStatus) { $xml->importDOMDocument($xml->documentElement, $this->submissionSetStatus->toXML()); } if ($this->previousVersion) { $xml->importDOMDocument($xml->documentElement, $this->previousVersion->toXML()); } return $xml; }