src/snac/client/util/ServerConnect.php
/**
     * Lookup Resource Object
     *
     * Custom Query to lookup a resource object by ID (and possibly version)
     *
     * @param int $id The resource ID to read
     * @param int $version optional the version of the resource to use (default is most recent)
     * @return \snac\data\Resource Resource object from the server or empty resource (with id/version) if not found
     */
Lookup Resource Object
Custom Query to lookup a resource object by ID (and possibly version)

@param int $id The resource ID to read
@param int $version optional the version of the resource to use (default is most recent)
@return \snac\data\Resource Resource object from the server or empty resource (with id/version) if not found
Lookup Resource Object Custom Query to lookup a resource object by ID ( and possibly version ) @param int $id The resource ID to read @param int $version optional the version of the resource to use ( default is most recent ) @return \ snac \ data \ Resource Resource object from the server or empty resource ( with id / version ) if not found
public function lookupResource($id, $version=null) {
        $request = array ();
        $request["command"] = "read_resource";
        $request["resourceid"] = $id;
        $request["version"] = $version;
        $response = $this->query($request);
        if (isset($response["resource"])) {
            $resource = new \snac\data\Resource($response["resource"]);
            return $resource;
        }
        return false;
    }
public function lookupResource ( $ id , $ version = null ) { $ request = array ( ) ; $ request [ " command " ] = " read_resource " ; $ request [ " resourceid " ] = $ id ; $ request [ " version " ] = $ version ; $ response = $ this -> query ( $ request ) ; if ( isset ( $ response [ " resource " ] ) ) { $ resource = new \ snac \ data \ Resource ( $ response [ " resource " ] ) ; return $ resource ; } return false ; }
Lookup Resource Object
 Custom Query to lookup a resource object by ID (and possibly version)
Lookup Resource Object Custom Query to lookup a resource object by ID ( and possibly version )