Pimcore\Tool\RestClient::getObjectCount PHP Метод

getObjectCount() публичный Метод

public getObjectCount ( null $condition = null, null $groupBy = null, null $objectClass = null ) : mixed
$condition null
$groupBy null
$objectClass null
Результат mixed
    public function getObjectCount($condition = null, $groupBy = null, $objectClass = null)
    {
        $params = $this->fillParms($condition, null, null, null, null, $groupBy, $objectClass);
        $response = (array) $this->doRequest($this->buildEndpointUrl("object-count") . $params, "GET");
        if (!$response || !$response["success"]) {
            throw new Exception("Could not retrieve object count");
        }
        return $response["data"]->totalCount;
    }