src/snac/client/webui/util/ResourcePostMapper.php
/**
     * Parse Term
     *
     * Parses and creates a Term object if the information exists in the data given.
     *
     * @param string[][] $data  Data to inspect for term object
     * @return NULL|\snac\data\Term Correct Term object or null if no term
     */
Parse Term
Parses and creates a Term object if the information exists in the data given.

@param string[][] $data  Data to inspect for term object
@return NULL|\snac\data\Term Correct Term object or null if no term
Parse Term Parses and creates a Term object if the information exists in the data given . @param string [] [] $data Data to inspect for term object @return NULL| \ snac \ data \ Term Correct Term object or null if no term
private function parseTerm($data) {
        $term = null;
        if (isset($data) && $data != null && isset($data["id"]) && $data["id"] != "" && $data["id"] != null) {
            if ($this->lookupTerms) {
                $term = $this->lookupTermsConnector->lookupTerm($data["id"]);
            } else {
                $term = new \snac\data\Term();
                $term->setID($data["id"]);
            }
        }
        return $term;
    }
private function parseTerm ( $ data ) { $ term = null ; if ( isset ( $ data ) && $ data != null && isset ( $ data [ " id " ] ) && $ data [ " id " ] != " " && $ data [ " id " ] != null ) { if ( $ this -> lookupTerms ) { $ term = $ this -> lookupTermsConnector -> lookupTerm ( $ data [ " id " ] ) ; } else { $ term = new \ snac \ data \ Term ( ) ; $ term -> setID ( $ data [ " id " ] ) ; } } return $ term ; }
Parse Term
 Parses and creates a Term object if the information exists in the data given.
Parse Term Parses and creates a Term object if the information exists in the data given .