cvs: peardoc /fr/package/datetime/calendar intro-decorators.xml

From: Date: Wed, 31 Mar 2004 18:54:16 +0000
Subject: cvs: peardoc /fr/package/datetime/calendar intro-decorators.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3166@lists.php.net to get a copy of this message
romain Wed Mar 31 13:54:16 2004 EDT Modified files: /peardoc/fr/package/datetime/calendar intro-decorators.xml Log: First translation http://cvs.php.net/diff.php/peardoc/fr/package/datetime/calendar/intro-decorators.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/fr/package/datetime/calendar/intro-decorators.xml diff -u peardoc/fr/package/datetime/calendar/intro-decorators.xml:1.1 peardoc/fr/package/datetime/calendar/intro-decorators.xml:1.2 --- peardoc/fr/package/datetime/calendar/intro-decorators.xml:1.1 Wed Mar 24 09:55:22 2004 +++ peardoc/fr/package/datetime/calendar/intro-decorators.xml Wed Mar 31 13:54:16 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" ?> -<!-- $Id: intro-decorators.xml,v 1.1 2004/03/24 14:55:22 didou Exp $ --> +<!-- $Id: intro-decorators.xml,v 1.2 2004/03/31 18:54:16 romain Exp $ --> <!-- EN-Revision: 1.4 Maintainer: didou Status: partial --> <refentry id="package.datetime.calendar.intro-decorators"> <refnamediv> @@ -72,23 +72,21 @@ <refsect1> <title>La classe de base Calendar_Decorator</title> <para> - La classe de base <classname>Calendar_Decorator</classname> "mirrors" the combined API of all the - subclasses of <classname>Calendar</classname>. It accepts a Calendar object to it's constructor - then "takes over" the API allowing you to make calls through it rather than directly to the - original calendar object. The <classname>Calendar_Decorator</classname> simply routes calls - through to the calendar object it is decorating and returns values where appropriate. + La classe de base <classname>Calendar_Decorator</classname> permet d'acc&eacute;der &agrave; l'API combin&eacute;e de + toutes les sous classes de <classname>Calendar</classname>. Son constructeur doit recevoir un objet + Calendar. La classe <classname>Calendar_Decorator</classname> prend alors le dessus sur l'API de + cet objet vous permettant d'y acc&eacute;der directement au travers du nouvel objet cr&eacute;&eacute;. + <classname>Calendar_Decorator</classname> route tous les appels vers l'objet qu'il agr&eacute;mente + et renvoie les valeurs appropri&eacute;es. </para> </refsect1> <refsect1> - <title>Decorators and Date Selection</title> + <title>D&eacute;corateurs et S&eacute;lection de Date</title> <para> - One important use of decorators is to help "inject" data into the loop which renders the - calendar. This helps with fetching data from some sort of "event" table in a database. When - passing a selection array to any <function>build</function> method, the selected date objects - will replace the default built objects, allowing you to get them back as inside the - <function>fetch</function> loop, using the <function>isSelected</function> method. You'll find - an example of this in the PEAR::Calendar download. It should always be possible to fetch the - event data you need with a single database query... + Une des fonctionnalit&eacute;s int&eacute;ressante des d&eacute;corateurs permet d' "injecter" des donn&eacute;es dans + la boucle permettant de cr&eacute;er les calendriers. Cela peut par exemple vous permettre + d'interagir avec une base de donn&eacute;es d'&eacute;v&eacute;nements. Vous pourrez trouver un exemple + de cela dans les fichiers de PEAR::Calendar. </para> </refsect1> </refentry>

« previous php.pear.doc (#3166) next »