src/snac/util/EACCPFParser.php
/**
     * Generate Display Name for Source
     *
     * Generates a display name for a given source by inspecting the source and creating a name
     * for this entity.  This will be stored in the database until updated by a human to create
     * a more meaningful name.
     *
     * @param \snac\data\Source $source Source object to create name for
     * @param int $i optional The index into the source list
     * @return string the display name
     */
Generate Display Name for Source
Generates a display name for a given source by inspecting the source and creating a name
for this entity.  This will be stored in the database until updated by a human to create
a more meaningful name.

@param \snac\data\Source $source Source object to create name for
@param int $i optional The index into the source list
@return string the display name
Generate Display Name for Source Generates a display name for a given source by inspecting the source and creating a name for this entity . This will be stored in the database until updated by a human to create a more meaningful name . @param \ snac \ data \ Source $source Source object to create name for @param int $i optional The index into the source list @return string the display name
private function generateSourceDisplayName($source, $i = null) {
        $display = "";
        if ($i != null) {
            $display .= "Source $i: ";
        }
        if (stristr($source->getText(), "ead_entity"))
            $display .= "EAD from ";
        if ($source->getURI() != null && $source->getURI() != "") {
            $display .= $source->getURI();
        }
        return $display;
    }
private function generateSourceDisplayName ( $ source , $ i = null ) { $ display = " " ; if ( $ i != null ) { $ display .= " Source  $ i :  " ; } if ( stristr ( $ source -> getText ( ) , " ead_entity " ) ) $ display .= " EAD from  " ; if ( $ source -> getURI ( ) != null && $ source -> getURI ( ) != " " ) { $ display .= $ source -> getURI ( ) ; } return $ display ; }
Generate Display Name for Source
 Generates a display name for a given source by inspecting the source and creating a name
 for this entity.
Generate Display Name for Source Generates a display name for a given source by inspecting the source and creating a name for this entity .