You are here

function Smarty::clear_compiled_tpl in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/Smarty.class.php \Smarty::clear_compiled_tpl()

clears compiled version of specified template resource, or all compiled template files if one is not specified. This function is for advanced use only, not normally needed.

Parameters

string $tpl_file:

string $compile_id:

string $exp_time:

Return value

boolean results of {@link smarty_core_rm_auto()}

File

includes/moodle/lib/smarty/Smarty.class.php, line 1020

Class

Smarty
@package Smarty

Code

function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) {
  if (!isset($compile_id)) {
    $compile_id = $this->compile_id;
  }
  $_params = array(
    'auto_base' => $this->compile_dir,
    'auto_source' => $tpl_file,
    'auto_id' => $compile_id,
    'exp_time' => $exp_time,
    'extensions' => array(
      '.inc',
      '.php',
    ),
  );
  require_once SMARTY_CORE_DIR . 'core.rm_auto.php';
  return smarty_core_rm_auto($_params, $this);
}