/**
  * Génération du XML pour l'instance en cours
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = new CXDSXmlDocument();
     $xml->createExternalIdentifierRoot($this->id, $this->identificationScheme, $this->registryObject, $this->value);
     if ($this->name) {
         $xml->importDOMDocument($xml->documentElement, $this->name->toXML());
     }
     return $xml;
 }
예제 #2
0
 /**
  * @see parent::toXML()
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = parent::toXML();
     if ($this->contentTypeCodeDisplayName) {
         $xml->importDOMDocument($xml->documentElement, $this->contentTypeCodeDisplayName->toXML());
     }
     if ($this->codingScheme) {
         $xml->importDOMDocument($xml->documentElement, $this->codingScheme->toXML());
     }
     return $xml;
 }
예제 #3
0
 /**
  * @see parent::toXML()
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = parent::toXML();
     $base_xml = $xml->documentElement;
     if ($this->name) {
         $xml->importDOMDocument($base_xml, $this->name->toXML());
     }
     if ($this->codingScheme) {
         $xml->importDOMDocument($base_xml, $this->codingScheme->toXML());
     }
     return $xml;
 }