コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 /**
  * 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;
 }