src/snac/client/webui/WebUIExecutor.php
/**
     * Unlock Constellation
     *
     * Asks the server to drop the input's constellation lock level from "currently editing" down to
     * "locked editing."
     *
     * @param string[] $input Post/Get inputs from the webui
     * @return string[] The web ui's response to the client (array ready for json_encode)
     */
Unlock Constellation
Asks the server to drop the input's constellation lock level from "currently editing" down to
"locked editing."

@param string[] $input Post/Get inputs from the webui
@return string[] The web ui's response to the client (array ready for json_encode)
Unlock Constellation Asks the server to drop the input ' s constellation lock level from " currently editing " down to " locked editing . " @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 unlockConstellation(&$input) {
        $constellation = null;
        if (isset($input["constellationid"]) && isset($input["version"])) {
            $constellation = new \snac\data\Constellation();
            $constellation->setID($input["constellationid"]);
            $constellation->setVersion($input["version"]);
        } else if (isset($input["id"]) && isset($input["version"])) {
            $mapper = new \snac\client\webui\util\ConstellationPostMapper();
            $constellation = $mapper->serializeToConstellation($input);
        } else {
            return array( "result" => "failure", "error" => "No constellation or version number");
        }
        $this->logger->addDebug("unlocking constellation", $constellation->toArray());
        $request = array (
                "command" => "unlock_constellation"
        );
        $request["constellation"] = $constellation->toArray();
        $serverResponse = $this->connect->query($request);
        $response = array ();
        $response["server_debug"] = array ();
        $response["server_debug"]["unlock"] = $serverResponse;
        if (isset($serverResponse["result"]))
            $response["result"] = $serverResponse["result"];
        if (isset($serverResponse["error"]))
            $response["error"] = $serverResponse["error"];
        return $response;
    }
public function unlockConstellation ( & $ input ) { $ constellation = null ; if ( isset ( $ input [ " constellationid " ] ) && isset ( $ input [ " version " ] ) ) { $ constellation = new \ snac \ data \ Constellation ( ) ; $ constellation -> setID ( $ input [ " constellationid " ] ) ; $ constellation -> setVersion ( $ input [ " version " ] ) ; } else if ( isset ( $ input [ " id " ] ) && isset ( $ input [ " version " ] ) ) { $ mapper = new \ snac \ client \ webui \ util \ ConstellationPostMapper ( ) ; $ constellation = $ mapper -> serializeToConstellation ( $ input ) ; } else { return array ( " result " => " failure " , " error " => " No constellation or version number " ) ; } $ this -> logger -> addDebug ( " unlocking constellation " , $ constellation -> toArray ( ) ) ; $ request = array ( " command " => " unlock_constellation " ) ; $ request [ " constellation " ] = $ constellation -> toArray ( ) ; $ serverResponse = $ this -> connect -> query ( $ request ) ; $ response = array ( ) ; $ response [ " server_debug " ] = array ( ) ; $ response [ " server_debug " ] [ " unlock " ] = $ serverResponse ; if ( isset ( $ serverResponse [ " result " ] ) ) $ response [ " result " ] = $ serverResponse [ " result " ] ; if ( isset ( $ serverResponse [ " error " ] ) ) $ response [ " error " ] = $ serverResponse [ " error " ] ; return $ response ; }
Unlock Constellation
 Asks the server to drop the input's constellation lock level from "currently editing" down to
 "locked editing."
Unlock Constellation Asks the server to drop the input ' s constellation lock level from " currently editing " down to " locked editing . "
// Get the constellation object // Build a data structure to send to the server // Send the query to the server