本文整理匯總了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);
}