src/snac/client/webui/util/ConstellationPostMapper.php
/**
     * Add to Mapping
     *
     * Adds a data object and id field mapping from the interface into the list of all mappings.
     *
     * @param string $shortName short name of the field
     * @param integer $id id of the post data field
     * @param string[][] $data POST data for this object
     * @param \snac\data\AbstractData $object Constellation Data object for this data
     */
Add to Mapping
Adds a data object and id field mapping from the interface into the list of all mappings.

@param string $shortName short name of the field
@param integer $id id of the post data field
@param string[][] $data POST data for this object
@param \snac\data\AbstractData $object Constellation Data object for this data
Add to Mapping Adds a data object and id field mapping from the interface into the list of all mappings . @param string $shortName short name of the field @param integer $id id of the post data field @param string [] [] $data POST data for this object @param \ snac \ data \ AbstractData $object Constellation Data object for this data
private function addToMapping($shortName, $id, $data, $object) {
        if ($data["operation"] != "") {
            $map = array();
            $map["type"] = $shortName;
            $map["idField"] = $shortName . "_id_" . $id;
            $map["versionField"] = $shortName . "_version_" . $id;
            $map["operation"] = $this->getOperation($data);
            $map["object"] = $object;
            $this->logger->addDebug("Adding to mapping", $map);
            array_push($this->mapping, $map);
        }
    }
private function addToMapping ( $ shortName , $ id , $ data , $ object ) { if ( $ data [ " operation " ] != " " ) { $ map = array ( ) ; $ map [ " type " ] = $ shortName ; $ map [ " idField " ] = $ shortName . " _id_ " . $ id ; $ map [ " versionField " ] = $ shortName . " _version_ " . $ id ; $ map [ " operation " ] = $ this -> getOperation ( $ data ) ; $ map [ " object " ] = $ object ; $ this -> logger -> addDebug ( " Adding to mapping " , $ map ) ; array_push ( $ this -> mapping , $ map ) ; } }
Add to Mapping
 Adds a data object and id field mapping from the interface into the list of all mappings.
Add to Mapping Adds a data object and id field mapping from the interface into the list of all mappings .
// If there is an operation, then we must add it