コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
ファイル: Generator.php プロジェクト: michaldudek/genry-blog
 /**
  * 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');
     }
 }