MetaModels\DcGeneral\Data\Driver::getCount PHP Method

getCount() public method

Return the amount of total items (filtering may be used in the config).
public getCount ( ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig ) : integer
$objConfig ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface The filter config options.
return integer
    public function getCount(ConfigInterface $objConfig)
    {
        $objFilter = $this->prepareFilter($objConfig);
        return $this->getMetaModel()->getCount($objFilter);
    }