public function RestfulDataProviderDbQuery::view in RESTful 7
View an item from the data source.
Parameters
mixed $id: The unique ID for the item.
Return value
array The structured array ready to be rendered for the current item.
Overrides RestfulBase::view
2 calls to RestfulDataProviderDbQuery::view()
- RestfulDataProviderDbQuery::create in plugins/
restful/ RestfulDataProviderDbQuery.php - Create an item from the request object.
- RestfulDataProviderDbQuery::update in plugins/
restful/ RestfulDataProviderDbQuery.php - Update an item based on the request object.
File
- plugins/
restful/ RestfulDataProviderDbQuery.php, line 373 - Contains \RestfulDataProviderDbQuery
Class
- RestfulDataProviderDbQuery
- @file Contains \RestfulDataProviderDbQuery
Code
public function view($ids) {
return $this
->viewMultiple(explode(',', $ids));
}