src/snac/server/database/DBUtil.php
/**
     * Read Resource
     *
     * Reads the current version of a resource out of the database, based on the given ID.  If an optional version is
     * supplied, then that version of the resource, if it exists, will be read.
     *
     * @param int $id The resource ID to read
     * @param int $version optional The optional version number.  Without it, the current version will be read
     * @return \snac\data\Resource|null The resource for the given ID or null if none found
     */
Read Resource
Reads the current version of a resource out of the database, based on the given ID.  If an optional version is
supplied, then that version of the resource, if it exists, will be read.

@param int $id The resource ID to read
@param int $version optional The optional version number.  Without it, the current version will be read
@return \snac\data\Resource|null The resource for the given ID or null if none found
Read Resource Reads the current version of a resource out of the database based on the given ID . If an optional version is supplied then that version of the resource if it exists will be read . @param int $id The resource ID to read @param int $version optional The optional version number . Without it the current version will be read @return \ snac \ data \ Resource|null The resource for the given ID or null if none found
public function readResource($id, $version=null) {
        if (! $version)
        {
            $version = $this->sql->selectCurrentResourceVersion($id);
        }
        return $this->populateResource($id, $version);
    }
public function readResource ( $ id , $ version = null ) { if ( ! $ version ) { $ version = $ this -> sql -> selectCurrentResourceVersion ( $ id ) ; } return $ this -> populateResource ( $ id , $ version ) ; }
Read Resource
 Reads the current version of a resource out of the database, based on the given ID.
Read Resource Reads the current version of a resource out of the database based on the given ID .