저자: Victor Farazdagi
상속: extends Base
예제 #1
0
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     if (!$this->outputFile) {
         $path = new OutputFile($this);
         $this->setOutputFile($path->get());
     }
     return $this->outputFile;
 }
예제 #2
0
 public function testEntriesPaths()
 {
     $view = new View\Twig();
     $view->setInputFile('/var/www/phrozn-test/entries/some-entry.twig')->setOutputDir('/var/www/output');
     $path = new OutputPath\Entry($view);
     $this->assertSame('/var/www/output/some-entry.html', $path->get());
     $view->setInputFile('/var/www/phrozn-test/entries/sub/folder/some-entry.twig')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/sub/folder/some-entry.html', $path->get());
     $view->setInputFile('/var/www/phrozn-test/sub/folder/some-entry.twig')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/some-entry.html', $path->get());
 }
예제 #3
0
파일: Textile.php 프로젝트: ntulip/phrozn
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     $path = new OutputFile($this);
     return $path->get();
 }