Exemplo n.º 1
0
Arquivo: Jig.php Projeto: PeeHaa/Jig
 /**
  * Delete the compiled version of a template.
  * @param $templateName
  * @return bool
  */
 public function deleteCompiledFile($templateName)
 {
     $className = $this->jigConverter->getClassNameFromFilename($templateName);
     $compileFilename = $this->jigConfig->getCompiledFilenameFromClassname($className);
     $deleted = @unlink($compileFilename);
     return $deleted;
 }
Exemplo n.º 2
0
Arquivo: Jig.php Projeto: PeeHaa/Jig
 /**
  * @param $templateName
  * @return string
  */
 public static function getCompiledFilenameInternal($templateName, JigConverter $jigConverter, JigConfig $jigConfig)
 {
     $className = $jigConverter->getClassNameFromFilename($templateName);
     $compiledFilename = $jigConfig->getCompiledFilenameFromClassname($className);
     return $compiledFilename;
 }