src/snac/client/webui/WebUIExecutor.php
/**
    * Reconcile Pieces
    *
    * This method takes the constellation pieces from the input (similar to a "Save" in editing), builds
    * a Constellation out of those pieces and then asks the server to perform Identity Reconciliation
    * within SNAC on this constellation.  The results are returned to the client.
    *
    * @param string[] $input Post/Get inputs from the webui
    * @return string[] The web ui's response to the client (array ready for json_encode)
    */
Reconcile Pieces
This method takes the constellation pieces from the input (similar to a "Save" in editing), builds
a Constellation out of those pieces and then asks the server to perform Identity Reconciliation
within SNAC on this constellation.  The results are returned to the client.

@param string[] $input Post/Get inputs from the webui
@return string[] The web ui's response to the client (array ready for json_encode)
Reconcile Pieces This method takes the constellation pieces from the input ( similar to a " Save " in editing ) builds a Constellation out of those pieces and then asks the server to perform Identity Reconciliation within SNAC on this constellation . The results are returned to the client . @param string [] $input Post / Get inputs from the webui @return string [] The web ui ' s response to the client ( array ready for json_encode )
public function reconcilePieces(&$input) {
        $mapper = new \snac\client\webui\util\ConstellationPostMapper();
        $constellation = $mapper->serializeToConstellation($input);
        $this->logger->addDebug("reconciling constellation", $constellation->toArray());
        $request = array("command"=>"reconcile");
        $request["constellation"] = $constellation->toArray();
        $serverResponse = $this->connect->query($request);
        $response = array("results" => array());
        if (!is_array($serverResponse)) {
            $this->logger->addDebug("server's response: $serverResponse");
            return array($serverResponse);
        } else if (isset($serverResponse["reconciliation"])) {
            $response["result"] = $serverResponse["result"];
            foreach ($serverResponse["reconciliation"] as $k => $v) {
                if ($v["strength"] > 5.0) {
                    $response["results"][$k] = $v["identity"];
                }
            }
        }
        return $response;
    }
public function reconcilePieces ( & $ input ) { $ mapper = new \ snac \ client \ webui \ util \ ConstellationPostMapper ( ) ; $ constellation = $ mapper -> serializeToConstellation ( $ input ) ; $ this -> logger -> addDebug ( " reconciling constellation " , $ constellation -> toArray ( ) ) ; $ request = array ( " command " => " reconcile " ) ; $ request [ " constellation " ] = $ constellation -> toArray ( ) ; $ serverResponse = $ this -> connect -> query ( $ request ) ; $ response = array ( " results " => array ( ) ) ; if ( ! is_array ( $ serverResponse ) ) { $ this -> logger -> addDebug ( " server's response:  $ serverResponse " ) ; return array ( $ serverResponse ) ; } else if ( isset ( $ serverResponse [ " reconciliation " ] ) ) { $ response [ " result " ] = $ serverResponse [ " result " ] ; foreach ( $ serverResponse [ " reconciliation " ] as $ k => $ v ) { if ( $ v [ " strength " ] > 5.0 ) { $ response [ " results " ] [ $ k ] = $ v [ " identity " ] ; } } } return $ response ; }
Reconcile Pieces
 This method takes the constellation pieces from the input (similar to a "Save" in editing), builds
 a Constellation out of those pieces and then asks the server to perform Identity Reconciliation
 within SNAC on this constellation.
Reconcile Pieces This method takes the constellation pieces from the input ( similar to a " Save " in editing ) builds a Constellation out of those pieces and then asks the server to perform Identity Reconciliation within SNAC on this constellation .
// Get the constellation object // Build a data structure to send to the server // Send the query to the server