src/snac/server/ServerExecutor.php
/**
     * List Assertions about Constellations
     *
     * Lists assertions about the given constellelation IDs (in input).
     *
     * @param string[] $input Input array from the Server object
     * @throws \snac\exceptions\SNACException
     * @return string[] The response to send to the client
     */
List Assertions about Constellations
Lists assertions about the given constellelation IDs (in input).

@param string[] $input Input array from the Server object
@throws \snac\exceptions\SNACException
@return string[] The response to send to the client
List Assertions about Constellations Lists assertions about the given constellelation IDs ( in input ) . @param string [] $input Input array from the Server object @throws \ snac \ exceptions \ SNACException @return string [] The response to send to the client
public function listAssertions(&$input) {
        $this->logger->addDebug("Listing Assertions For Constellation");
        $response = array();
        if (isset($input["constellationid"])) {
            try {
                $this->logger->addDebug("Reading constellation status & summary from the database");
                $cId = $input["constellationid"];
                $status = $this->cStore->readConstellationStatus($cId);
                $constellation = $this->cStore->readConstellation($cId, null, \snac\server\database\DBUtil::$READ_SHORT_SUMMARY);
                $this->logger->addDebug("Finished reading constellation from the database");
                $response["constellation"] = $constellation->toArray();
                $assertions = $this->cStore->listAssertions($constellation,\snac\server\database\DBUtil::$READ_SHORT_SUMMARY, $this->uStore);
                $response["assertions"] = array();
                if (isset($assertions) && $assertions) {
                    foreach ($assertions as $key => $assert) {
                        $response["assertions"][$key] = $assert->toArray();
                    }
                }
            } catch (\Exception $e) {
                throw $e;
            }
        }
        return $response;
    }
public function listAssertions ( & $ input ) { $ this -> logger -> addDebug ( " Listing Assertions For Constellation " ) ; $ response = array ( ) ; if ( isset ( $ input [ " constellationid " ] ) ) { try { $ this -> logger -> addDebug ( " Reading constellation status & summary from the database " ) ; $ cId = $ input [ " constellationid " ] ; $ status = $ this -> cStore -> readConstellationStatus ( $ cId ) ; $ constellation = $ this -> cStore -> readConstellation ( $ cId , null , \ snac \ server \ database \ DBUtil :: $ READ_SHORT_SUMMARY ) ; $ this -> logger -> addDebug ( " Finished reading constellation from the database " ) ; $ response [ " constellation " ] = $ constellation -> toArray ( ) ; $ assertions = $ this -> cStore -> listAssertions ( $ constellation , \ snac \ server \ database \ DBUtil :: $ READ_SHORT_SUMMARY , $ this -> uStore ) ; $ response [ " assertions " ] = array ( ) ; if ( isset ( $ assertions ) && $ assertions ) { foreach ( $ assertions as $ key => $ assert ) { $ response [ " assertions " ] [ $ key ] = $ assert -> toArray ( ) ; } } } catch ( \ Exception $ e ) { throw $ e ; } } return $ response ; }
List Assertions about Constellations
 Lists assertions about the given constellelation IDs (in input).
List Assertions about Constellations Lists assertions about the given constellelation IDs ( in input ) .
// Editing the given constellation id by reading the database // Read the constellation // read the constellation into response // Leaving a catch block for logging purposes