protected function getModelCount($filter = true)
    {
        if ($this->model && $this->model instanceof \MUtil_Model_ModelAbstract) {
            $totalCount = $this->model->loadPaginator()->getTotalItemCount();
            return $totalCount;
        }
        return 0;
    }
protected function getModelCount($filter = true)
    {
        if ($this->model && $this->model instanceof \MUtil_Model_ModelAbstract) {
            $totalCount = $this->model->loadPaginator()->getTotalItemCount();
            return $totalCount;
        }
        return 0;
    }
protected function getModelCount ( $ filter = true ) { if ( $ this -> model && $ this -> model instanceof \ MUtil_Model_ModelAbstract ) { $ totalCount = $ this -> model -> loadPaginator ( ) -> getTotalItemCount ( ) ; return $ totalCount ; } return 0 ; }
Get the number of items in a specific model, using the models paginator
@param  array $filter Filter for the model
@return int Number of items in the model
Get the number of items in a specific model using the models paginator