src/snac/client/webui/WebUIExecutor.php
/**
     * Display Snippet Page
     *
     * Loads the snippet page for a given constellation input into the display.
     *
     * @param string[] $input Post/Get inputs from the webui
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Display Snippet Page
Loads the snippet page for a given constellation input into the display.


Display Snippet Page Loads the snippet page for a given constellation input into the display .
public function displaySnippetPage(&$input, &$display) {
        $message = null;
        $serverResponse = $this->getConstellation($input, $display, "summary");
        if (isset($serverResponse["constellation"])) {
            if (isset($serverResponse["constellation"]["dataType"])) {
                $constellation = $serverResponse["constellation"];
                $editingUser = null;
                $holdings = array();
                $display->setTemplate("snippet_page");
                $this->logger->addDebug("Setting constellation data into the page template");
                $display->setData(
                    $constellation
                );
            } else {
                $this->displaySplitChoicePage($serverResponse, $display);
            }
        } else {
            $this->logger->addDebug("Error page being drawn");
            $this->drawErrorPage($serverResponse, $display);
        }
    }
public function displaySnippetPage ( & $ input , & $ display ) { $ message = null ; $ serverResponse = $ this -> getConstellation ( $ input , $ display , " summary " ) ; if ( isset ( $ serverResponse [ " constellation " ] ) ) { if ( isset ( $ serverResponse [ " constellation " ] [ " dataType " ] ) ) { $ constellation = $ serverResponse [ " constellation " ] ; $ editingUser = null ; $ holdings = array ( ) ; $ display -> setTemplate ( " snippet_page " ) ; $ this -> logger -> addDebug ( " Setting constellation data into the page template " ) ; $ display -> setData ( $ constellation ) ; } else { $ this -> displaySplitChoicePage ( $ serverResponse , $ display ) ; } } else { $ this -> logger -> addDebug ( " Error page being drawn " ) ; $ this -> drawErrorPage ( $ serverResponse , $ display ) ; } }
Display Snippet Page
 Loads the snippet page for a given constellation input into the display.
Display Snippet Page Loads the snippet page for a given constellation input into the display .
// We have only ONE constellation, so display // We have multiple constellations, so redirect to split page