src/snac/server/database/SQL.php
/**
     * Replace Resource Relation Resource
     *
     * Replace
     * to sql fields. Note keys in $argList have a fixed order.
     *
     * @param int $victimID The resource ID for the discarded resource
     * @param int $victimVersion The version of the discarded resource
     * @param int $targetID The resource ID for target resource
     * @param int $targetVersion The version of target resource
     *
     * @return true
     *
     */
Replace Resource Relation Resource
Replace
to sql fields. Note keys in $argList have a fixed order.

@param int $victimID The resource ID for the discarded resource
@param int $victimVersion The version of the discarded resource
@param int $targetID The resource ID for target resource
@param int $targetVersion The version of target resource

@return true
Replace Resource Relation Resource Replace to sql fields . Note keys in $argList have a fixed order . @param int $victimID The resource ID for the discarded resource @param int $victimVersion The version of the discarded resource @param int $targetID The resource ID for target resource @param int $targetVersion The version of target resource @return true
public function replaceResourceRelationResource($victimID, $victimVersion , $targetID, $targetVersion) {
        $query = "UPDATE related_resource
                  SET resource_id = $1,
                      resource_version = $2
                  WHERE resource_id = $3";
        $result = $this->sdb->query($query, array( $targetID, $targetVersion, $victimID));
        return true;
    }
public function replaceResourceRelationResource ( $ victimID , $ victimVersion , $ targetID , $ targetVersion ) { $ query = " UPDATE related_resource
                  SET resource_id = $1,
                      resource_version = $2
                  WHERE resource_id = $3 " ; $ result = $ this -> sdb -> query ( $ query , array ( $ targetID , $ targetVersion , $ victimID ) ) ; return true ; }
Replace Resource Relation Resource
 Replace
 to sql fields.
Replace Resource Relation Resource Replace to sql fields .