public function getCurrentPageLastItem()
    {
        $first = $this->getCurrentPageFirstItem();

        if (empty($first)) {
            return 0;
        }

        $last = $first + $this->limit - 1;

        if ($last > $this->total) {
            return $this->total;
        }

        return $last;
    }
public function getCurrentPageLastItem()
    {
        $first = $this->getCurrentPageFirstItem();

        if (empty($first)) {
            return 0;
        }

        $last = $first + $this->limit - 1;

        if ($last > $this->total) {
            return $this->total;
        }

        return $last;
    }
public function getCurrentPageLastItem ( ) { $ first = $ this -> getCurrentPageFirstItem ( ) ; if ( empty ( $ first ) ) { return 0 ; } $ last = $ first + $ this -> limit - 1 ; if ( $ last > $ this -> total ) { return $ this -> total ; } return $ last ; }
Returns the last item for the current page
@return integer
Returns the last item for the current page