You are here

public static function RestWSBaseFormat::getResourceReference in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.formats.inc \RestWSBaseFormat::getResourceReference()
2 calls to RestWSBaseFormat::getResourceReference()
RestWSBaseFormat::createResource in ./restws.formats.inc
Creates a new resource.
RestWSBaseFormat::getData in ./restws.formats.inc
Gets a simple PHP array using URI references for some wrapped data.

File

./restws.formats.inc, line 164
RESTful web services module formats.

Class

RestWSBaseFormat
A base for all simple formats that are just serializing/unserializing an array of property values.

Code

public static function getResourceReference($resource, $id) {
  return array(
    'uri' => restws_resource_uri($resource, $id),
    'id' => $id,
    'resource' => $resource,
  );
}