/** * @param ImportSource $source * @param CachedThreadData $threadData * @param string $pageName */ public function __construct(ImportSource $source, CachedThreadData $threadData, $pageName) { $this->importSource = $source; $this->threadData = $threadData; $this->pageName = $pageName; $this->topicIdIterator = new ArrayIterator($threadData->getTopics()); $this->rewind(); }
/** * @param string $pageName * @param integer $startId * @return array */ public function getFromPage($pageName, $startId = 0) { return $this->threadData->getFromPage($pageName, $startId); }