2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2005-12-04 20:38:28 +00:00
|
|
|
|
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
|
|
|
|
|
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<refentry id="api.clear.compiled.tpl">
|
|
|
|
|
|
<refnamediv>
|
2005-12-04 20:38:28 +00:00
|
|
|
|
<refname>clear_compiled_tpl()</refname>
|
|
|
|
|
|
<refpurpose>Efface la version compil<69>e d'un template sp<73>cifi<66></refpurpose>
|
2004-12-26 17:02:12 +00:00
|
|
|
|
</refnamediv>
|
|
|
|
|
|
<refsect1>
|
2005-12-04 20:38:28 +00:00
|
|
|
|
<title>Description</title>
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<methodsynopsis>
|
|
|
|
|
|
<type>void</type><methodname>clear_compiled_tpl</methodname>
|
|
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam>
|
2005-12-04 20:38:28 +00:00
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter>
|
|
|
|
|
|
</methodparam>
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam>
|
|
|
|
|
|
</methodsynopsis>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Utilis<69>e pour effacer la version compil<69>e du template sp<73>cifi<66> ou
|
|
|
|
|
|
de tous les templates si aucun n'est sp<73>cifi<66>.
|
2005-12-04 20:38:28 +00:00
|
|
|
|
Si vous passez uniquement un <link linkend="variable.compile.id">$compile_id</link>,
|
|
|
|
|
|
le template compil<69> correspondant <20> ce <link linkend="variable.compile.id">$compile_id</link>
|
|
|
|
|
|
sera effac<61>. Si vous passez un exp_time, les templates compil<69>s plus vieux que exp_time secondes
|
2004-12-26 17:02:12 +00:00
|
|
|
|
seront effac<61>s, par d<>faut, tous les templates compil<69>s seront
|
|
|
|
|
|
effac<61>s au v<> de leurs <20>ges. Cette fonction est destin<69>e <20> un usage
|
|
|
|
|
|
avanc<6E> et n'est habituellement pas utilis<69>e.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<example>
|
2005-12-04 20:38:28 +00:00
|
|
|
|
<title>Exemple avec clear_compiled_tpl()</title>
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<programlisting role="php">
|
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
<?php
|
2004-04-13 11:47:32 +00:00
|
|
|
|
// efface la version compil<69>e du template sp<73>cifi<66>
|
|
|
|
|
|
$smarty->clear_compiled_tpl("index.tpl");
|
|
|
|
|
|
|
|
|
|
|
|
// efface tout le contenu du r<>pertoire des templates compil<69>s
|
2004-12-26 17:02:12 +00:00
|
|
|
|
$smarty->clear_compiled_tpl();
|
|
|
|
|
|
?>
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
|
|
|
|
|
</example>
|
|
|
|
|
|
</refsect1>
|
|
|
|
|
|
</refentry>
|
2005-12-04 20:38:28 +00:00
|
|
|
|
|
2004-04-13 11:47:32 +00:00
|
|
|
|
<!-- 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
|
2005-12-04 20:38:28 +00:00
|
|
|
|
-->
|