src/snac/client/webui/WebUIExecutor.php
/**
     * Display New Simple Page
     *
     * Creates a blank "new constellation" simple edit page and loads it into the display.
     *
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Display New Simple Page
Creates a blank "new constellation" simple edit page and loads it into the display.


Display New Simple Page Creates a blank " new constellation " simple edit page and loads it into the display .
public function displayNewPage(&$display) {
        $display->setTemplate("new_constellation_page");
        $constellation = new \snac\data\Constellation();
        $constellation->setOperation(\snac\data\Constellation::$OPERATION_INSERT);
        $constellation->addNameEntry(new \snac\data\NameEntry());
        if (\snac\Config::$DEBUG_MODE == true) {
            $display->addDebugData("constellationSource", json_encode($constellation, JSON_PRETTY_PRINT));
        }
        $this->logger->addDebug("Setting constellation data into the page template");
        $display->setData($constellation);
    }
public function displayNewPage ( & $ display ) { $ display -> setTemplate ( " new_constellation_page " ) ; $ constellation = new \ snac \ data \ Constellation ( ) ; $ constellation -> setOperation ( \ snac \ data \ Constellation :: $ OPERATION_INSERT ) ; $ constellation -> addNameEntry ( new \ snac \ data \ NameEntry ( ) ) ; if ( \ snac \ Config :: $ DEBUG_MODE == true ) { $ display -> addDebugData ( " constellationSource " , json_encode ( $ constellation , JSON_PRETTY_PRINT ) ) ; } $ this -> logger -> addDebug ( " Setting constellation data into the page template " ) ; $ display -> setData ( $ constellation ) ; }
Display New Simple Page
 Creates a blank "new constellation" simple edit page and loads it into the display.
Display New Simple Page Creates a blank " new constellation " simple edit page and loads it into the display .