cvs: peardoc /fr/package/xml/xml-serializer constants.xml intro.xml /fr/package/xml/xml-serializer/xml-serializer apiversion.xml
getserializeddata.xml resetoptions.xml serialize.xml setoption.xml xml-serializer.xml /fr/package/xml/xml-serializer/xml-unserializer apiversion.xml
getrootname.xml getunserializeddata.xml options.xml resetoptions.xml setoption.xml setoptions.xml unserialize.xml xml-unserializer.xml
| From: | Yannick TORRES | Date: | Tue, 03 Aug 2004 04:52:39 +0000 |
| Subject: | cvs: peardoc /fr/package/xml/xml-serializer constants.xml intro.xml /fr/package/xml/xml-serializer/xml-serializer apiversion.xml getserializeddata.xml resetoptions.xml serialize.xml setoption.xml xml-serializer.xml /fr/package/xml/xml-serializer/xml-unserializer apiversion.xml getrootname.xml getunserializeddata.xml options.xml resetoptions.xml setoption.xml setoptions.xml unserialize.xml xml-unserializer.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4719@lists.php.net to get a copy of this message | ||
yannick Tue Aug 3 00:52:39 2004 EDT
Added files:
/peardoc/fr/package/xml/xml-serializer/xml-serializer
apiversion.xml
getserializeddata.xml
resetoptions.xml
serialize.xml
setoption.xml
xml-serializer.xml
/peardoc/fr/package/xml/xml-serializer/xml-unserializer
apiversion.xml
getrootname.xml
getunserializeddata.xml
options.xml
resetoptions.xml
setoptions.xml
setoption.xml
unserialize.xml
xml-unserializer.xml
/peardoc/fr/package/xml/xml-serializer constants.xml intro.xml
Log:
initial translation
http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.apiversion"> <refnamediv> <refname><function>XML_Serializer::apiVersion</function></refname> <refpurpose>retourne la version de l'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Serializer::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.returns"> &title.returns; <para> <emphasis>retourne</emphasis> la version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.static"> <title>statique</title> <para> <emphasis>statique</emphasis> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.getserializeddata"> <refnamediv> <refname><function>XML_Serializer::getSerializedData</function></refname> <refpurpose>récupère le résultat de la linéarisation</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Serializer::getSerializedData</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.resetoptions"> <refnamediv> <refname><function>XML_Serializer::resetOptions</function></refname> <refpurpose>réinitialise toutes les options à leurs valeurs par défaut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Serializer::resetOptions</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.see"> &title.see; <para> <emphasis>voir</emphasis> <link linkend="package.xml.xml-serializer.xml-serializer.setoption"><function>XML_Serializer::setOption</function></link>, XML_Unserializer() </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.serialize"> <refnamediv> <refname><function>XML_Serializer::serialize</function></refname> <refpurpose>linéarise des données</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Serializer::serialize</function></funcdef> <paramdef>mixed <parameter>$data</parameter></paramdef> <paramdef>mixed <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$data</parameter> </term> <listitem> <para> données à linéariser </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.returns"> &title.returns; <para> <emphasis>retourne</emphasis> &true; en cas e succès, un objet PEAR_Error en cas d'échec </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.setoption"> <refnamediv> <refname><function>XML_Serializer::setOption</function></refname> <refpurpose>définie une option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Serializer::setOption</function></funcdef> <paramdef>mixed <parameter>$name</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.desc"> &title.desc; <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$name</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$value</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.see"> &title.see; <para> <emphasis>voir</emphasis> resetOption(), <link linkend="package.xml.xml-serializer.xml-serializer.xml-serializer"><function>XML_Serializer::XML_Serializer</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.xml-serializer"> <refnamediv> <refname>constructor <function>XML_Serializer::XML_Serializer</function></refname> <refpurpose>constructeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>XML_Serializer::XML_Serializer</function></funcdef> <paramdef>mixed <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> tableau contenant les options pour la linéarisation </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.apiversion"> <refnamediv> <refname><function>XML_Unserializer::apiVersion</function></refname> <refpurpose>retourne la version del'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.desc"> &title.desc; <para> Retourne la version de l'API XML_Unserializer. Celà peut être utile pour vérifier si la fonctionnalité désitée existe. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.returns"> &title.returns; <para> <emphasis>string</emphasis> : version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.static"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.getrootname"> <refnamediv> <refname><function>XML_Unserializer::getRootName</function></refname> <refpurpose>récupère le nom du tag racine du document parsé</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::getRootName</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.desc"> &title.desc; <para> Cette méthode retournera le nom du tag racine, après avoir délinéarisé un document. Ceci est extrèmement utile lorsque un tableau est retourné. Vous devez d'abord appeler <link linkend="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> <function>XML_Unserializer::unserialize</function> </link>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.returns"> &title.returns; <para> <emphasis>string</emphasis> : nom du tag racine </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.throws"> &title.throws; <para> <emphasis>retourne</emphasis> un objet PEAR_Error si aucun document n'a été parsé. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.getunserializeddata"> <refnamediv> <refname><function>XML_Unserializer::getUnserializedData</function></refname> <refpurpose>récupère le résultat d'un délinéarisation</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::getUnserializedData</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> &title.desc; <para> Cette méthode retourne le résultat de la dernière délinéarisation. Vous devez d'abord appeler <link linkend="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> <function>XML_Unserializer::unserialize</function> </link>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.returns"> &title.returns; <para> <emphasis>mixed</emphasis> : résultat de la délinéarisation. Peut être soit un tableau, soit un objet. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.throws"> &title.throws; <para> <emphasis>retourne</emphasis> un objet PEAR_Error si aucun document n'a été parsé. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.options"> <refnamediv> <refname>XML_Unserializer Options</refname> <refpurpose>Liste toutes les options de XML_Unserializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.refsect1"> <title>Introduction aux options</title> <para> Les options vous permettent d'influencer le traitement effectué par XML_Unserializer sur le parsage d'un document XML. Celà vous permet de définir si oui ou non les attributs doivent être parsés, si oui ou non nous devons utiliser des tableaux associatifs ou des objets pour les types de données complexes et bien plus encore. </para> <para> Les options peuvent être passées comme un tableau associatif au <link linkend="package.xml.xml-serializer.xml-unserializer.xml-unserializer">constructeur de XML_Unserializer</link>. Vous devriez également utiliser <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>setOption</function></link>, ou <link linkend="package.xml.xml-serializer.xml-unserializer.setoptions"><function>setOptions</function></link> pour définir une ou plusieurs options après la création de l'instance de XML_Unserializer. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.refsect2"> <title>Toutes les options disponible</title> <para> Voici une liste de toutes les options supportées par XML_Unserializer. </para> <para> <table> <title>Options de XML_Unserializer</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Valeurs possibles</entry> <entry>Défaut</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>complexTaype</entry> <entry>'array' ou 'object'</entry> <entry>'array'</entry> <entry>Définie si les tags désirés doivent être retournés sous la forme d'un tablau associatif ou d'un objet</entry> </row> <row> <entry>keyAttribute</entry> <entry>toute chaîne</entry> <entry>'_originalKey'</entry> <entry>Si l'attribut spécifié dans cette option existe pour un tag, la valeur sera utilisée comme nom de la clé ou de la propriété dans l'objet ou le tableau parent</entry> </row> <row> <entry>typeAttribute</entry> <entry>toute chaîne</entry> <entry>'_type'</entry> <entry>Si cet attribut existe pour un tag, le contenu du tag sera converti dans le type spécifié. Les types possibles sont : string, integer, float, boolean, array et object</entry> </row> <row> <entry>classAttribute</entry> <entry>toute chaîne</entry> <entry>'_class'</entry> <entry>Si XML_Unserializer crée un objet, il sera une instance de stdClass, à moins que le tag a un attribut spécifié dans cette option. Si elle est définie, le nom de la classe stocké dans la valeur de l'attribut sera utilisé.</entry> </row> <row> <entry>parseAttributes</entry> <entry>&true; ou &false;</entry> <entry>&true;</entry> <entry>Avec cette option, vous demandez à XML_Unserializer de parser également les attributs des tags. Les deux options suivantes définissent le traitement des attributs parsés.</entry> </row> <row> <entry>attributesArray</entry> <entry>&false; ou toute chaîne</entry> <entry>&false;</entry> <entry>Si définie à &false;, les attributs seront traités comme les tags définis. Si vous définissez cette option en tant que chaîne, un nouveau tableau sera créé et stocké dans la structure parent en utilisant les clés spécifiées dans cette option.</entry> </row> <row> <entry>prependAttributes</entry> <entry>toute chaîne</entry> <entry>''</entry> <entry>vous permet de spécifier un préfixe pour les noms des attributs.</entry> </row> <row> <entry>contentName</entry> <entry>toute chaîne</entry> <entry>'_content'</entry> <entry>Si vous décidez de parser les attributs ou un tag contenant des données cdata et des tags, alors les données cdata seront stockées dans l'index spécifié ici.</entry> </row> <row> <entry>tagMap</entry> <entry>tableau associatif</entry> <entry>array()</entry> <entry>Ceci vous autorise de mapper les noms des tags aux classes PHP.Les noms des tags doivent être dans les clés et les valeurs contenant les noms de classes à utiliser pour chaque tag.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.example1"> <title>Exemple avec les options</title> <simpara> L'exemple suivant montre comment définir des options de XML_Unserializer. </simpara> <example> <title>Utilisation du constructeur</title> <programlisting role="php"> <![CDATA[ require_once "XML/Unserializer.php"; $options = array( 'complexType' => 'array' ); $us = new XML_Unserializer($options); $result = $us->unserialize('exemple.xml', true); ]]> </programlisting> </example> <simpara> L'exemple suivant montre comment définir des options de XML_Unserializer, si l'instance a déjà été créée. </simpara> <example> <title>Utilisation de setOption() et de setOptions()</title> <programlisting role="php"> <![CDATA[ require_once "XML/Unserializer.php"; $us = new XML_Unserializer(); $options = array( 'tagMap' => array( 'util' => 'XML_Util' ), 'classAttribute' => '_classname' ); $us->setOptions($options); $us->setOption('complexType', 'object'); $result = $us->unserialize('exemple.xml', true); ]]> </programlisting> </example> </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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.resetoptions"> <refnamediv> <refname><function>XML_Unserializer::resetOptions</function></refname> <refpurpose>réinitialise toutes les options à leurs valeurs par défaut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::resetOptions</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.desc"> &title.desc; <para> Réinitialise toutes les options XML_Unserializer à leurs valeurs par défaut. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>XML_Unserializer::setOption</function></link> et <link linkend="package.xml.xml-serializer.xml-unserializer.xml-unserializer"><function>XML_Unserializer::XML_Unserializer</function></link> pour savoir comment définir ces options. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.setoptions"> <refnamediv> <refname><function>XML_Unserializer::setoptions</function></refname> <refpurpose>définie des options</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::setOptions</function></funcdef> <paramdef>array <parameter>$options</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.desc"> &title.desc; <para> Les options influences le comportement de XML_Unserializer et sont la partie la plus importante de XML_Unserializer. </para> <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - tableau associatif contenant toutes les options </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::resetOptions</function></link>, <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::setOption</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.setoption"> <refnamediv> <refname><function>XML_Unserializer::setOption</function></refname> <refpurpose>définie une option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::setOption</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.desc"> &title.desc; <para> Les options influences le comportement de XML_Unserializer et sont la partie la plus importante de XML_Unserializer. </para> <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $option</parameter> - nom de l'option </para> </listitem> <listitem> <para> <parameter>mixed $value</parameter> - valeur de l'option </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::resetOptions</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.unserialize"> <refnamediv> <refname><function>XML_Unserializer::unserialize</function></refname> <refpurpose>délinéarisation de données</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Unserializer::unserialize</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> <paramdef>boolean <parameter> <optional>$isFile = &false;</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.desc"> &title.desc; <para> délinéarise un document XML depuis une chaîne ou un fichier. </para> <para> La façon dont le document est délinéarisé est influencé par les options que vous avez définies dans le constructeur ou avec la fonction <function>setOptions</function>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - soit le nom d'un fichier représentant un document XML ou une chaine contenant un document XML. </para> </listitem> <listitem> <para> <parameter>boolean $isFile</parameter> - indique si oui ou non le premier paramètre est un nom de fichier (&true;) ou une chaîne XML (&false;). </para> </listitem> <listitem> <para> <parameter>array $options</parameter> - Les options à redéfinir qui avaient été définies précédemment. Ces options ne doivent être uniquement utilisées pour la délinéarisation et donc, réinitialise les options définies précédemment. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.xml-unserializer"> <refnamediv> <refname><function>XML_Unserializer::XML_Unserializer</function></refname> <refpurpose>Constructeur de XML_Unserializer</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef><function>XML_Unserializer::XML_Unserializer</function></funcdef> <paramdef>array <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.desc"> &title.desc; <para> Crée une nouvelle instance de XML_Unserializer. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - options pour cette instance. Peut être également déifnies en utilisant <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>XML_Unserializer::setOption</function></link> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/constants.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/constants.xml +++ peardoc/fr/package/xml/xml-serializer/constants.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.constants"> <refnamediv> <refname>Constantes du paquet XML_Serializer</refname> <refpurpose>Constantes définies et utilisées par XML_Serializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.constants.details"> <title>Toutes les constantes</title> <refsect2 id="package.xml.xml-serializer.constants.details.serializer---php"> <title> Constantes définies dans Serializer.php </title> <para> <table> <title>Constantes définies dans Serializer.php</title> <tgroup cols="3"> <thead> <row> <entry>Nom</entry> <entry>Valeur</entry> <entry>Numéro de ligne</entry> </row> </thead> <tbody> <row> <entry>XML_SERIALIZER_ERROR_NO_SERIALIZATION</entry> <entry>51</entry> <entry>34</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> <refsect2 id="package.xml.xml-serializer.constants.details.unserializer---php"> <title> Constantes définies dans Unserializer.php </title> <para> <table> <title>Constantes définies dans Unserializer.php</title> <tgroup cols="3"> <thead> <row> <entry>Nom</entry> <entry>Valeur</entry> <entry>Numéro de ligne</entry> </row> </thead> <tbody> <row> <entry>XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION</entry> <entry>151</entry> <entry>34</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> <!-- Generated by phpDocumentor v 1.2.3 http://www.phpdoc.org --> <!-- 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/co.php/peardoc/fr/package/xml/xml-serializer/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/intro.xml +++ peardoc/fr/package/xml/xml-serializer/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction à XML_Serializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.intro.refsect1"> <title>Introduction à XML_Serializer</title> <para> XML_Serializer linéarise les structures complexes de données comme les tableaux ou les objets en documents XML. Cette classe vous aide à générer tous documents XML désirés sans avoir besoin du DOM. </para> <para> Actuellement, il y a deux façons dans lesquelles XML_Serializer peut être utilisé dans vos applications : <itemizedlist> <listitem> <para> utilisez les fonctionnalités de XML_Serializer pour créer les documents XML dans une application XML spécifique (e.g. RDF) qui seront traités par un script existant. </para> </listitem> <listitem> <para> utilisez les fonctionnalités de XML_Serializer pour linéariser les structures de données qui doivent être délinéarisées plus tard. Celà est possible en ajoutant les informations concernant les types dans tous les éléments XML. </para> </listitem> </itemizedlist> </para> <para> Le paquet ne contient pas juste une classe de linéarisation mais aussi une classe XML_Unserializer, qui est capable de lire virtuellement un document XML et de retourner une structure de tableau ou d'objet qui représente les données stockées dans le document. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.intro.refsect2"> <title>Tutorials sur XML_Serializer</title> <para> Il y a plusieurs tutoriaux disponible pour XML_Serializer, qui vous aide à débuter. </para> <para> <itemizedlist> <listitem> <para> <ulink url="http://www.sitepoint.com/article/xml-php-pear-xml_serializer">XML instantané avec PHP et PEAR::XML_Serializer</ulink> par Harry Fuecks </para> </listitem> <listitem> <para> <ulink url="http://www.melonfire.com/community/columns/trog/article.php?id=244">linéarisation XML avec PHP</ulink> avec Vikram Vaswani </para> </listitem> </itemizedlist> </para> </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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.apiversion"> <refnamediv> <refname><function>XML_Serializer::apiVersion</function></refname> <refpurpose>retourne la version de l'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Serializer::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.returns"> &title.returns; <para> <emphasis>retourne</emphasis> la version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.static"> <title>statique</title> <para> <emphasis>statique</emphasis> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.apiversion.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/getserializeddata.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.getserializeddata"> <refnamediv> <refname><function>XML_Serializer::getSerializedData</function></refname> <refpurpose>récupère le résultat de la linéarisation</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Serializer::getSerializedData</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.getserializeddata.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/resetoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.resetoptions"> <refnamediv> <refname><function>XML_Serializer::resetOptions</function></refname> <refpurpose>réinitialise toutes les options à leurs valeurs par défaut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Serializer::resetOptions</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.see"> &title.see; <para> <emphasis>voir</emphasis> <link linkend="package.xml.xml-serializer.xml-serializer.setoption"><function>XML_Serializer::setOption</function></link>, XML_Unserializer() </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.resetoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/serialize.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.serialize"> <refnamediv> <refname><function>XML_Serializer::serialize</function></refname> <refpurpose>linéarise des données</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Serializer::serialize</function></funcdef> <paramdef>mixed <parameter>$data</parameter></paramdef> <paramdef>mixed <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$data</parameter> </term> <listitem> <para> données à linéariser </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.returns"> &title.returns; <para> <emphasis>retourne</emphasis> &true; en cas e succès, un objet PEAR_Error en cas d'échec </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.serialize.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/setoption.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.setoption"> <refnamediv> <refname><function>XML_Serializer::setOption</function></refname> <refpurpose>définie une option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Serializer::setOption</function></funcdef> <paramdef>mixed <parameter>$name</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.desc"> &title.desc; <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$name</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$value</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.see"> &title.see; <para> <emphasis>voir</emphasis> resetOption(), <link linkend="package.xml.xml-serializer.xml-serializer.xml-serializer"><function>XML_Serializer::XML_Serializer</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.setoption.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml +++ peardoc/fr/package/xml/xml-serializer/xml-serializer/xml-serializer.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-serializer.xml-serializer"> <refnamediv> <refname>constructor <function>XML_Serializer::XML_Serializer</function></refname> <refpurpose>constructeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Serializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>XML_Serializer::XML_Serializer</function></funcdef> <paramdef>mixed <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> tableau contenant les options pour la linéarisation </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.throws"> &title.throws; <para> <emphasis>aucune</emphasis> exception ne sera lancée </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-serializer.xml-serializer.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.apiversion"> <refnamediv> <refname><function>XML_Unserializer::apiVersion</function></refname> <refpurpose>retourne la version del'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.desc"> &title.desc; <para> Retourne la version de l'API XML_Unserializer. Celà peut être utile pour vérifier si la fonctionnalité désitée existe. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.returns"> &title.returns; <para> <emphasis>string</emphasis> : version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.apiversion.static"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/getrootname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.getrootname"> <refnamediv> <refname><function>XML_Unserializer::getRootName</function></refname> <refpurpose>récupère le nom du tag racine du document parsé</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::getRootName</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.desc"> &title.desc; <para> Cette méthode retournera le nom du tag racine, après avoir délinéarisé un document. Ceci est extrèmement utile lorsque un tableau est retourné. Vous devez d'abord appeler <link linkend="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> <function>XML_Unserializer::unserialize</function> </link>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.returns"> &title.returns; <para> <emphasis>string</emphasis> : nom du tag racine </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.throws"> &title.throws; <para> <emphasis>retourne</emphasis> un objet PEAR_Error si aucun document n'a été parsé. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getrootname.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/getunserializeddata.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.getunserializeddata"> <refnamediv> <refname><function>XML_Unserializer::getUnserializedData</function></refname> <refpurpose>récupère le résultat d'un délinéarisation</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Unserializer::getUnserializedData</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> &title.desc; <para> Cette méthode retourne le résultat de la dernière délinéarisation. Vous devez d'abord appeler <link linkend="package.xml.xml-serializer.xml-unserializer.getunserializeddata.desc"> <function>XML_Unserializer::unserialize</function> </link>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.returns"> &title.returns; <para> <emphasis>mixed</emphasis> : résultat de la délinéarisation. Peut être soit un tableau, soit un objet. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.throws"> &title.throws; <para> <emphasis>retourne</emphasis> un objet PEAR_Error si aucun document n'a été parsé. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.getunserializeddata.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/options.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.options"> <refnamediv> <refname>XML_Unserializer Options</refname> <refpurpose>Liste toutes les options de XML_Unserializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.refsect1"> <title>Introduction aux options</title> <para> Les options vous permettent d'influencer le traitement effectué par XML_Unserializer sur le parsage d'un document XML. Celà vous permet de définir si oui ou non les attributs doivent être parsés, si oui ou non nous devons utiliser des tableaux associatifs ou des objets pour les types de données complexes et bien plus encore. </para> <para> Les options peuvent être passées comme un tableau associatif au <link linkend="package.xml.xml-serializer.xml-unserializer.xml-unserializer">constructeur de XML_Unserializer</link>. Vous devriez également utiliser <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>setOption</function></link>, ou <link linkend="package.xml.xml-serializer.xml-unserializer.setoptions"><function>setOptions</function></link> pour définir une ou plusieurs options après la création de l'instance de XML_Unserializer. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.refsect2"> <title>Toutes les options disponible</title> <para> Voici une liste de toutes les options supportées par XML_Unserializer. </para> <para> <table> <title>Options de XML_Unserializer</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Valeurs possibles</entry> <entry>Défaut</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>complexTaype</entry> <entry>'array' ou 'object'</entry> <entry>'array'</entry> <entry>Définie si les tags désirés doivent être retournés sous la forme d'un tablau associatif ou d'un objet</entry> </row> <row> <entry>keyAttribute</entry> <entry>toute chaîne</entry> <entry>'_originalKey'</entry> <entry>Si l'attribut spécifié dans cette option existe pour un tag, la valeur sera utilisée comme nom de la clé ou de la propriété dans l'objet ou le tableau parent</entry> </row> <row> <entry>typeAttribute</entry> <entry>toute chaîne</entry> <entry>'_type'</entry> <entry>Si cet attribut existe pour un tag, le contenu du tag sera converti dans le type spécifié. Les types possibles sont : string, integer, float, boolean, array et object</entry> </row> <row> <entry>classAttribute</entry> <entry>toute chaîne</entry> <entry>'_class'</entry> <entry>Si XML_Unserializer crée un objet, il sera une instance de stdClass, à moins que le tag a un attribut spécifié dans cette option. Si elle est définie, le nom de la classe stocké dans la valeur de l'attribut sera utilisé.</entry> </row> <row> <entry>parseAttributes</entry> <entry>&true; ou &false;</entry> <entry>&true;</entry> <entry>Avec cette option, vous demandez à XML_Unserializer de parser également les attributs des tags. Les deux options suivantes définissent le traitement des attributs parsés.</entry> </row> <row> <entry>attributesArray</entry> <entry>&false; ou toute chaîne</entry> <entry>&false;</entry> <entry>Si définie à &false;, les attributs seront traités comme les tags définis. Si vous définissez cette option en tant que chaîne, un nouveau tableau sera créé et stocké dans la structure parent en utilisant les clés spécifiées dans cette option.</entry> </row> <row> <entry>prependAttributes</entry> <entry>toute chaîne</entry> <entry>''</entry> <entry>vous permet de spécifier un préfixe pour les noms des attributs.</entry> </row> <row> <entry>contentName</entry> <entry>toute chaîne</entry> <entry>'_content'</entry> <entry>Si vous décidez de parser les attributs ou un tag contenant des données cdata et des tags, alors les données cdata seront stockées dans l'index spécifié ici.</entry> </row> <row> <entry>tagMap</entry> <entry>tableau associatif</entry> <entry>array()</entry> <entry>Ceci vous autorise de mapper les noms des tags aux classes PHP.Les noms des tags doivent être dans les clés et les valeurs contenant les noms de classes à utiliser pour chaque tag.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.options.example1"> <title>Exemple avec les options</title> <simpara> L'exemple suivant montre comment définir des options de XML_Unserializer. </simpara> <example> <title>Utilisation du constructeur</title> <programlisting role="php"> <![CDATA[ require_once "XML/Unserializer.php"; $options = array( 'complexType' => 'array' ); $us = new XML_Unserializer($options); $result = $us->unserialize('exemple.xml', true); ]]> </programlisting> </example> <simpara> L'exemple suivant montre comment définir des options de XML_Unserializer, si l'instance a déjà été créée. </simpara> <example> <title>Utilisation de setOption() et de setOptions()</title> <programlisting role="php"> <![CDATA[ require_once "XML/Unserializer.php"; $us = new XML_Unserializer(); $options = array( 'tagMap' => array( 'util' => 'XML_Util' ), 'classAttribute' => '_classname' ); $us->setOptions($options); $us->setOption('complexType', 'object'); $result = $us->unserialize('exemple.xml', true); ]]> </programlisting> </example> </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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/resetoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.resetoptions"> <refnamediv> <refname><function>XML_Unserializer::resetOptions</function></refname> <refpurpose>réinitialise toutes les options à leurs valeurs par défaut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::resetOptions</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.desc"> &title.desc; <para> Réinitialise toutes les options XML_Unserializer à leurs valeurs par défaut. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>XML_Unserializer::setOption</function></link> et <link linkend="package.xml.xml-serializer.xml-unserializer.xml-unserializer"><function>XML_Unserializer::XML_Unserializer</function></link> pour savoir comment définir ces options. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.resetoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoptions.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.setoptions"> <refnamediv> <refname><function>XML_Unserializer::setoptions</function></refname> <refpurpose>définie des options</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::setOptions</function></funcdef> <paramdef>array <parameter>$options</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.desc"> &title.desc; <para> Les options influences le comportement de XML_Unserializer et sont la partie la plus importante de XML_Unserializer. </para> <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - tableau associatif contenant toutes les options </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::resetOptions</function></link>, <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::setOption</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoptions.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/setoption.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.setoption"> <refnamediv> <refname><function>XML_Unserializer::setOption</function></refname> <refpurpose>définie une option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Unserializer::setOption</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.desc"> &title.desc; <para> Les options influences le comportement de XML_Unserializer et sont la partie la plus importante de XML_Unserializer. </para> <para> Vous pouvez utiliser cette méthode si vous ne voulez pas définir toutes les options dans le constructeur. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $option</parameter> - nom de l'option </para> </listitem> <listitem> <para> <parameter>mixed $value</parameter> - valeur de l'option </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.see"> &title.see; <para> voir <link linkend="package.xml.xml-serializer.xml-unserializer.resetoptions"><function>XML_Unserializer::resetOptions</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.setoption.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/unserialize.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.unserialize"> <refnamediv> <refname><function>XML_Unserializer::unserialize</function></refname> <refpurpose>délinéarisation de données</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Unserializer::unserialize</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> <paramdef>boolean <parameter> <optional>$isFile = &false;</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.desc"> &title.desc; <para> délinéarise un document XML depuis une chaîne ou un fichier. </para> <para> La façon dont le document est délinéarisé est influencé par les options que vous avez définies dans le constructeur ou avec la fonction <function>setOptions</function>. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - soit le nom d'un fichier représentant un document XML ou une chaine contenant un document XML. </para> </listitem> <listitem> <para> <parameter>boolean $isFile</parameter> - indique si oui ou non le premier paramètre est un nom de fichier (&true;) ou une chaîne XML (&false;). </para> </listitem> <listitem> <para> <parameter>array $options</parameter> - Les options à redéfinir qui avaient été définies précédemment. Ces options ne doivent être uniquement utilisées pour la délinéarisation et donc, réinitialise les options définies précédemment. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.unserialize.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml +++ peardoc/fr/package/xml/xml-serializer/xml-unserializer/xml-unserializer.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.xml-unserializer.xml-unserializer"> <refnamediv> <refname><function>XML_Unserializer::XML_Unserializer</function></refname> <refpurpose>Constructeur de XML_Unserializer</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Unserializer.php'; </funcsynopsisinfo> <funcprototype> <funcdef><function>XML_Unserializer::XML_Unserializer</function></funcdef> <paramdef>array <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.desc"> &title.desc; <para> Crée une nouvelle instance de XML_Unserializer. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - options pour cette instance. Peut être également déifnies en utilisant <link linkend="package.xml.xml-serializer.xml-unserializer.setoption"><function>XML_Unserializer::setOption</function></link> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-serializer.xml-unserializer.xml-unserializer.note"> &title.note; ¬e.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/co.php/peardoc/fr/package/xml/xml-serializer/constants.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/constants.xml +++ peardoc/fr/package/xml/xml-serializer/constants.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.constants"> <refnamediv> <refname>Constantes du paquet XML_Serializer</refname> <refpurpose>Constantes définies et utilisées par XML_Serializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.constants.details"> <title>Toutes les constantes</title> <refsect2 id="package.xml.xml-serializer.constants.details.serializer---php"> <title> Constantes définies dans Serializer.php </title> <para> <table> <title>Constantes définies dans Serializer.php</title> <tgroup cols="3"> <thead> <row> <entry>Nom</entry> <entry>Valeur</entry> <entry>Numéro de ligne</entry> </row> </thead> <tbody> <row> <entry>XML_SERIALIZER_ERROR_NO_SERIALIZATION</entry> <entry>51</entry> <entry>34</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> <refsect2 id="package.xml.xml-serializer.constants.details.unserializer---php"> <title> Constantes définies dans Unserializer.php </title> <para> <table> <title>Constantes définies dans Unserializer.php</title> <tgroup cols="3"> <thead> <row> <entry>Nom</entry> <entry>Valeur</entry> <entry>Numéro de ligne</entry> </row> </thead> <tbody> <row> <entry>XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION</entry> <entry>151</entry> <entry>34</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> <!-- Generated by phpDocumentor v 1.2.3 http://www.phpdoc.org --> <!-- 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/co.php/peardoc/fr/package/xml/xml-serializer/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-serializer/intro.xml +++ peardoc/fr/package/xml/xml-serializer/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-serializer.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction à XML_Serializer</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-serializer.intro.refsect1"> <title>Introduction à XML_Serializer</title> <para> XML_Serializer linéarise les structures complexes de données comme les tableaux ou les objets en documents XML. Cette classe vous aide à générer tous documents XML désirés sans avoir besoin du DOM. </para> <para> Actuellement, il y a deux façons dans lesquelles XML_Serializer peut être utilisé dans vos applications : <itemizedlist> <listitem> <para> utilisez les fonctionnalités de XML_Serializer pour créer les documents XML dans une application XML spécifique (e.g. RDF) qui seront traités par un script existant. </para> </listitem> <listitem> <para> utilisez les fonctionnalités de XML_Serializer pour linéariser les structures de données qui doivent être délinéarisées plus tard. Celà est possible en ajoutant les informations concernant les types dans tous les éléments XML. </para> </listitem> </itemizedlist> </para> <para> Le paquet ne contient pas juste une classe de linéarisation mais aussi une classe XML_Unserializer, qui est capable de lire virtuellement un document XML et de retourner une structure de tableau ou d'objet qui représente les données stockées dans le document. </para> </refsect1> <refsect1 id="package.xml.xml-serializer.intro.refsect2"> <title>Tutorials sur XML_Serializer</title> <para> Il y a plusieurs tutoriaux disponible pour XML_Serializer, qui vous aide à débuter. </para> <para> <itemizedlist> <listitem> <para> <ulink url="http://www.sitepoint.com/article/xml-php-pear-xml_serializer">XML instantané avec PHP et PEAR::XML_Serializer</ulink> par Harry Fuecks </para> </listitem> <listitem> <para> <ulink url="http://www.melonfire.com/community/columns/trog/article.php?id=244">linéarisation XML avec PHP</ulink> avec Vikram Vaswani </para> </listitem> </itemizedlist> </para> </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 -->