src/snac/client/webui/WebUIExecutor.php
/**
     * Display Institution Stats Page
     *
     * Displays the stats page for the given institution
     *
     * @param string[] $input Post/Get inputs from the webui
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Display Institution Stats Page
Displays the stats page for the given institution


Display Institution Stats Page Displays the stats page for the given institution
public function displayInstitutionPage(&$input, &$display) {
        $ask = array(
            "command"=>"institution_information"
        );
        if (isset($input["constellationid"]))
            $ask["constellationid"] = $input["constellationid"];
        $serverResponse = $this->connect->query($ask);
        if (!isset($serverResponse["result"]) || $serverResponse["result"] != 'success')
            return $this->drawErrorPage($serverResponse, $display);
        $display->setData(array_merge($serverResponse, ["json" => json_encode($serverResponse, JSON_PRETTY_PRINT)]));
        $display->setTemplate("institution_info");
        return true;
    }
public function displayInstitutionPage ( & $ input , & $ display ) { $ ask = array ( " command " => " institution_information " ) ; if ( isset ( $ input [ " constellationid " ] ) ) $ ask [ " constellationid " ] = $ input [ " constellationid " ] ; $ serverResponse = $ this -> connect -> query ( $ ask ) ; if ( ! isset ( $ serverResponse [ " result " ] ) || $ serverResponse [ " result " ] != 'success' ) return $ this -> drawErrorPage ( $ serverResponse , $ display ) ; $ display -> setData ( array_merge ( $ serverResponse , [ " json " => json_encode ( $ serverResponse , JSON_PRETTY_PRINT ) ] ) ) ; $ display -> setTemplate ( " institution_info " ) ; return true ; }
Display Institution Stats Page
 Displays the stats page for the given institution
Display Institution Stats Page Displays the stats page for the given institution