src/snac/client/webui/WebUIExecutor.php
/**
     * Simplify a Constellation
     *
     * Takes the given constellation and modifies it to make a simpler constellation to send the
     * templating engine.  This includes things like setting the preferred name, etc.
     *
     * @param \snac\data\Constellation $constellation The Constellation to modify
     * @return boolean True if anything was changed, false otherwise
     */
Simplify a Constellation
Takes the given constellation and modifies it to make a simpler constellation to send the
templating engine.  This includes things like setting the preferred name, etc.

@param \snac\data\Constellation $constellation The Constellation to modify
@return boolean True if anything was changed, false otherwise
Simplify a Constellation Takes the given constellation and modifies it to make a simpler constellation to send the templating engine . This includes things like setting the preferred name etc . @param \ snac \ data \ Constellation $constellation The Constellation to modify @return boolean True if anything was changed false otherwise
protected function simplifyConstellation(&$constellation) {
        $constellation->setPreferredNameEntry($constellation->getPreferredNameEntry());
        $constellation->setNameEntries(array($constellation->getPreferredNameEntry()));
        return true;
    }
protected function simplifyConstellation ( & $ constellation ) { $ constellation -> setPreferredNameEntry ( $ constellation -> getPreferredNameEntry ( ) ) ; $ constellation -> setNameEntries ( array ( $ constellation -> getPreferredNameEntry ( ) ) ) ; return true ; }
Simplify a Constellation
 Takes the given constellation and modifies it to make a simpler constellation to send the
 templating engine.
Simplify a Constellation Takes the given constellation and modifies it to make a simpler constellation to send the templating engine .
// Set the preferred name entry from the list (if applicable) // Remove all name entries but the preferred one