public function total($model = null)
    {
        $params = $this->params($model);

        if (isset($params['pageCount'])) {
            return $params['pageCount'];
        }

        return 0;
    }
public function total($model = null)
    {
        $params = $this->params($model);

        if (isset($params['pageCount'])) {
            return $params['pageCount'];
        }

        return 0;
    }
public function total ( $ model = null ) { $ params = $ this -> params ( $ model ) ; if ( isset ( $ params [ 'pageCount' ] ) ) { return $ params [ 'pageCount' ] ; } return 0 ; }
Gets the total number of pages in the recordset for the given model.

@param string|null $model Optional model name. Uses the default if none is specified.
@return int The total pages for the recordset.
Gets the total number of pages in the recordset for the given model .