src/snac/client/webui/WebUIExecutor.php
/**
     * Save Institution
     *
     * Saves a given SNAC ID as a SNAC affiliated institution
     *
     * @param string[] $input Post/Get input with constellationid key
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Save Institution
Saves a given SNAC ID as a SNAC affiliated institution


Save Institution Saves a given SNAC ID as a SNAC affiliated institution
public function saveInstitution($input) {
        $ask = ["command" => "insert_institution"];
        if (isset($input["constellationid"]))
            $ask["constellationid"] = $input["constellationid"];
        $serverResponse = $this->connect->query($ask);
        $response = [];
        if (isset($serverResponse["result"]) && $serverResponse["result"] === "success") {
            $response["result"] = "success";
        } else {
            $response["result"] = "error";
        }
        return $response;
    }
public function saveInstitution ( $ input ) { $ ask = [ " command " => " insert_institution " ] ; if ( isset ( $ input [ " constellationid " ] ) ) $ ask [ " constellationid " ] = $ input [ " constellationid " ] ; $ serverResponse = $ this -> connect -> query ( $ ask ) ; $ response = [ ] ; if ( isset ( $ serverResponse [ " result " ] ) && $ serverResponse [ " result " ] === " success " ) { $ response [ " result " ] = " success " ; } else { $ response [ " result " ] = " error " ; } return $ response ; }
Save Institution
 Saves a given SNAC ID as a SNAC affiliated institution
Save Institution Saves a given SNAC ID as a SNAC affiliated institution