mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-11 17:43:50 +01:00
sync with EN
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.compiler.function">
|
||||
<refnamediv>
|
||||
<refname>register_compiler_function</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_compiler_function()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement un plugin de fonction de compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>register_compiler_function</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
@@ -15,29 +16,45 @@
|
||||
<methodparam><type>bool</type><parameter>cacheable</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>clarer dynamiquement un plugin de fonction
|
||||
de compilation. Il faut passer en param<61>tres le nom de la fonction
|
||||
de compilation, suivi par la fonction PHP qui
|
||||
l'impl<70>mente.
|
||||
Il faut passer en param<61>tres le nom de la <link linkend="plugins.compiler.functions">fonction
|
||||
de compilation</link>, suivi par la fonction PHP qui l'impl<70>mente.
|
||||
</para>
|
||||
<para>
|
||||
La fonction PHP <parameter>impl</parameter> peut <20>tre soit (a) une
|
||||
cha<68>ne de caract<63>res contenant le nom de la fonction, soit (b) un tableau
|
||||
de la forme <literal>array(&$object, $method)</literal> o<>
|
||||
<literal>&$object</literal> est une r<>f<EFBFBD>rence <20> un objet et
|
||||
<literal>$method</literal> est le nom de la m<>thode, soit (c) un
|
||||
tableau de la forme <literal>array(&$class, $method)</literal> o<>
|
||||
<literal>$class</literal> est le nom de la classe et
|
||||
<literal>$method</literal> est une m<>thode de cette classe.
|
||||
La fonction PHP <parameter>impl</parameter> peut <20>tre soit :
|
||||
</para>
|
||||
<orderedlist numeration="loweralpha">
|
||||
<listitem>
|
||||
<para>
|
||||
une cha<68>ne de caract<63>res contenant le nom de la fonction
|
||||
</para>
|
||||
</listitem><listitem>
|
||||
<para>
|
||||
un tableau de la forme <literal>array(&$object, $method)</literal> o<>
|
||||
<literal>&$object</literal> est une r<>f<EFBFBD>rence <20> un objet et
|
||||
<literal>$method</literal> est le nom de la m<>thode
|
||||
</para>
|
||||
</listitem><listitem>
|
||||
<para>
|
||||
soit (c) un tableau de la forme <literal>array(&$class, $method)</literal> o<>
|
||||
<literal>$class</literal> est le nom de la classe et
|
||||
<literal>$method</literal> est une m<>thode de cette classe.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
<para>
|
||||
Le param<61>tre <parameter>cacheable</parameter> peut <20>tre omis dans la
|
||||
plupart des cas. Voir <link
|
||||
linkend="caching.cacheable">Contr<EFBFBD>ler la mise en cache des sorties des Plugins</link>
|
||||
pour plus d'informations concernant cette utilisation.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.compiler.function">unregister_compiler_function()</link> et
|
||||
les <link linkend="plugins.compiler.functions">plugins de fonction de compilation</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -57,4 +74,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
||||
Reference in New Issue
Block a user