public function end()
    {
        # Calculate the Beginning + The maximum amount of results
        $calc = $this->start() + $this->max;

        # Only return this if it is not above the total otherwise return our maximum
        # example, 24 + 6 = 30, but with only 26 reselts it will display the total results istead (26)
        $r = ($calc > $this->total) ? $this->total : $calc;

        # return the result
        return $r;
    }
public function end()
    {
        # Calculate the Beginning + The maximum amount of results
        $calc = $this->start() + $this->max;

        # Only return this if it is not above the total otherwise return our maximum
        # example, 24 + 6 = 30, but with only 26 reselts it will display the total results istead (26)
        $r = ($calc > $this->total) ? $this->total : $calc;

        # return the result
        return $r;
    }
public function end ( ) { # Calculate the Beginning + The maximum amount of results $ calc = $ this -> start ( ) + $ this -> max ; # Only return this if it is not above the total otherwise return our maximum # example, 24 + 6 = 30, but with only 26 reselts it will display the total results istead (26) $ r = ( $ calc > $ this -> total ) ? $ this -> total : $ calc ; # return the result return $ r ; }
This calculates the end of our result set, based on our current page
@return int Final Calculation of where our result set should end
This calculates the end of our result set based on our current page