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 - added fix for removing comments so that the line numbers are reported
correctly in case of errors. (patch from Anders Janson) correctly in case of errors. (patch from Anders Janson)
- made html_options output xhtml compatible code. (Monte, Arnaud Limbourg) - 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. or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed. 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); 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 will *not* see the change since the template will not get
recompiled. See <link recompiled. See <link
linkend="setting.force.compile">$force_compile</link> or <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> </para>
</sect2> </sect2>
<sect2 id="setting.force.compile"> <sect2 id="setting.force.compile">
@@ -798,8 +798,8 @@ $smarty->clear_all_cache();
</programlisting> </programlisting>
</example> </example>
</sect2> </sect2>
<sect2 id="api.clear.compile.dir"> <sect2 id="api.clear.compiled.tpl">
<title>clear_compile_dir</title> <title>clear_compiled_tpl</title>
<funcsynopsis> <funcsynopsis>
<funcprototype> <funcprototype>
<funcdef>void <function>clear_all_cache</function></funcdef> <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. This function is for advanced use only, not normally needed.
</para> </para>
<example> <example>
<title>clear_compile_dir</title> <title>clear_compiled_tpl</title>
<programlisting> <programlisting>
// clear a specific template resource // clear a specific template resource
$smarty->clear_compile_dir("index.tpl"); $smarty->clear_compiled_tpl("index.tpl");
// clear entire compile directory // clear entire compile directory
$smarty->clear_compile_dir(); $smarty->clear_compiled_tpl();
</programlisting> </programlisting>

View File

@@ -435,7 +435,7 @@ class Smarty
or all compiled template files if one is not specified. or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed. 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); return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id);
} }