src/snac/server/database/DBUtil.php
/**
     * Delete Resource
     *
     * Set resource as deleted and save in psql
     *
     * @param \snac\data\Resource $resource
     * @param \snac\data\User $user The user performing the delete
     */
Delete Resource
Set resource as deleted and save in psql


Delete Resource Set resource as deleted and save in psql
public function deleteResource($resource, $user) {
        if (!isset($resource)) {
            return false;
        }
        $resource->setVersion(null);
        $resource->setOperation(\snac\data\AbstractData::$OPERATION_DELETE);
        $this->writeResource($user, $resource);
    }
public function deleteResource ( $ resource , $ user ) { if ( ! isset ( $ resource ) ) { return false ; } $ resource -> setVersion ( null ) ; $ resource -> setOperation ( \ snac \ data \ AbstractData :: $ OPERATION_DELETE ) ; $ this -> writeResource ( $ user , $ resource ) ; }
Delete Resource
 Set resource as deleted and save in psql
Delete Resource Set resource as deleted and save in psql