public function RestfulDataProviderDbQuery::getTotalCount in RESTful 7
Helper method to get the total count of entities that match certain request.
Return value
int The total number of results without including pagination.
Overrides RestfulDataProviderDbQueryInterface::getTotalCount
File
- plugins/
restful/ RestfulDataProviderDbQuery.php, line 300 - Contains \RestfulDataProviderDbQuery
Class
- RestfulDataProviderDbQuery
- @file Contains \RestfulDataProviderDbQuery
Code
public function getTotalCount() {
return intval($this
->getQueryCount()
->execute()
->fetchField());
}