Pimcore\Model\Search\Backend\Data\Listing\Dao::getCount PHP Метод

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

public getCount ( ) : integer | string
Результат integer | string
    public function getCount()
    {
        if (count($this->model->getEntries()) > 0) {
            return count($this->model->getEntries());
        }
        $amount = $this->db->fetchOne("SELECT COUNT(*) as amount FROM search_backend_data " . $this->getCondition() . $this->getGroupBy() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
        return $amount;
    }