cvs: peardoc /fr/package/html/html-quickform/html-quickform createelement.xml defaultrenderer.xml display.xml elementexists.xml errormessage.xml
exportvalue.xml exportvalues.xml

From: Date: Mon, 01 Jan 2007 18:33:44 +0000
Subject: cvs: peardoc /fr/package/html/html-quickform/html-quickform createelement.xml defaultrenderer.xml display.xml elementexists.xml errormessage.xml
exportvalue.xml exportvalues.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9191@lists.php.net to get a copy of this message
yannick Mon Jan 1 18:33:44 2007 UTC Added files: /peardoc/fr/package/html/html-quickform/html-quickform createelement.xml defaultrenderer.xml display.xml elementexists.xml errormessage.xml exportvalues.xml exportvalue.xml Log: initial translation

http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/createelement.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/createelement.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/createelement.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.createelement"> <refnamediv> <refname>HTML_QuickForm::createElement()</refname> <refpurpose>Crée un nouvel élément de formulaire d'un type donné</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object &amp;<function>HTML_QuickForm::createElement</function></funcdef> <paramdef>string <parameter>$elementType</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.createelement.desc"> &title.desc; <para> Crée un nouvel élément de formulaire d'un type donné. Cette méthode accepte un nombre variable d'éléments, leurs significations et leurs nombres dépendent de <parameter>$elementType</parameter>. </para> <para> Les paramètres, à partir du second, seront passés au constructeur de l'élément, consultez la documentation pour l'<link linkend="package.html.html-quickform.intro-elements">élément approprié</link> pour trouver les paramètres à passer. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.createelement.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$elementType</parameter> </term> <listitem> <para> type de l'élément à créer (text, textarea, file...) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.createelement.return"> &title.returns; <para> <emphasis>Retourne</emphasis> un objet, descendant de <classname>HTML_QuickForm_element</classname> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.createelement.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>Code erreur</entry> <entry>Message d'erreur</entry> <entry>Raison</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry><constant>QUICKFORM_UNREGISTERED_ELEMENT</constant></entry> <entry>Element '<parameter>$element</parameter>' does not exist in HTML_QuickForm::_loadElement()</entry> <entry>Tentative de créer un élément de type inconnu</entry> <entry>Vérifiez le nom du type ou utilisez <link linkend="package.html.html-quickform.html-quickform.registerelementtype"><function>HTML_QuickForm::registerElementType</function></link></entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.createelement.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 1.0. </para> &note.canstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/defaultrenderer.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/defaultrenderer.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/defaultrenderer.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.defaultrenderer"> <refnamediv> <refname>HTML_QuickForm::defaultRenderer()</refname> <refpurpose>Retourne une référence vers l'objet de rendu par défaut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object &amp;<function>HTML_QuickForm::defaultRenderer</function></funcdef> <void /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.defaultrenderer.desc"> &title.desc; <para> Retourne une référence vers l'objet de rendu par défaut. Vous pouvez utiliser cette méthode pour vous éviter du code inutile : <programlisting role="php"> <![CDATA[ <?php $renderer =& $form->defaultRenderer(); ?> ]]> </programlisting> au lieu de <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/QuickForm/Renderer/Default.php'; $renderer =& new HTML_QuickForm_Renderer_Default(); ?> ]]> </programlisting> Elle est également utilisée en interne pour implémenter la méthode <link linkend="package.html.html-quickform.html-quickform.tohtml"><function>toHtml</function></link> ainsi que quelques méthodes obsolètes. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.defaultrenderer.return"> &title.returns; <para> <emphasis>Retourne</emphasis> l'objet de rendu par défaut. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.defaultrenderer.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.defaultrenderer.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 3.0. </para> &note.canstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/display.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/display.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/display.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.display"> <refnamediv> <refname>HTML_QuickForm::display()</refname> <refpurpose>Affiche une version HTML du formulaire</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTML_QuickForm::display</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.display.desc"> &title.desc; <para> Affiche une version HTML du formulaire, en utilisant le <link linkend="package.html.html-quickform.html-quickform-renderer-default">rendu par défaut</link>. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.display.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.display.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 1.0. </para> &note.notstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/elementexists.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/elementexists.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/elementexists.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.elementexists"> <refnamediv> <refname>HTML_QuickForm::elementExists()</refname> <refpurpose>Vérifie si les éléments sont dans le formulaire</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>HTML_QuickForm::elementExists</function></funcdef> <paramdef>string <parameter> <optional>$element = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.elementexists.desc"> &title.desc; <para> Retourne &true; si l'élément est dans un formulaire, &false; sinon. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.elementexists.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$element</parameter> </term> <listitem> <para> Nom des éléments de formulaire à vérifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.elementexists.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.elementexists.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 1.0. </para> &note.notstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/errormessage.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/errormessage.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/errormessage.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.errormessage"> <refnamediv> <refname>HTML_QuickForm::errorMessage()</refname> <refpurpose>Retourne un message d'erreur correspondant à un code erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTML_QuickForm::errorMessage</function></funcdef> <paramdef>int <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.desc"> &title.desc; <para> Retourne le message d'erreur d'un code erreur QuickForm. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$value</parameter> </term> <listitem> <para> code erreur </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.return"> &title.returns; <para> <emphasis>Retourne</emphasis> un message d'erreur. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.note"> &title.note; &note.canstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/exportvalues.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/exportvalues.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/exportvalues.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.exportvalues"> <refnamediv> <refname>HTML_QuickForm::exportValues()</refname> <refpurpose>Retourne les valeurs des éléments sécurisées</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>HTML_QuickForm::exportValues</function></funcdef> <paramdef>mixed <parameter> <optional>$elementList = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.exportvalues.desc"> &title.desc; <para> Retourne les valeurs pour les éléments du formulaire. Tout d'abord, elle tente de retourner les valeurs soumises <link linkend="package.html.html-quickform.intro-validation.filters">filtrées</link>, s'il n'y en a pas, alors elle prend les valeurs définies par <link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link> ou <link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link>. </para> <para> Contrairement à <link linkend="package.html.html-quickform.html-quickform.getsubmitvalues"><function>getSubmitValues</function></link>, cette méthode retournera uniquement les valeurs correspondantes aux éléments <link linkend="package.html.html-quickform.html-quickform.addelement">ajoutés au formulaire</link> et uniquement les valeurs qui peuvent être soumises : si nous avons des boutons radio 'Oui/Non', 'Peut être' ne sera pas considéré comme une valeur valide. Vous ne pouvez pas récupérer les valeurs pour les éléments fichier via cette méthode. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalues.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$elementList</parameter> </term> <listitem> <para> Tableau/chaîne de noms d'élément, des valeurs désirées. Si ce paramètre n'est pas défini, tous les éléments seront retournés. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalues.return"> &title.returns; <para> <emphasis>Retourne</emphasis> un tableau associatif de valeurs d'éléments. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalues.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>Code erreur</entry> <entry>Message d'erreur</entry> <entry>Raison</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry><constant>QUICKFORM_NONEXIST_ELEMENT</constant></entry> <entry>Element '<parameter>$element</parameter>' does not exist in HTML_QuickForm::exportValue()</entry> <entry>Tentative de récupérer une valeur d'un élément inexistant</entry> <entry>Vérifiez le nom de l'élément</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalues.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 3.1. </para> &note.notstatic; </refsect1> </refentry> <!-- 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 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 --> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-quickform/html-quickform/exportvalue.xml?view=markup&rev=1.1 Index: peardoc/fr/package/html/html-quickform/html-quickform/exportvalue.xml +++ peardoc/fr/package/html/html-quickform/html-quickform/exportvalue.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.html.html-quickform.html-quickform.exportvalue"> <refnamediv> <refname>HTML_QuickForm::exportValue()</refname> <refpurpose>Retourne la valeur de l'élément sécurisée</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>HTML_QuickForm::exportValue</function></funcdef> <paramdef>string <parameter>$element</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform.exportvalue.desc"> &title.desc; <para> Cette méthode tente tout d'abord de trouver une valeur soumise <link linkend="package.html.html-quickform.intro-validation.filters">propre</link>, elle retournera une valeur définie par <link linkend="package.html.html-quickform.html-quickform-element.setvalue"><function>setValue</function></link>/<link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link>/<link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link> si la valeur soumise n'existe pas pour l'élément donné. </para> <para> La valeur qui ne peut ne pas être soumise (e.g. une option qui n'est pas présente dans une liste d'options &lt;select&gt;) n'est pas considérée comme valide et n'est pas retournée. </para> <para> Vu que les valeurs retournées par cette méthode et par la méthode <function>exportValues</function> sont supposées être immédiatement traitées et/ou stockées quelque part, les valeurs pour les éléments fichiers, qui doivent avoir un traitement spécial, ne sont pas retournées. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalue.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$element</parameter> </term> <listitem> <para> Nom de l'élément </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalue.return"> &title.returns; <para> <emphasis>Retourne</emphasis> la valeur de l'élément. </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalue.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>Code erreur</entry> <entry>Message d'erreur</entry> <entry>Raison</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry><constant>QUICKFORM_NONEXIST_ELEMENT</constant></entry> <entry>Element '<parameter>$element</parameter>' does not exist in HTML_QuickForm::exportValue()</entry> <entry>Tentative de récupérer une valeur pour un élément inexistant</entry> <entry>Vérifiez le nom de l'élément</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.exportvalue.note"> &title.note; <para> <emphasis>Disponible</emphasis> depuis la version 3.1. </para> &note.notstatic; </refsect1> </refentry> <!-- 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 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 -->
« previous php.pear.doc (#9191) next »