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()
- TripalWebServiceCollection::setType in tripal_ws/
includes/ TripalWebServiceCollection.inc - TripalWebServiceCollection::__construct in tripal_ws/
includes/ TripalWebServiceCollection.inc - Implements the constructor.
1 method overrides TripalWebServiceResource::setType()
- TripalWebServiceCollection::setType in tripal_ws/
includes/ TripalWebServiceCollection.inc
File
- tripal_ws/
includes/ TripalWebServiceResource.inc, line 112
Class
Code
public function setType($type) {
$this->checkKey($type);
$this->type = $type;
$this->data['@type'] = $type;
}