public function TripalWebServiceCollection::getContext
3.x TripalWebServiceCollection.inc | public TripalWebServiceCollection::getContext() |
Retrieves the data section of the resource.
The JSON-LD response constists of two sections the '@context' section and the data section. This function only returns the data section for this resource
Return value
An associative array containing the data section of the response.
Overrides TripalWebServiceResource::getContext
File
- tripal_ws/
includes/ TripalWebServiceCollection.inc, line 182
Class
Code
public function getContext() {
if ($this->doPaging == TRUE) {
$this->addContextItem('view', 'hydra:PartialCollectionView');
}
$context = $this->context;
foreach ($this->members as $key => $member) {
$citems = $member->getContext();
foreach ($citems as $key => $val) {
$context[$key] = $val;
}
}
return $context;
}