public function TripalWebServiceResource::setType

3.x TripalWebServiceResource.inc public TripalWebServiceResource::setType($type)

Sets the resource type.

The type exist in the context of the web service.

Parameters

$type: The type

2 calls to TripalWebServiceResource::setType()
1 method overrides TripalWebServiceResource::setType()

File

tripal_ws/includes/TripalWebServiceResource.inc, line 112

Class

TripalWebServiceResource

Code

public function setType($type) {
  $this->checkKey($type);
  $this->type = $type;
  $this->data['@type'] = $type;
}