src/snac/client/webui/WebUIExecutor.php
/**
     * Display Grid Page
     *
     * Fills the display object with the explore grid.
     *
     * @param string[] $input Post/Get inputs from the webui
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Display Grid Page
Fills the display object with the explore grid.


Display Grid Page Fills the display object with the explore grid .
public function displayGridPage(&$input, &$display) {
        $display->setTemplate("grid_page");
        $otherInfo = array();
        if (isset($input["redirected"])) {
            $otherInfo["message"] = "redirected";
        }
        $randomQuery = $this->connect->query(array(
                "command"=>"random_constellations",
                "images" => true
            ));
        if (isset($randomQuery["constellation"]) && $randomQuery["constellation"] != null) {
            $randomConstellations = $randomQuery["constellation"];
        }
        $display->setData(array_merge($randomQuery, $otherInfo));
    }
public function displayGridPage ( & $ input , & $ display ) { $ display -> setTemplate ( " grid_page " ) ; $ otherInfo = array ( ) ; if ( isset ( $ input [ " redirected " ] ) ) { $ otherInfo [ " message " ] = " redirected " ; } $ randomQuery = $ this -> connect -> query ( array ( " command " => " random_constellations " , " images " => true ) ) ; if ( isset ( $ randomQuery [ " constellation " ] ) && $ randomQuery [ " constellation " ] != null ) { $ randomConstellations = $ randomQuery [ " constellation " ] ; } $ display -> setData ( array_merge ( $ randomQuery , $ otherInfo ) ) ; }
Display Grid Page
 Fills the display object with the explore grid.
Display Grid Page Fills the display object with the explore grid .