src/snac/server/database/SQL.php
/**
     * Select Related ICIDs for this target ignoring version
     *
     * Ignores the version, but quickly grabs all ICIDs that may still point at
     * the given target ICID.
     * @param  int $icid The target ICID to search
     * @return int[][]       Associative array of [ic_id, id] constituting (ICID, resourceRelationID) pairs that may still point to this target
     */
Select Related ICIDs for this target ignoring version
Ignores the version, but quickly grabs all ICIDs that may still point at
the given target ICID.
@param  int $icid The target ICID to search
@return int[][]       Associative array of [ic_id, id] constituting (ICID, resourceRelationID) pairs that may still point to this target
Select Related ICIDs for this target ignoring version Ignores the version but quickly grabs all ICIDs that may still point at the given target ICID . @param int $icid The target ICID to search @return int [] [] Associative array of [ ic_id id ] constituting ( ICID resourceRelationID ) pairs that may still point to this target
public function selectUnversionedConstellationIDsForRelationTarget($icid) {
        $qq = 'selectrelatedicids';
        $this->sdb->prepare($qq,
                            'select distinct aa.ic_id, aa.id
                            from related_identity as aa
                            where not aa.is_deleted and
                            aa.related_id = $1');
        $result = $this->sdb->execute($qq,
                                      array($icid));
        $all = array();
        while ($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row);
        }
        $this->sdb->deallocate($qq);
        return $all;
    }
public function selectUnversionedConstellationIDsForRelationTarget ( $ icid ) { $ qq = 'selectrelatedicids' ; $ this -> sdb -> prepare ( $ qq , 'select distinct aa.ic_id, aa.id
                            from related_identity as aa
                            where not aa.is_deleted and
                            aa.related_id = $1' ) ; $ result = $ this -> sdb -> execute ( $ qq , array ( $ icid ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row ) ; } $ this -> sdb -> deallocate ( $ qq ) ; return $ all ; }
Select Related ICIDs for this target ignoring version
 Ignores the version, but quickly grabs all ICIDs that may still point at
 the given target ICID.
Select Related ICIDs for this target ignoring version Ignores the version but quickly grabs all ICIDs that may still point at the given target ICID .