public function TripalWebServiceResource::getID

3.x TripalWebServiceResource.inc public TripalWebServiceResource::getID()

Retrieves the unique identifier for this resource.

Every resource must have a unique Idientifer. In JSON-LD the '@id' element identifies the IRI for the resource which will include the unique identifier. The TraiplWebService to which a resource is added will build the IRIs but it needs the unique ID of each resource.

Return value

The unique identifier for the resource.

File

tripal_ws/includes/TripalWebServiceResource.inc, line 257

Class

TripalWebServiceResource

Code

public function getID() {
  return $this->id;
}