application/modules/g/controllers/ExtController.php
protected function _fetchTotal($modelName, $conditions) {
        if (!array_key_exists('query', $conditions)) {
            $conditions['query'] = array();
        }
        $man = new Garp_Content_Manager($modelName);
        return $man->count($conditions);
    }
protected function _fetchTotal($modelName, $conditions) {
        if (!array_key_exists('query', $conditions)) {
            $conditions['query'] = array();
        }
        $man = new Garp_Content_Manager($modelName);
        return $man->count($conditions);
    }
protected function _fetchTotal ( $ modelName , $ conditions ) { if ( ! array_key_exists ( 'query' , $ conditions ) ) { $ conditions [ 'query' ] = array ( ) ; } $ man = new Garp_Content_Manager ( $ modelName ) ; return $ man -> count ( $ conditions ) ; }
Fetch total amount of records condoning to a set of conditions

@param String $modelName The entity name
@param Array $conditions Query modifiers
@return Int
Fetch total amount of records condoning to a set of conditions