mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 06:11:37 +01:00 
			
		
		
		
	sync with EN
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
<?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 -->
 | 
			
		||||
 | 
			
		||||
<sect1 id="plugins.functions">
 | 
			
		||||
 <title>Les fonctions de templates</title>
 | 
			
		||||
 <funcsynopsis>
 | 
			
		||||
@@ -11,25 +12,23 @@
 | 
			
		||||
  </funcprototype>
 | 
			
		||||
 </funcsynopsis>
 | 
			
		||||
 <para>
 | 
			
		||||
  Tous les attributs pass<73>s aux fonctions de template <20> partir du template
 | 
			
		||||
  Tous les <link linkend="language.syntax.attributes">attributs</link>
 | 
			
		||||
  pass<73>s aux fonctions de template <20> partir du template
 | 
			
		||||
  sont contenus dans le tableau associatif <parameter>$params</parameter>.
 | 
			
		||||
 </para>
 | 
			
		||||
 <para>
 | 
			
		||||
  Le retour de la fonction sera substitu<74>e <20> la balise de fonction
 | 
			
		||||
  du template (fonction <function>fetch</function> par exemple). Sinon,
 | 
			
		||||
  la fonction peut simplement accomplir une autre t<>che sans sortie
 | 
			
		||||
  (la fonction <function>assign</function> par exemple).
 | 
			
		||||
  du template (fonction
 | 
			
		||||
  <link linkend="language.function.fetch"><varname>{fetch}</varname></link>
 | 
			
		||||
  par exemple). Sinon, la fonction peut simplement accomplir une autre t<>che sans sortie
 | 
			
		||||
  (la fonction <link linkend="language.function.assign">
 | 
			
		||||
   <varname>{assign}</varname></link> par exemple).
 | 
			
		||||
 </para>
 | 
			
		||||
 <para>
 | 
			
		||||
  Si la fonction a besoin d'assigner des variables aux templates ou d'utiliser
 | 
			
		||||
  d'autres fonctionnalit<69>s fournies par Smarty, elle peut recevoir un
 | 
			
		||||
  objet <parameter>$smarty</parameter> pour cel<65>.
 | 
			
		||||
 </para>
 | 
			
		||||
 <para>
 | 
			
		||||
  R<>f<EFBFBD>rez-vous aussi <20> :
 | 
			
		||||
  <link linkend="api.register.function">register_function()</link>,
 | 
			
		||||
  <link linkend="api.unregister.function">unregister_function()</link>.
 | 
			
		||||
 </para>
 | 
			
		||||
 <para>
 | 
			
		||||
  <example>
 | 
			
		||||
   <title>Fonction de plugin avec sortie</title>
 | 
			
		||||
@@ -105,6 +104,11 @@ function smarty_function_assign($params, &$smarty)
 | 
			
		||||
   </programlisting>
 | 
			
		||||
  </example>
 | 
			
		||||
 </para>
 | 
			
		||||
 <para>
 | 
			
		||||
  Voir aussi :
 | 
			
		||||
  <link linkend="api.register.function"><varname>register_function()</varname></link> et
 | 
			
		||||
  <link linkend="api.unregister.function"><varname>unregister_function()</varname></link>.
 | 
			
		||||
 </para>
 | 
			
		||||
</sect1>
 | 
			
		||||
 <!-- Keep this comment at the end of the file
 | 
			
		||||
 Local variables:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user