本文整理汇总了PHP中smarty_core_rm_auto函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_core_rm_auto函数的具体用法?PHP smarty_core_rm_auto怎么用?PHP smarty_core_rm_auto使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_core_rm_auto函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clearCache
/**
* 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);
}
示例2: 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.
*
* @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);
}
示例3: 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.
*
* @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);
}