Esempio n. 1
0
 /**
  * returns the full compiled file name and assigns a default value to it if
  * required
  *
  * @param Dwoo_Core $dwoo the dwoo instance that requests the file name
  * @return string the full path to the compiled file
  */
 protected function getCompiledFilename(Dwoo_Core $dwoo)
 {
     // no compile id was provided, set default
     if ($this->compileId === null) {
         $this->compileId = $this->name;
     }
     return $dwoo->getCompileDir() . $this->compileId . '.d' . Dwoo_Core::RELEASE_TAG . '.php';
 }
Esempio n. 2
0
 /**
  * returns the full compiled file name and assigns a default value to it if
  * required
  *
  * @param Dwoo_Core $dwoo the dwoo instance that requests the file name
  * @return string the full path to the compiled file
  */
 protected function getCompiledFilename(Dwoo_Core $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_Core::RELEASE_TAG . '.php';
 }