source/Application/Model/Diagnostics.php
protected function _countRows($sTable, $blMode)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sRequest = 'SELECT COUNT(*) FROM ' . $sTable;

        if ($blMode == false) {
            $sRequest .= ' WHERE oxactive = 1';
        }

         $aRes = $oDb->select($sRequest)->fields[0];

        return $aRes;
    }
protected function _countRows($sTable, $blMode)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sRequest = 'SELECT COUNT(*) FROM ' . $sTable;

        if ($blMode == false) {
            $sRequest .= ' WHERE oxactive = 1';
        }

         $aRes = $oDb->select($sRequest)->fields[0];

        return $aRes;
    }
protected function _countRows ( $ sTable , $ blMode ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sRequest = 'SELECT COUNT(*) FROM ' . $ sTable ; if ( $ blMode == false ) { $ sRequest .= ' WHERE oxactive = 1' ; } $ aRes = $ oDb -> select ( $ sRequest ) -> fields [ 0 ] ; return $ aRes ; }
counts result Rows

@param string  $sTable table
@param boolean $blMode mode

@return integer
counts result Rows