Files
smarty/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml
2007-09-18 17:45:46 +00:00

70 lines
2.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<refentry id="api.clear.compiled.tpl">
<refnamediv>
<refname>clear_compiled_tpl()</refname>
<refpurpose>membersihkan versi terkompilasi dari sumber daya template yang ditetapkan</refpurpose>
</refnamediv>
<refsect1>
<title>Deskripsi</title>
<methodsynopsis>
<type>void</type><methodname>clear_compiled_tpl</methodname>
<methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter>
</methodparam>
<methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam>
</methodsynopsis>
<para>
Ini membersihkan versi terkompilasi dari sumber daya template yang ditetapkan,
atau semua file template yang dikompilasi bila ini tidak ditetapkan.
Jika anda mengirimkan
<link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>
hanya template terkompilasi untuk
<link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>
spesifik ini yang dibersihkan. Jika anda mengirimkan exp_time, maka hanya
template terkompilasi yang lebih lama dari <parameter>exp_time</parameter> detik
yang dibersihkan, standarnya template terkompilasi dibersihkan dengan
mengabaikan usianya.
Fungsi ini hanya untuk penggunaan tingkat lanjut, tidak untuk kebutuhan normal.
</para>
<example>
<title>clear_compiled_tpl()</title>
<programlisting role="php">
<![CDATA[
<?php
// bersihkan sumber daya template tertentu
$smarty->clear_compiled_tpl('index.tpl');
// bersihkan seluruh direktori kompilasi
$smarty->clear_compiled_tpl();
?>
]]>
</programlisting>
</example>
<para>Lihat juga
<link linkend="api.clear.cache"><varname>clear_cache()</varname></link>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->