Rename to clear_compiled_tpl().

This commit is contained in:
andrey
2001-09-26 20:40:56 +00:00
parent f77824eef5
commit 9a70b58415
4 changed files with 10 additions and 8 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fixed the name of clear_compile_tpl() API function to clear_compiled_tpl.
(Andrei)
- added fix for removing comments so that the line numbers are reported
correctly in case of errors. (patch from Anders Janson)
- made html_options output xhtml compatible code. (Monte, Arnaud Limbourg)

View File

@@ -435,7 +435,7 @@ class Smarty
or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed.
\*======================================================================*/
function clear_compile_tpl($tpl_file = null, $compile_id = null)
function clear_compiled_tpl($tpl_file = null, $compile_id = null)
{
return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id);
}

View File

@@ -384,7 +384,7 @@ require_once(SMARTY_DIR."Smarty.class.php");
will *not* see the change since the template will not get
recompiled. See <link
linkend="setting.force.compile">$force_compile</link> or <link
linkend="api.clear.compile.dir">clear_compile_dir</link>.
linkend="api.clear.compile.dir">clear_compiled_tpl</link>.
</para>
</sect2>
<sect2 id="setting.force.compile">
@@ -798,8 +798,8 @@ $smarty->clear_all_cache();
</programlisting>
</example>
</sect2>
<sect2 id="api.clear.compile.dir">
<title>clear_compile_dir</title>
<sect2 id="api.clear.compiled.tpl">
<title>clear_compiled_tpl</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>clear_all_cache</function></funcdef>
@@ -812,14 +812,14 @@ $smarty->clear_all_cache();
This function is for advanced use only, not normally needed.
</para>
<example>
<title>clear_compile_dir</title>
<title>clear_compiled_tpl</title>
<programlisting>
// clear a specific template resource
$smarty->clear_compile_dir("index.tpl");
$smarty->clear_compiled_tpl("index.tpl");
// clear entire compile directory
$smarty->clear_compile_dir();
$smarty->clear_compiled_tpl();
</programlisting>

View File

@@ -435,7 +435,7 @@ class Smarty
or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed.
\*======================================================================*/
function clear_compile_tpl($tpl_file = null, $compile_id = null)
function clear_compiled_tpl($tpl_file = null, $compile_id = null)
{
return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id);
}