public function RestWSBaseFormat::viewResource in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 restws.formats.inc \RestWSBaseFormat::viewResource()
Gets the representation of a resource.
Overrides RestWSFormatInterface::viewResource
2 methods override RestWSBaseFormat::viewResource()
- RestWSFormatRDF::viewResource in ./
restws.formats.inc - Gets the representation of a resource.
- RestWSFormatXML::viewResource in ./
restws.formats.inc - Gets the representation of a resource.
File
- ./
restws.formats.inc, line 94 - 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 function viewResource($resourceController, $id) {
$values = self::getData($resourceController
->wrapper($id));
return $this
->serialize($values);
}