public function totalPages()
    {
        $maxrows      = (($m = $this->getParameter('RowsPerPage')) !== null)?$m:$this->getLocal('MaxRows');
        $totalrecords = (($m = $this->getParameter('TotalRecords')) !== null)?$m:$this->getLocal('TotalRecords');

        if (empty($totalrecords))
            return 0;
        if(empty($maxrows))
            throw new FiltererException('filter \'paging-total-pages\' requires the MaxRows template variable to be set');

        $totalpages = intval(($totalrecords-1)/$maxrows)+1;

        return $totalpages;
    }
public function totalPages()
    {
        $maxrows      = (($m = $this->getParameter('RowsPerPage')) !== null)?$m:$this->getLocal('MaxRows');
        $totalrecords = (($m = $this->getParameter('TotalRecords')) !== null)?$m:$this->getLocal('TotalRecords');

        if (empty($totalrecords))
            return 0;
        if(empty($maxrows))
            throw new FiltererException('filter \'paging-total-pages\' requires the MaxRows template variable to be set');

        $totalpages = intval(($totalrecords-1)/$maxrows)+1;

        return $totalpages;
    }
public function totalPages ( ) { $ maxrows = ( ( $ m = $ this -> getParameter ( 'RowsPerPage' ) ) !== null ) ? $ m : $ this -> getLocal ( 'MaxRows' ) ; $ totalrecords = ( ( $ m = $ this -> getParameter ( 'TotalRecords' ) ) !== null ) ? $ m : $ this -> getLocal ( 'TotalRecords' ) ; if ( empty ( $ totalrecords ) ) return 0 ; if ( empty ( $ maxrows ) ) throw new FiltererException ( 'filter \'paging-total-pages\' requires the MaxRows template variable to be set' ) ; $ totalpages = intval ( ( $ totalrecords - 1 ) / $ maxrows ) + 1 ; return $ totalpages ; }
Returns the total number of pages

Expected Params (These will be looked for in Locals if the Param doesn't exist):
RowsPerPage  integer
TotalRecords integer

@throws FiltererException
@return int
Returns the total number of pages