mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
sync with EN
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.load.filter">
|
||||
<refnamediv>
|
||||
<refname>load_filter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>load_filter()</refname>
|
||||
<refpurpose>Charge un plugin de filtrage</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>load_filter</methodname>
|
||||
<methodparam><type>string</type><parameter>type</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Cette fonction peut <20>tre utilis<69>e pour charger un plugin
|
||||
de filtrage. Le premier argument sp<73>cifie le type du filtre
|
||||
Le premier argument sp<73>cifie le type du filtre
|
||||
et peut prendre l'une des valeurs suivantes : 'pre', 'post'
|
||||
ou 'output'. Le second argument sp<73>cifie le nom du plugin
|
||||
de filtrage, par exemple 'trim'.
|
||||
@@ -25,15 +25,31 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$smarty->load_filter('pre', 'trim'); // charge le filtre 'trim' de type 'pre'
|
||||
$smarty->load_filter('pre', 'datefooter'); // charge un autre filtre de type 'pre' appel<65> 'datefooter'
|
||||
$smarty->load_filter('output', 'compress'); // charge le filtre 'compress' de type 'output'
|
||||
|
||||
// charge un pr<EFBFBD>-filtre nomm<EFBFBD> 'trim'
|
||||
$smarty->load_filter('pre', 'trim');
|
||||
|
||||
// charge un autre pr<70>-filtre nomm<6D> 'datefooter'
|
||||
$smarty->load_filter('pre', 'datefooter');
|
||||
|
||||
// charge un filtre de sortie nomm<6D> 'compress'
|
||||
$smarty->load_filter('output', 'compress');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.prefilter">register_prefilter()</link>,
|
||||
<link linkend="api.register.postfilter">register_postfilter()</link>,
|
||||
<link linkend="api.register.outputfilter">register_outputfilter()</link>,
|
||||
<link linkend="variable.autoload.filters">$autoload_filters</link> et
|
||||
les <link linkend="advanced.features">fonctionnalit<EFBFBD>s avanc<6E>es</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -53,4 +69,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.block">
|
||||
<refnamediv>
|
||||
<refname>register_block</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_block()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement des plugins de fonction de blocs</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_block</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
@@ -16,8 +17,8 @@
|
||||
<methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement des plugins de fonction
|
||||
de blocs. Il faut passer en param<61>tre le nom de la fonction
|
||||
Utilis<69>e pour d<>clarer dynamiquement des <link linkend="plugins.block.functions">plugins de fonction
|
||||
de blocs</link>. Il faut passer en param<61>tre le nom de la fonction
|
||||
de blocs, suivi du nom de la fonction PHP qui l'impl<70>mente.
|
||||
</para>
|
||||
<para>
|
||||
@@ -38,13 +39,13 @@
|
||||
pour plus d'informations concernant cette utilisation.
|
||||
</para>
|
||||
<example>
|
||||
<title>Exemple avec register_block</title>
|
||||
<title>Exemple avec register_block()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$smarty->register_block("translate", "do_translation");
|
||||
$smarty->register_block('translate', 'do_translation');
|
||||
|
||||
function do_translation ($params, $content, &$smarty) {
|
||||
function do_translation ($params, $content, &$smarty, &$repeat) {
|
||||
if ($content) {
|
||||
$lang = $params['lang'];
|
||||
// fait de la traduction avec la variable $content
|
||||
@@ -66,8 +67,14 @@ Hello, world!
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.block">unregister_block()</link> et
|
||||
les <link linkend="plugins.block.functions">plugins de fonction de blocs</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -87,4 +94,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -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
|
||||
-->
|
||||
-->
|
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.function">
|
||||
<refnamediv>
|
||||
<refname>register_function</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_function()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement des plugins de fonction de templates</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_function</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
@@ -16,33 +17,44 @@
|
||||
<methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>clarer dynamiquement des plugins de fonction
|
||||
de templates. Il faut passer en param<61>tres le nom de la fonction
|
||||
de templates, suivi par le nom de la fonction PHP qui l'impl<70>mente.
|
||||
Il faut passer en param<61>tres le nom de la <link linkend="plugins.functions">fonction
|
||||
de templates</link>, suivi par le nom de 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>
|
||||
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>
|
||||
Les param<61>tres <parameter>cacheable</parameter> et
|
||||
Les param<61>tres <parameter>cacheable</parameter> et
|
||||
<parameter>cache_attrs</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>
|
||||
<example>
|
||||
<title>Exemple avec register_function</title>
|
||||
<title>Exemple avec register_function()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$smarty->register_function("date_now", "print_current_date");
|
||||
$smarty->register_function('date_now', 'print_current_date');
|
||||
|
||||
function print_current_date ($params) {
|
||||
extract($params);
|
||||
@@ -51,15 +63,30 @@ function print_current_date ($params) {
|
||||
echo strftime($format,time());
|
||||
}
|
||||
|
||||
// vous pouvez maintenant utiliser ceci dans Smarty pour afficher
|
||||
// la date actuelle : {date_now} ou {date_now format="%Y/%m/%d"}
|
||||
// pour la formater
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
O<> le template est :
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{date_now}
|
||||
|
||||
{* ou, format<61> diff<66>remment *}
|
||||
{date_now format="%Y/%m/%d"}
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.function">unregister_function()</link> et
|
||||
les <link linkend="plugins.functions">plugins de fonction</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -79,4 +106,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,43 +1,65 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.modifier">
|
||||
<refnamediv>
|
||||
<refname>register_modifier</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_modifier()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement un plugin de modificateur</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_modifier</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>impl</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement un plugin de modificateur.
|
||||
Il faut passer en param<61>tre le nom du modificateur de variables,
|
||||
suivi de 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>
|
||||
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>
|
||||
<example>
|
||||
<title>register_modifier</title>
|
||||
<title>register_modifier()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// associons la fonction PHP stripslashes a un modificateur Smarty.
|
||||
|
||||
// associons la fonction PHP stripslashes a un modificateur Smarty.
|
||||
$smarty->register_modifier("sslash","stripslashes");
|
||||
|
||||
// vous pouvez maintenant utiliser {$var|sslash} pour supprimer les slash des variables
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
O<> le template est :
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
<?php
|
||||
{* utiliser 'sslash' pour utiliser la fonction PHP strislashes() *}
|
||||
{$var|sslash}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -48,7 +70,7 @@ $smarty->register_modifier("sslash","stripslashes");
|
||||
<link linkend="api.register.function">register_function()</link>,
|
||||
<link linkend="language.modifiers">les modifieurs</link>,
|
||||
<link linkend="plugins">l'extension de Smarty avec des plugins</link> et
|
||||
<link linkend="plugins.modifiers">les plugins modifieurs</link>.
|
||||
la <link linkend="plugins.modifiers">cr<EFBFBD>ation de plugins modifieurs</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@@ -1,29 +1,31 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.object">
|
||||
<refnamediv>
|
||||
<refname>register_object</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_object()</refname>
|
||||
<refpurpose>Enregistre un objet <20> utiliser dans un template</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_object</methodname>
|
||||
<methodparam><type>string</type><parameter>object_name</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>object</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>allowed_methods_properties</parameter>
|
||||
</methodparam>
|
||||
<methodparam><type>boolean</type><parameter>format</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>block_methods</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour enregistrer un objet <20> utiliser dans un template.
|
||||
Reportez-vous <20> la section
|
||||
<link linkend="advanced.features.objects">objet</link> de
|
||||
ce manuel pour des exemples.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
Voir aussi
|
||||
<link linkend="api.get.registered.object">get_registered_object()</link> et
|
||||
<link linkend="api.unregister.object">unregister_object()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@@ -1,35 +1,59 @@
|
||||
<?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.outputfilter">
|
||||
<refnamediv>
|
||||
<refname>register_outputfilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_outputfilter()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement des filtres de sortie</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_outputfilter</methodname>
|
||||
<methodparam><type>mixed</type><parameter>function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement des filtres de sortie, pour
|
||||
agir sur la sortie d'un template avant qu'il ne soit affich<63>.
|
||||
Utilis<69>e pour d<>clarer dynamiquement des
|
||||
<link linkend="plugins.outputfilters">filtres de sortie</link>, pour
|
||||
agir sur la sortie d'un template avant qu'il ne soit <link linkend="api.display">affich<EFBFBD></link>.
|
||||
Reportez-vous <20> la section <link linkend="advanced.features.outputfilters">
|
||||
filtres de sortie</link> pour plus d'information sur le sujet.
|
||||
</para>
|
||||
<para>
|
||||
La fonction PHP <parameter>function</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>function</parameter> peut <20>tre soit :
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<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>
|
||||
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>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.outputfilter">unregister_outputfilter()</link>,
|
||||
<link linkend="api.register.prefilter">register_prefilter()</link>,
|
||||
<link linkend="api.register.postfilter">register_postfilter()</link>,
|
||||
<link linkend="api.load.filter">load_filter()</link>,
|
||||
<link linkend="variable.autoload.filters">$autoload_filters</link> et
|
||||
les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -49,4 +73,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,19 +1,21 @@
|
||||
<?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.postfilter">
|
||||
<refnamediv>
|
||||
<refname>register_postfilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_postfilter()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement des filtres de post-compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_postfilter</methodname>
|
||||
<methodparam><type>mixed</type><parameter>function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement des filtres de post-compilation pour y faire
|
||||
Utilis<69>e pour d<>clarer dynamiquement des
|
||||
<link linkend="advanced.features.postfilters">filtres de post-compilation</link> pour y faire
|
||||
passer des templates une fois qu'ils ont <20>t<EFBFBD> compil<69>s. Reportez-vous
|
||||
<20> la section
|
||||
<link linkend="advanced.features.postfilters">filtres de post-compilation de templates</link>
|
||||
@@ -21,17 +23,39 @@
|
||||
de post-compilation.
|
||||
</para>
|
||||
<para>
|
||||
La fonction PHP <parameter>function</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>function</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>
|
||||
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>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.postfilter">unregister_postfilter()</link>,
|
||||
<link linkend="api.register.prefilter">register_prefilter()</link>,
|
||||
<link linkend="api.register.outputfilter">register_ouputfilter()</link>,
|
||||
<link linkend="api.load.filter">load_filter()</link>,
|
||||
<link linkend="variable.autoload.filters">$autoload_filters</link> et
|
||||
les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -51,4 +75,4 @@
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,19 +1,21 @@
|
||||
<?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.prefilter">
|
||||
<refnamediv>
|
||||
<refname>register_prefilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_prefilter()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement des filtres de pr<70>-compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_prefilter</methodname>
|
||||
<methodparam><type>mixed</type><parameter>function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement des filtres de pr<70>-compilation pour y faire
|
||||
Utilis<69>e pour d<>clarer dynamiquement des
|
||||
<link linkend="advanced.features.prefilters">filtres de pr<70>-compilation</link> pour y faire
|
||||
passer des templates avant qu'ils ne soient compil<69>s. Reportez-vous
|
||||
<20> la section
|
||||
<link linkend="advanced.features.postfilters">filtres de pr<70>-compilation de templates</link>
|
||||
@@ -21,17 +23,40 @@
|
||||
de pr<70>-compilation.
|
||||
</para>
|
||||
<para>
|
||||
La fonction PHP <parameter>function</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>function</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>
|
||||
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>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.prefilter">unregister_prefilter()</link>,
|
||||
<link linkend="api.register.postfilter">register_postfilter()</link>,
|
||||
<link linkend="api.register.outputfilter">register_ouputfilter()</link>,
|
||||
<link linkend="api.load.filter">load_filter()</link>,
|
||||
<link linkend="variable.autoload.filters">$autoload_filters</link> et
|
||||
les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -51,4 +76,4 @@
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,20 +1,21 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.register.resource">
|
||||
<refnamediv>
|
||||
<refname>register_resource</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>register_resource()</refname>
|
||||
<refpurpose>D<EFBFBD>clare dynamiquement une ressource plugin</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>register_resource</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>clarer dynamiquement une ressource plugin
|
||||
Utilis<69>e pour d<>clarer dynamiquement une <link linkend="template.resources">ressource plugin</link>
|
||||
dans Smarty. Il faut passer en param<61>tre le nom de la ressource
|
||||
et le tableau des fonctions PHP qui l'impl<70>mentent. Reportez-vous
|
||||
<20> la section <link linkend="template.resources">ressources templates</link>
|
||||
@@ -42,20 +43,29 @@
|
||||
"secure" et "trusted".
|
||||
</para>
|
||||
<example>
|
||||
<title>Exemple avec register_resource</title>
|
||||
<title>Exemple avec register_resource()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$smarty->register_resource("db", array("db_get_template",
|
||||
"db_get_timestamp",
|
||||
"db_get_secure",
|
||||
"db_get_trusted"));
|
||||
$smarty->register_resource('db', array(
|
||||
'db_get_template',
|
||||
'db_get_timestamp',
|
||||
'db_get_secure',
|
||||
'db_get_trusted')
|
||||
);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.resource">unregister_resource()</link> et
|
||||
les <link linkend="template.resources">ressources de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -75,4 +85,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,22 +1,67 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.template.exists">
|
||||
<refnamediv>
|
||||
<refname>template_exists</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>template_exists()</refname>
|
||||
<refpurpose>V<EFBFBD>rifie si un template sp<73>cifique existe</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>template_exists</methodname>
|
||||
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Cette fonction v<>rifie si le template sp<EFBFBD>cifi<EFBFBD> existe. Elle accepte
|
||||
soit un chemin vers le template, soit une ressource de type
|
||||
Elle accepte soit un chemin vers le template, soit une ressource de type
|
||||
cha<68>ne de caract<63>res sp<73>cifiant le nom du template.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>template_exists()</title>
|
||||
<para>
|
||||
Cet exemple utilise $_GET['page'] pour inclure le contenu d'un template.
|
||||
Si le template n'existe pas, une page d'erreur sera affich<63> <20> la place.
|
||||
</para>
|
||||
<para>
|
||||
Le fichier <filename>page_container.tpl</filename>
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<html>
|
||||
<head><title>{$title}</title></head>
|
||||
<body>
|
||||
{include file='page_top.tpl'}
|
||||
|
||||
{* inclure le contenu du milieu de la page *}
|
||||
{include file=$page_mid}
|
||||
|
||||
{include file='page_footer.tpl'}
|
||||
</body>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
et le script PHP
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// D<>finit le nom du fichier eg index.inc.tpl
|
||||
$mid_template = $_GET['page'].'.inc.tpl';
|
||||
|
||||
if( !$smarty->template_exists($mid_template) ){
|
||||
$mid_template = 'page_not_found.inc.tpl';
|
||||
}
|
||||
$smarty->assign('page_mid', $mid_template);
|
||||
|
||||
$smarty->display('page_container.tpl');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.display">display()</link>,
|
||||
@@ -26,6 +71,7 @@
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -45,4 +91,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.trigger.error">
|
||||
<refnamediv>
|
||||
<refname>trigger_error</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>trigger_error()</refname>
|
||||
<refpurpose>Affiche un message d'erreur</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>trigger_error</methodname>
|
||||
<methodparam><type>string</type><parameter>error_msg</parameter></methodparam>
|
||||
|
@@ -1,23 +1,30 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.block">
|
||||
<refnamediv>
|
||||
<refname>unregister_block</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_block()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un plugin de fonction de blocs</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_block</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un plugin de fonction
|
||||
de blocs. Passez en param<61>tre le nom <parameter>name</parameter> du bloc.
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un <link linkend="plugins.block.functions">plugin de fonction
|
||||
de blocs</link>. Passez en param<61>tre le nom <parameter>name</parameter> du bloc.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.block">register_block()</link> et
|
||||
les <link linkend="plugins.block.functions">plugins de fonctions de blocs</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -37,4 +44,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,24 +1,30 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.compiler.function">
|
||||
<refnamediv>
|
||||
<refname>unregister_compiler_function</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_compiler_function()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement une fonction de compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_compiler_function</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>sallouer dynamiquement un fonction de compilation.
|
||||
Passez en param<61>tre le nom <parameter>name</parameter> de
|
||||
Passez en param<61>tre le nom <parameter>name</parameter> de
|
||||
la fonction de compilation.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.compiler.function">register_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
|
||||
@@ -38,4 +44,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,36 +1,42 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.function">
|
||||
<refnamediv>
|
||||
<refname>unregister_function</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_function()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un plugin de fonction de templates</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_function</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>sallouer dynamiquement un plugin de fonction
|
||||
de templates. Passez en param<61>tres le nom de la fonction de templates.
|
||||
Passez en param<61>tres le nom de la fonction de templates.
|
||||
</para>
|
||||
<example>
|
||||
<title>Exemple avec unregister_function</title>
|
||||
<title>Exemple avec unregister_function()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// nous ne voulons pas que les designers de templates aient acc<63>s
|
||||
// au syst<73>me de fichiers.
|
||||
$smarty->unregister_function('fetch');
|
||||
|
||||
$smarty->unregister_function("fetch");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.function">register_function()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -50,4 +56,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,36 +1,44 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.modifier">
|
||||
<refnamediv>
|
||||
<refname>unregister_modifier</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_modifier()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un plugin modificateur de variable</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_modifier</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un plugin modificateur de variable.
|
||||
Passez en param<61>tre le nom du modificateur de templates.
|
||||
</para>
|
||||
<example>
|
||||
<title>Exemple avec unregister_modifier</title>
|
||||
<title>Exemple avec unregister_modifier()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// nous ne voulons pas que les designers de templates
|
||||
// suppriment les balises des <20>lements
|
||||
|
||||
$smarty->unregister_modifier("strip_tags");
|
||||
$smarty->unregister_modifier('strip_tags');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.modifier">register_modifier()</link> et
|
||||
les <link linkend="plugins.modifiers">plugins modificateur</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -50,4 +58,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,27 +1,26 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.object">
|
||||
<refnamediv>
|
||||
<refname>unregister_object</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_object()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un objet</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_object</methodname>
|
||||
<methodparam><type>string</type><parameter>object_name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer un objet.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.object">register_object</link> et
|
||||
<link linkend="advanced.features.objects">object section</link>.
|
||||
la <link linkend="advanced.features.objects">section sur les objets</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -41,4 +40,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.outputfilter">
|
||||
<refnamediv>
|
||||
<refname>unregister_outputfilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_outputfilter()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un filtre de sortie</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_outputfilter</methodname>
|
||||
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
|
||||
@@ -15,8 +16,14 @@
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un filtre de sortie.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.outputfilter">register_outputfilter()</link> et
|
||||
les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -36,4 +43,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,22 +1,26 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.postfilter">
|
||||
<refnamediv>
|
||||
<refname>unregister_postfilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_postfilter()</refname>
|
||||
<refpurpose>D<EFBFBD>sallouer dynamiquement un filtre de post-compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_postfilter</methodname>
|
||||
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>sallouer dynamiquement un filtre de post-compilation.
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.postfilter">register_postfilter()</link> et
|
||||
les <link linkend="plugins.prefilters.postfilters">filtres de post-compilation</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -36,4 +40,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,22 +1,26 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.prefilter">
|
||||
<refnamediv>
|
||||
<refname>unregister_prefilter</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_prefilter()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un filtre de pr<70>-compilation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_prefilter</methodname>
|
||||
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<EFBFBD>e pour d<>sallouer dynamiquement un filtre de pr<70>-compilation.
|
||||
Voir aussi
|
||||
<link linkend="api.register.prefilter">register_prefilter()</link> et
|
||||
les <link linkend="plugins.prefilters.postfilters">pr<EFBFBD>-filtres</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -36,4 +40,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
@@ -1,33 +1,41 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
|
||||
<refentry id="api.unregister.resource">
|
||||
<refnamediv>
|
||||
<refname>unregister_resource</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>unregister_resource()</refname>
|
||||
<refpurpose>D<EFBFBD>salloue dynamiquement un plugin ressource</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>unregister_resource</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un plugin ressource.
|
||||
Passez en param<61>tre le nom de la ressource.
|
||||
</para>
|
||||
<example>
|
||||
<title>Exemple avec unregister_resource</title>
|
||||
<title>Exemple avec unregister_resource()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$smarty->unregister_resource("db");
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.resource">register_resource()</link> et
|
||||
les <link linkend="template.resources">ressources de template</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
@@ -47,4 +55,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