src/snac/server/database/SQL.php
/**
     * Delete from Name Index
     *
     * Deletes the given ICID's values in the name index.  This would remove the name from the browsing index.
     *
     * @param int $icid The ICID of the constellation to remove
     * @return boolean True if successfully deleted, False if nothing to delete (failure)
     */
Delete from Name Index
Deletes the given ICID's values in the name index.  This would remove the name from the browsing index.

@param int $icid The ICID of the constellation to remove
@return boolean True if successfully deleted, False if nothing to delete (failure)
Delete from Name Index Deletes the given ICID ' s values in the name index . This would remove the name from the browsing index . @param int $icid The ICID of the constellation to remove @return boolean True if successfully deleted False if nothing to delete ( failure )
public function deleteFromNameIndex($icid) {
        $result = $this->sdb->query("delete from name_index where ic_id = $1 returning *;", array($icid));
        $check = array();
        while($row = $this->sdb->fetchRow($result))
        {
            array_push($check, $row);
        }
        if (!empty($check)) {
            return true;
        }
        return false;
    }
public function deleteFromNameIndex ( $ icid ) { $ result = $ this -> sdb -> query ( " delete from name_index where ic_id = $1 returning *; " , array ( $ icid ) ) ; $ check = array ( ) ; while ( $ row = $ this -> sdb -> fetchRow ( $ result ) ) { array_push ( $ check , $ row ) ; } if ( ! empty ( $ check ) ) { return true ; } return false ; }
Delete from Name Index
 Deletes the given ICID's values in the name index.
Delete from Name Index Deletes the given ICID ' s values in the name index .