src/snac/server/ServerExecutor.php
/**
     * Remove Maybe-Same Relationship
     *
     * Removes the maybe-same relationships between the given constellations in the input.
     *
     * @param string[] $input Input array from the Server object
     * @throws \snac\exceptions\SNACException
     * @return string[] The response to send to the client
     */
Remove Maybe-Same Relationship
Removes the maybe-same relationships between the given constellations in the input.

@param string[] $input Input array from the Server object
@throws \snac\exceptions\SNACException
@return string[] The response to send to the client
Remove Maybe - Same Relationship Removes the maybe - same relationships between the given constellations in the 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 removeMaybeSameConstellation(&$input) {
        $response = array();
        $response["result"] = "failure";
        if (isset($input["constellationids"]) && is_array($input["constellationids"]) && count($input["constellationids"]) > 1) {
            $success = true;
            foreach ($input["constellationids"] as $i=>$icid1) {
                foreach ($input["constellationids"] as $j=>$icid2) {
                    if ($icid1 != $icid2) {
                        $constellation1 = new \snac\data\Constellation();
                        $constellation1->setID($icid1);
                        $constellation2 = new \snac\data\Constellation();
                        $constellation2->setID($icid2);
                        $success = $success && $this->cStore->removeMaybeSameLink($constellation1, $constellation2);
                    }
                }
            }
            if ($success)
                $response["result"] = "success";
            else
                $response["error"] = "One or more remove maybe same link operations did not succeed";
        }
        $response["debug"] = $input;
        return $response;
    }
public function removeMaybeSameConstellation ( & $ input ) { $ response = array ( ) ; $ response [ " result " ] = " failure " ; if ( isset ( $ input [ " constellationids " ] ) && is_array ( $ input [ " constellationids " ] ) && count ( $ input [ " constellationids " ] ) > 1 ) { $ success = true ; foreach ( $ input [ " constellationids " ] as $ i => $ icid1 ) { foreach ( $ input [ " constellationids " ] as $ j => $ icid2 ) { if ( $ icid1 != $ icid2 ) { $ constellation1 = new \ snac \ data \ Constellation ( ) ; $ constellation1 -> setID ( $ icid1 ) ; $ constellation2 = new \ snac \ data \ Constellation ( ) ; $ constellation2 -> setID ( $ icid2 ) ; $ success = $ success && $ this -> cStore -> removeMaybeSameLink ( $ constellation1 , $ constellation2 ) ; } } } if ( $ success ) $ response [ " result " ] = " success " ; else $ response [ " error " ] = " One or more remove maybe same link operations did not succeed " ; } $ response [ " debug " ] = $ input ; return $ response ; }
Remove Maybe-Same Relationship
 Removes the maybe-same relationships between the given constellations in the input.
Remove Maybe - Same Relationship Removes the maybe - same relationships between the given constellations in the input .