2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
|
|
|
|
|
<refentry id="api.register.compiler.function">
|
|
|
|
|
|
<refnamediv>
|
|
|
|
|
|
<refname>register_compiler_function</refname>
|
|
|
|
|
|
<refpurpose></refpurpose>
|
|
|
|
|
|
</refnamediv>
|
|
|
|
|
|
<refsect1>
|
|
|
|
|
|
<title />
|
|
|
|
|
|
<methodsynopsis>
|
|
|
|
|
|
<type>bool</type><methodname>register_compiler_function</methodname>
|
|
|
|
|
|
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
|
|
|
|
|
<methodparam><type>mixed</type><parameter>impl</parameter></methodparam>
|
|
|
|
|
|
<methodparam><type>bool</type><parameter>cacheable</parameter></methodparam>
|
|
|
|
|
|
</methodsynopsis>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Utilis<69>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.
|
|
|
|
|
|
</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.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Le param<61>tre <parameter>cacheable</parameter> peut <20>tre omis dans la
|
|
|
|
|
|
plupart des cas. Voir <link
|
|
|
|
|
|
linkend="caching.cacheable">Contr<74>ler la mise en cache des sorties des Plugins</link>
|
|
|
|
|
|
pour plus d'informations concernant cette utilisation.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</refsect1>
|
|
|
|
|
|
</refentry>
|
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
|
2004-05-23 15:50:53 +00:00
|
|
|
|
-->
|