src/snac/data/Constellation.php
/**
     * Collect SCM Citations by Source
     *
     * This method parses through each section of the constellation, looking for SCMs
     * and attaching them to the Source they cite.  This allows for the caller to ask
     * for the list of sources (and associated SCMs) for this constellation.
     *
     * @return \snac\data\Source[] A list of Source objects with their SCMs filled out
     */
Collect SCM Citations by Source
This method parses through each section of the constellation, looking for SCMs
and attaching them to the Source they cite.  This allows for the caller to ask
for the list of sources (and associated SCMs) for this constellation.

@return \snac\data\Source[] A list of Source objects with their SCMs filled out
Collect SCM Citations by Source This method parses through each section of the constellation looking for SCMs and attaching them to the Source they cite . This allows for the caller to ask for the list of sources ( and associated SCMs ) for this constellation . @return \ snac \ data \ Source [] A list of Source objects with their SCMs filled out
public function collateAllSCMCitationsBySource() {
        $sources = array();
        foreach ($this->sources as $source) {
            $sources[$source->getID()] = new \snac\data\Source($source->toArray());
        }
        $sources[0] = new \snac\data\Source();
        $sources[0]->setDisplayName("Unknown Source");
        parent::collateSCMCitationsBySource($sources);
        foreach ($this->mandates as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->structureOrGenealogies as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->generalContexts as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->biogHists as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->conventionDeclarations as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->nationalities as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->otherRecordIDs as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->entityIDs as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->languagesUsed as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->legalStatuses as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->sources as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->genders as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->nameEntries as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->occupations as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->relations as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->resourceRelations as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->activities as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->places as &$element)
            $element->collateSCMCitationsBySource($sources);
        foreach ($this->subjects as &$element)
            $element->collateSCMCitationsBySource($sources);
        return $sources;
    }
public function collateAllSCMCitationsBySource ( ) { $ sources = array ( ) ; foreach ( $ this -> sources as $ source ) { $ sources [ $ source -> getID ( ) ] = new \ snac \ data \ Source ( $ source -> toArray ( ) ) ; } $ sources [ 0 ] = new \ snac \ data \ Source ( ) ; $ sources [ 0 ] -> setDisplayName ( " Unknown Source " ) ; parent :: collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> mandates as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> structureOrGenealogies as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> generalContexts as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> biogHists as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> conventionDeclarations as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> nationalities as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> otherRecordIDs as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> entityIDs as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> languagesUsed as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> legalStatuses as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> sources as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> genders as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> nameEntries as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> occupations as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> relations as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> resourceRelations as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> activities as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> places as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; foreach ( $ this -> subjects as & $ element ) $ element -> collateSCMCitationsBySource ( $ sources ) ; return $ sources ; }
Collect SCM Citations by Source
 This method parses through each section of the constellation, looking for SCMs
 and attaching them to the Source they cite.
Collect SCM Citations by Source This method parses through each section of the constellation looking for SCMs and attaching them to the Source they cite .
// Do a deep copy of the sources