public function next()
    {
        $link = $this->_currentPageDoc->navigation('next');
        if ($link && isset($link->pagenum) && $link->pagenum <= $this->_lastPageNumber) {
            $this->_currentPageDoc = $link->follow();
        } else {
            $this->_currentPageDoc = null;
        }
    }
public function next()
    {
        $link = $this->_currentPageDoc->navigation('next');
        if ($link && isset($link->pagenum) && $link->pagenum <= $this->_lastPageNumber) {
            $this->_currentPageDoc = $link->follow();
        } else {
            $this->_currentPageDoc = null;
        }
    }
public function next ( ) { $ link = $ this -> _currentPageDoc -> navigation ( 'next' ) ; if ( $ link && isset ( $ link -> pagenum ) && $ link -> pagenum <= $ this -> _lastPageNumber ) { $ this -> _currentPageDoc = $ link -> follow ( ) ; } else { $ this -> _currentPageDoc = null ; } }
Go to the next page
Go to the next page