$pages
$pages : array
The array of pages to repeatedly iterate over.
This class provides the same interface as an iterator over crawl mixes, but simply iterates over an array.
This is used to gather all of the pages for a training set in one go (using a crawl mix iterator), then repeatedly iterate over them in memory, as though they were coming from the original crawl mix iterator.
nextPages(integer $n = -1) : array
Returns up to the requested number of next pages, potentially an empty array if there are no pages left. This method updates the `end_of_iterator' flag according to whether the last page has been returned.
integer | $n | maximum number of pages to return, or -1 to return all remaining pages |
next $n pages, or less if there are fewer than $n pages remaining