/**
  * returns the full compiled file name and assigns a default value to it if
  * required
  *
  * @param Dwoo $dwoo the dwoo instance that requests the file name
  * @return string the full path to the compiled file
  */
 protected function getCompiledFilename(Dwoo $dwoo)
 {
     // no compile id was provided, set default
     if ($this->compileId === null) {
         $this->compileId = str_replace('../', '__', strtr($this->getResourceIdentifier(), '\\:', '/-'));
     }
     return $dwoo->getCompileDir() . $this->compileId . '.d' . Dwoo::RELEASE_TAG . '.php';
 }
Beispiel #2
0
 /**
  * returns the full compiled file name and assigns a default value to it if
  * required
  *
  * @param Dwoo $dwoo the dwoo instance that requests the file name
  * @return string the full path to the compiled file
  */
 protected function getCompiledFilename(Dwoo $dwoo)
 {
     // no compile id was provided, set default
     if ($this->compileId === null) {
         $this->compileId = $this->name;
     }
     return $dwoo->getCompileDir() . $this->compileId . '.d' . Dwoo::RELEASE_TAG . '.php';
 }