bookList = $bookList_in; } public function getCurrentBook() { if (($this->currentBook > 0) && ($this->bookList->getBookCount() >= $this->currentBook)) { return $this->bookList->getBook($this->currentBook); } } public function getNextBook() { if ($this->hasNextBook()) { return $this->bookList->getBook(++$this->currentBook); } else { return NULL; } } public function hasNextBook() { if ($this->bookList->getBookCount() > $this->currentBook) { return TRUE; } else { return FALSE; } } } ?>