/** * Returns a list of blog articles. * * @param integer $limit Limit. * @param integer $offset Start offset. * * @return array */ public function getArticles($limit = null, $offset = 0) { return $this->reader->getArticles($limit, $offset); }
/** * Queues articles to be generated. */ public function queueArticlesToGenerate() { foreach ($this->reader->getArticles() as $article) { $this->genry->addToQueue($this->template, array('article' => $article), $this->targetDir . $article->getSlug() . '.html'); } }