src/snac/client/webui/WebUIExecutor.php
/**
     * Cancel a merge
     *
     * Tries to cancel a merge by asking the server to unlock both of the Constellations
     * originally locked for the merge.  If successful, then returns JSON response 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)
     */
Cancel a merge
Tries to cancel a merge by asking the server to unlock both of the Constellations
originally locked for the merge.  If successful, then returns JSON response 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)
Cancel a merge Tries to cancel a merge by asking the server to unlock both of the Constellations originally locked for the merge . If successful then returns JSON response 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 cancelMerge(&$input) {
        $request1 = array (
            "constellationid" => $input["constellationid1"],
            "version" => $input["version1"]
        );
        $response1 = $this->unlockConstellation($request1);
        $request2 = array (
            "constellationid" => $input["constellationid2"],
            "version" => $input["version2"]
        );
        $response2 = $this->unlockConstellation($request2);
        $response = array();
        $response["server_debug"] = array();
        $response["server_debug"]["unlock1"] = $response1;
        $response["server_debug"]["unlock2"] = $response2;
        if (isset($response1["error"]))
            $response["error"] = $response1["error"];
        if (isset($response2["error"]))
            $response["error"] = $response2["error"];
        if (!isset($response1["error"]) && !isset($response2["error"])) {
            $response["result"] = "success";
        } else {
            $response["result"] = "failure";
        }
        return $response;
    }
public function cancelMerge ( & $ input ) { $ request1 = array ( " constellationid " => $ input [ " constellationid1 " ] , " version " => $ input [ " version1 " ] ) ; $ response1 = $ this -> unlockConstellation ( $ request1 ) ; $ request2 = array ( " constellationid " => $ input [ " constellationid2 " ] , " version " => $ input [ " version2 " ] ) ; $ response2 = $ this -> unlockConstellation ( $ request2 ) ; $ response = array ( ) ; $ response [ " server_debug " ] = array ( ) ; $ response [ " server_debug " ] [ " unlock1 " ] = $ response1 ; $ response [ " server_debug " ] [ " unlock2 " ] = $ response2 ; if ( isset ( $ response1 [ " error " ] ) ) $ response [ " error " ] = $ response1 [ " error " ] ; if ( isset ( $ response2 [ " error " ] ) ) $ response [ " error " ] = $ response2 [ " error " ] ; if ( ! isset ( $ response1 [ " error " ] ) && ! isset ( $ response2 [ " error " ] ) ) { $ response [ " result " ] = " success " ; } else { $ response [ " result " ] = " failure " ; } return $ response ; }
Cancel a merge
 Tries to cancel a merge by asking the server to unlock both of the Constellations
 originally locked for the merge.
Cancel a merge Tries to cancel a merge by asking the server to unlock both of the Constellations originally locked for the merge .
// successfully unlocked both constellations