src/snac/client/webui/WebUIExecutor.php
/**
     * Display New Edit Page
     *
     * Fills the display object with the edit page for a given user, using a constellation from the input
     * rather than from the database
     *
     * @param string[] $input Post/Get inputs from the webui
     * @param \snac\client\webui\display\Display $display The display object for page creation
     */
Display New Edit Page
Fills the display object with the edit page for a given user, using a constellation from the input
rather than from the database


Display New Edit Page Fills the display object with the edit page for a given user using a constellation from the input rather than from the database
public function displayNewEditPage(&$input, &$display) {
         $mapper = new \snac\client\webui\util\ConstellationPostMapper();
         $mapper->allowTermLookup();
         $constellation = $mapper->serializeToConstellation($input);
         $this->logger->addDebug("Setting NEW constellation data", $constellation->toArray());
         $display->setTemplate("edit_page");
         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 displayNewEditPage ( & $ input , & $ display ) { $ mapper = new \ snac \ client \ webui \ util \ ConstellationPostMapper ( ) ; $ mapper -> allowTermLookup ( ) ; $ constellation = $ mapper -> serializeToConstellation ( $ input ) ; $ this -> logger -> addDebug ( " Setting NEW constellation data " , $ constellation -> toArray ( ) ) ; $ display -> setTemplate ( " edit_page " ) ; 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 Edit Page
 Fills the display object with the edit page for a given user, using a constellation from the input
 rather than from the database
Display New Edit Page Fills the display object with the edit page for a given user using a constellation from the input rather than from the database
// Get the constellation object