src/snac/util/EACCPFSerializer.php
/**
     * Serialize Constellation
     *
     * Serialize the constellation to an XML string
     *
     * @param \snac\data\Constellation $constellation The constellation to serialize
     * @return string The EAC-CPF XML for this constellation
     */
Serialize Constellation
Serialize the constellation to an XML string

@param \snac\data\Constellation $constellation The constellation to serialize
@return string The EAC-CPF XML for this constellation
Serialize Constellation Serialize the constellation to an XML string @param \ snac \ data \ Constellation $constellation The constellation to serialize @return string The EAC - CPF XML for this constellation
public function serialize($constellation) {
        foreach ($constellation->getBiogHistList() as &$currentBiogHist) {
            $currentBiogHist->formatXML();
        }
        foreach ($constellation->getSources() as &$currentSource) {
            $currentSource->formatXML();
        }
        return $this->serializeCore($constellation->toArray());
    }
public function serialize ( $ constellation ) { foreach ( $ constellation -> getBiogHistList ( ) as & $ currentBiogHist ) { $ currentBiogHist -> formatXML ( ) ; } foreach ( $ constellation -> getSources ( ) as & $ currentSource ) { $ currentSource -> formatXML ( ) ; } return $ this -> serializeCore ( $ constellation -> toArray ( ) ) ; }
Serialize Constellation
 Serialize the constellation to an XML string
Serialize Constellation Serialize the constellation to an XML string