/**
  * @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;
 }
 /**
  * Génération de la requête XDS57 concernant le dépubliage et l'archivage
  *
  * @param String $uuid   Identifiant du document dans le registre
  * @param Bool   $action Action fait sur le document
  *
  * @return CXDSXmlDocument
  */
 function generateXDS57($uuid, $action = null)
 {
     $id_registry = $this->uuid["registry"];
     $class = new CXDSRegistryObjectList();
     //Ajout du lot de soumission
     $registry = $this->createRegistryPackage($id_registry);
     $class->appendRegistryPackage($registry);
     $statusType = "";
     switch ($action) {
         case "unpublished":
             $statusType = "Deleted";
             break;
         case "archived":
             $statusType = "Archived";
             break;
         default:
     }
     $asso = new CXDSAssociation("association01", $id_registry, $uuid, "urn:ihe:iti:2010:AssociationType:UpdateAvailabilityStatus");
     $asso->setSlot("OriginalStatus", array("urn:oasis:names:tc:ebxml-regrep:StatusType:Approved"));
     $asso->setSlot("NewStatus", array("urn:asip:ci-sis:2010:StatusType:{$statusType}"));
     $class->appendAssociation($asso);
     return $class->toXML();
 }