예제 #1
0
 /**
  * Delete a compiled template file.
  *
  * This clears the compiled version of the specified template resource, or
  * all compiled template files if one is not specified. If you pass a
  * $compile_id only the compiled template for this specific $compile_id is
  * cleared. If you pass an $exp_time, then only compiled templates older
  * than $exp_time seconds are cleared, by default all compiled templates
  * are cleared regardless of their age. This function is for advanced use
  * only, not normally needed.
  *
  * @param  string|null  $resource_name template name
  * @param  string|null  $compile_id    compile id
  * @param  integer|null $exp_time      expiration time
  * @return integer number of template files deleted
  */
 public function clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null)
 {
     return \Box\Brainy\Compiler\BatchUtil::clearCompiledTemplate($resource_name, $compile_id, $exp_time, $this);
 }
예제 #2
0
파일: Brainy.php 프로젝트: jeantimex/brainy
 /**
  * Compile all template files
  *
  * @param  string $extension     Optional file extension
  * @param  bool   $force_compile Optional boolean that compiles all files instead of modified files
  * @param  int    $time_limit    Optional integer to specify a runtime limit in seconds for the compilation process
  * @param  int    $max_errors    Optional integer to set an error limit. If more errors occur, the function will abort
  * @return integer number of template files recompiled
  */
 public function compileAllTemplates($extension = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null)
 {
     return \Box\Brainy\Compiler\BatchUtil::compileAllTemplates($extension, $force_compile, $time_limit, $max_errors, $this);
 }