source/Application/Controller/Admin/ListComponentAjax.php
protected function _getTotalCount($sQ)
    {
        // TODO: implement caching here

        // we can cache total count ...

        // $sCountCacheKey = md5( $sQ );

        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        return (int) \OxidEsales\Eshop\Core\DatabaseProvider::getMaster()->getOne($sQ);
    }
protected function _getTotalCount($sQ)
    {
        // TODO: implement caching here

        // we can cache total count ...

        // $sCountCacheKey = md5( $sQ );

        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        return (int) \OxidEsales\Eshop\Core\DatabaseProvider::getMaster()->getOne($sQ);
    }
protected function _getTotalCount ( $ sQ ) { // TODO: implement caching here // we can cache total count ... // $sCountCacheKey = md5( $sQ ); // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). return ( int ) \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( ) -> getOne ( $ sQ ) ; }
Returns amount of records which can be found according to passed SQL query

@param string $sQ SQL query

@return int
Returns amount of records which can be found according to passed SQL query