Exemplo n.º 1
0
 /**
  * Queue all classes for processing.
  */
 protected function queueClasses()
 {
     if (!isset($this->templates['class'])) {
         return false;
     }
     foreach ($this->project->getClasses() as $class) {
         $parameters = array('class' => $class, 'properties' => $class->getProperties($this->verbose), 'methods' => $class->getMethods($this->verbose), 'constants' => $class->getConstants($this->verbose));
         $this->genry->addToQueue($this->templates['class'], $parameters, $this->outputDir . str_replace(NS, DS, $class) . '.html');
     }
 }
Exemplo n.º 2
0
 /**
  * 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');
     }
 }