/** * XoopsTpl::clearCache() * * @param mixed $module_dirname * @param mixed $theme_set * @param mixed $template_set * @return bool */ function clearCache($module_dirname = null, $theme_set = null, $template_set = null) { $compile_id = $this->compile_id; $this->setCompileId($module_dirname, $template_set, $theme_set); $_params = array('auto_base' => $this->cache_dir, 'auto_source' => null, 'auto_id' => $this->compile_id, 'exp_time' => null); $this->_compile_id = $this->compile_id = $compile_id; require_once SMARTY_CORE_DIR . 'core.rm_auto.php'; return smarty_core_rm_auto($_params, $this); }
/** * 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. * * @param string $tpl_file * @param string $compile_id * @param string $exp_time * @return boolean results of {@link smarty_core_rm_auto()} */ 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); }
/** * 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. * * @param string $tpl_file * @param string $compile_id * @param string $exp_time * @return boolean results of {@link smarty_core_rm_auto()} */ 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')); echo SMARTY_CORE_DIR; MyOOS_CoreApi::requireOnce('lib/smarty/libs/internals/core.rm_auto.php'); return smarty_core_rm_auto($_params, $this); }