cvs: peardoc /fr/package/caching/cache-lite intro.xml /fr/package/configuration/config avail-container.xml
/fr/package/database/db-dataobject/db-dataobject selectadd.xml /fr/package/fileformats/contact-vcard-build intro.xml /fr/package/html
html-template-it.xml /fr/package/networking/net-ping net-ping.xml ping.xml setargs.xml

From: Date: Sun, 10 Dec 2006 07:23:12 +0000
Subject: cvs: peardoc /fr/package/caching/cache-lite intro.xml /fr/package/configuration/config avail-container.xml
/fr/package/database/db-dataobject/db-dataobject selectadd.xml /fr/package/fileformats/contact-vcard-build intro.xml /fr/package/html
html-template-it.xml /fr/package/networking/net-ping net-ping.xml ping.xml setargs.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9038@lists.php.net to get a copy of this message
yannick Sun Dec 10 07:23:12 2006 UTC Modified files: /peardoc/fr/package/caching/cache-lite intro.xml /peardoc/fr/package/configuration/config avail-container.xml /peardoc/fr/package/database/db-dataobject/db-dataobject selectadd.xml /peardoc/fr/package/fileformats/contact-vcard-build intro.xml /peardoc/fr/package/html html-template-it.xml /peardoc/fr/package/networking/net-ping net-ping.xml ping.xml setargs.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/peardoc/fr/package/caching/cache-lite/intro.xml?r1=1.7&r2=1.8&diff_format=u Index: peardoc/fr/package/caching/cache-lite/intro.xml diff -u peardoc/fr/package/caching/cache-lite/intro.xml:1.7 peardoc/fr/package/caching/cache-lite/intro.xml:1.8 --- peardoc/fr/package/caching/cache-lite/intro.xml:1.7 Thu Feb 16 20:28:01 2006 +++ peardoc/fr/package/caching/cache-lite/intro.xml Sun Dec 10 07:23:12 2006 @@ -1,65 +1,65 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="package.caching.cache-lite.intro"> <refnamediv> <refname>Introduction</refname> - <refpurpose>Introduction &agrave; Cache_Lite</refpurpose> + <refpurpose>Introduction à Cache_Lite</refpurpose> </refnamediv> <refsect1 id="package.caching.cache-lite.intro.desc"> &title.desc; <para> - PEAR::Cache_Lite est un petit syst&egrave;me de cache. ll est optimis&eacute; pour - les sites web &agrave; fort trafic, il est donc vraiment tr&egrave;s rapide et s&eacute;curis&eacute; + PEAR::Cache_Lite est un petit système de cache. ll est optimisé pour + les sites web à fort trafic, il est donc vraiment très rapide et sécurisé (car il utilise les verrous de fichiers et/ou des tests anti-corruptions). </para> <para> - Note : une documentation ind&eacute;pendante de Cache_Lite est disponible en chinois + Note : une documentation indépendante de Cache_Lite est disponible en chinois sur <ulink url="http://rainx.phpmore.com/manual/cache_lite.html">cette page</ulink>. </para> </refsect1> <refsect1 id="package.caching.cache-lite.intro.technical"> - <title>Buts et d&eacute;tails techniques</title> + <title>Buts et détails techniques</title> <refsect2 id="package.caching.cache-lite.intro.technical.speed"> <title>Vitesse</title> <para> - Avant tout, PEAR::Cache_Lite est destin&eacute; &agrave; &ecirc;tre tr&egrave;s rapide. - Ce qui rend l'utilisation de PEAR possible sur les sites &agrave; fort trafic - sans tomber dans des solutions mat&eacute;rielles de hautes technicit&eacute;s. + Avant tout, PEAR::Cache_Lite est destiné à être très rapide. + Ce qui rend l'utilisation de PEAR possible sur les sites à fort trafic + sans tomber dans des solutions matérielles de hautes technicités. </para> <para> - Vous pouvez trouver plus de d&eacute;tails sur les choix techniques de Cache_lite - sur <ulink url="http://cvs.php.net/co.php/pear/Cache_Lite/docs/technical?r=1.1">ce document</ulink> - mais l'id&eacute;e principale est d'inclure le fichier PEAR.php uniquement lorsqu'une erreur - survient (extr&egrave;mement rare). + Vous pouvez trouver plus de détails sur les choix techniques de Cache_lite + sur <ulink url="http://cvs.php.net/co.php/pear/Cache_Lite/docs/technical?revision=1.1&amp;view=markup">ce document</ulink> + mais l'idée principale est d'inclure le fichier PEAR.php uniquement lorsqu'une erreur + survient (extrèmement rare). </para> </refsect2> <refsect2 id="package.caching.cache-lite.intro.technical.simplicity"> - <title>Simplicit&eacute;</title> + <title>Simplicité</title> <para> - Parce que le syst&egrave;me de cache est souvent inclus dans la couche applicative, - le moteur PEAR::Cache_Lite doit &ecirc;tre petit et flexible avec la licence LGPL. - Les fonctions avanc&eacute;es peuvent &ecirc;tre trouv&eacute;es dans les fichiers qui &eacute;tendent le moteur. + Parce que le système de cache est souvent inclus dans la couche applicative, + le moteur PEAR::Cache_Lite doit être petit et flexible avec la licence LGPL. + Les fonctions avancées peuvent être trouvées dans les fichiers qui étendent le moteur. </para> </refsect2> <refsect2> - <title>S&eacute;curit&eacute;</title> + <title>Sécurité</title> <para> - Sur les sites web &agrave; fort trafic, le syst&egrave;me de cache doit &ecirc;tre vraiment - prot&eacute;g&eacute; contre les corruptions de fichiers (&agrave; cause des acc&egrave;s - concurents en mode lecture/&eacute;criture). Vraiment tr&egrave;s peu de syst&egrave;mes - de cache offrent une protection contre ce probl&egrave;me. + Sur les sites web à fort trafic, le système de cache doit être vraiment + protégé contre les corruptions de fichiers (à cause des accès + concurents en mode lecture/écriture). Vraiment très peu de systèmes + de cache offrent une protection contre ce problème. </para> <para> Un verrou de fichier n'est pas une solution parfaite, car il est inutile - avec NFS ou avec des serveurs multit&acirc;ches. Donc, en plus des verrous de - fichiers, PEAR::Cache_Lite offre deux m&eacute;canismes totalement transparents - (bas&eacute;s sur des cl&eacute;s de hashage) our garantir la s&eacute;curit&eacute; des - donn&eacute;es en toutes circonstances. Consultez le lien donn&eacute; dans le paragraphe - pr&eacute;c&eacute;dent pour plus de d&eacute;tails. + avec NFS ou avec des serveurs multitâches. Donc, en plus des verrous de + fichiers, PEAR::Cache_Lite offre deux mécanismes totalement transparents + (basés sur des clés de hashage) our garantir la sécurité des + données en toutes circonstances. Consultez le lien donné dans le paragraphe + précédent pour plus de détails. </para> </refsect2> </refsect1> @@ -67,18 +67,18 @@ <refsect1 id="package.caching.cache-lite.intro.usage"> <title>Utilisation</title> <refsect2 id="package.caching.cache-lite.intro.usage.general"> - <title>Utilisation g&eacute;n&eacute;rale</title> + <title>Utilisation générale</title> <para> - Tous les modules de Cache_Lite suivent la m&ecirc;me philosophie. + Tous les modules de Cache_Lite suivent la même philosophie. </para> <para> - Les param&egrave;tres (autres que ceux par d&eacute;faut) sont pass&eacute;s au constructeur + Les paramètres (autres que ceux par défaut) sont passés au constructeur en utilisant un tableau associatif. </para> <para> - Un fichier en cache est identifi&eacute; par un identifiant de cache (et &eacute;ventuellement un groupe). - Pour des raisons &eacute;videntes de flexibilit&eacute;, le choix de la logique concernant - ces identifiants est laiss&eacute; &agrave; la discr&eacute;tion du d&eacute;veloppeur. + Un fichier en cache est identifié par un identifiant de cache (et éventuellement un groupe). + Pour des raisons évidentes de flexibilité, le choix de la logique concernant + ces identifiants est laissé à la discrétion du développeur. </para> <para> Dans ce qui suit, nous utiliserons le terme de "group" pour les fichiers en cache et le @@ -89,8 +89,8 @@ <refsect2 id="package.caching.cache-lite.intro.usage.core"> <title>Partie principale</title> <para> - Commen&ccedil;ons avec un exemple simple : la page est construite et r&eacute;cup&eacute;r&eacute;e dans - une variable unique (cha&icirc;ne de caract&egrave;res) : + Commençons avec un exemple simple : la page est construite et récupérée dans + une variable unique (chaîne de caractères) : <programlisting role="php"> <![CDATA[ <?php @@ -98,16 +98,16 @@ // Inclusion du paquet require_once('Cache/Lite.php'); -// D&eacute;finition d'un identifiant pour ce cache +// Définition d'un identifiant pour ce cache $id = '123'; -// D&eacute;finition de quelques options +// Définition de quelques options $options = array( 'cacheDir' => '/tmp/', 'lifeTime' => 3600 ); -// Cr&eacute;ation de l'objet Cache_Lite +// Création de l'objet Cache_Lite $Cache_Lite = new Cache_Lite($options); // Test si il y a un cache valide pour cette identifiant @@ -117,10 +117,10 @@ // Le contenu est dans la variable $data // (...) -} else { // Aucun cache valide trouv&eacute; (vous devez faire la page) +} else { // Aucun cache valide trouvé (vous devez faire la page) // Cache non disponible ! - // Mettez dans la variable $data les donn&eacute;es &agrave; mettre dans le cache + // Mettez dans la variable $data les données à mettre dans le cache // (...) $Cache_Lite->save($data); @@ -143,13 +143,13 @@ 'lifeTime' => 3600 ); -// Cr&eacute;ation de l'objet Cache_Lite +// Création de l'objet Cache_Lite $Cache_Lite = new Cache_Lite($options); if ($data = $Cache_Lite->get('block1')) { echo($data); } else { - $data = 'Donn&eacute;es du block 1'; + $data = 'Données du block 1'; $Cache_Lite->save($data); } @@ -158,7 +158,7 @@ if ($data = $Cache_Lite->get('block2')) { echo($data); } else { - $data = 'Donn&eacute;es du block 2'; + $data = 'Données du block 2'; $Cache_Lite->save($data); } @@ -171,9 +171,9 @@ <refsect2 id="package.caching.cache-lite.intro.usage.output"> <title>Partie principale</title> <para> - Cependant, il n'est pas toujours possible de r&eacute;cup&eacute;rer tout le contenu + Cependant, il n'est pas toujours possible de récupérer tout le contenu d'une page dans une seule variable. Dans ce cas, - Cache_Lite_Output vient &agrave; votre secours : + Cache_Lite_Output vient à votre secours : <programlisting role="php"> <![CDATA[ <?php @@ -200,7 +200,7 @@ </programlisting> </para> <para> - L'id&eacute;e est la m&ecirc;me que pour l'utilisation des blocs : + L'idée est la même que pour l'utilisation des blocs : <programlisting role="php"> <![CDATA[ <?php @@ -216,7 +216,7 @@ if (!($cache->start('block1'))) { // Cache manquant... - echo 'Donn&eacute;es du block 1 !'; + echo 'Données du block 1 !'; $cache->end(); } @@ -224,7 +224,7 @@ if (!($cache->start('block2'))) { // Cache manquant... - echo 'Donn&eacute;es du block 2 !'; + echo 'Données du block 2 !'; $cache->end(); } @@ -237,10 +237,10 @@ <refsect2 id="package.caching.cache-lite.intro.usage.important"> <title>NOTE IMPORTANTE</title> <para> - Pour une efficacit&eacute; maximale avec Cache_Lite, n'incluez pas syst&eacute;matiquement - tout autre paquet n&eacute;cessaire &agrave; votre page. Chargez <emphasis>UNIQUEMENT</emphasis> + Pour une efficacité maximale avec Cache_Lite, n'incluez pas systématiquement + tout autre paquet nécessaire à votre page. Chargez <emphasis>UNIQUEMENT</emphasis> les modules dont vous avez besoin lorsque la page n'est pas dans le cache - (et doit donc &ecirc;tre re-pars&eacute;e) en utilisant une inclusion conditionnelle. + (et doit donc être re-parsée) en utilisant une inclusion conditionnelle. </para> <para> Le <emphasis>mauvais</emphasis> chemin est : @@ -252,9 +252,9 @@ require_once("...") // (...) $cache = new Cache_Lite(); - if ($data = $Cache_Lite->get($id)) { // cache trouv&eacute; ! + if ($data = $Cache_Lite->get($id)) { // cache trouvé ! echo($data); - } else { // la page doit &ecirc;tre (re)construite dans $data + } else { // la page doit être (re)construite dans $data // (...) $Cache_Lite->save($data); } @@ -263,16 +263,16 @@ </programlisting> </para> <para> - Voici la meilleure fa&ccedil;on (souvent, plus de deux fois plus rapide) : + Voici la meilleure façon (souvent, plus de deux fois plus rapide) : <programlisting role="php"> <![CDATA[ <?php require_once("Cache/Lite.php"); // (...) $cache = new Cache_Lite(); - if ($data = $Cache_Lite->get($id)) { // cache trouv&eacute; ! + if ($data = $Cache_Lite->get($id)) { // cache trouvé ! echo($data); - } else { // la page doit &ecirc;tre (re)construite dans $data + } else { // la page doit être (re)construite dans $data require_once("...") require_once("...") // (...) @@ -287,7 +287,7 @@ <refsect1 id="package.caching.cache-lite.intro.conclusion"> <title>Conclusion</title> <para> - Pour aller plus loin avec Cache_Lite, regardez les exemples et les d&eacute;tails + Pour aller plus loin avec Cache_Lite, regardez les exemples et les détails techniques fournis avec ce paquet. </para> </refsect1> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/configuration/config/avail-container.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/fr/package/configuration/config/avail-container.xml diff -u peardoc/fr/package/configuration/config/avail-container.xml:1.1 peardoc/fr/package/configuration/config/avail-container.xml:1.2 --- peardoc/fr/package/configuration/config/avail-container.xml:1.1 Sun Feb 26 21:58:15 2006 +++ peardoc/fr/package/configuration/config/avail-container.xml Sun Dec 10 07:23:12 2006 @@ -1,12 +1,12 @@ <?xml version='1.0' encoding='ISO-8859-1' ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.configuration.config.avail-container"> <refnamediv> <refname>Conteneurs disponibles</refname> <refpurpose> - Formats support&eacute;s + Formats supportés </refpurpose> </refnamediv> <refsect1> @@ -25,9 +25,9 @@ <term><literal>GenericConf</literal></term> <listitem> <para> - Fichiers de configuration g&eacute;n&eacute;riques. Les caract&egrave;res &eacute;gal (=), de d&eacute;but de commentaire - et de nouvelle ligne dans l'analyseur peuvent &ecirc;tre personnalis&eacute;s pour correspondre - votre format de configuration pr&eacute;f&eacute;r&eacute;. + Fichiers de configuration génériques. Les caractères égal (=), de début de commentaire + et de nouvelle ligne dans l'analyseur peuvent être personnalisés pour correspondre + votre format de configuration préféré. </para> </listitem> </varlistentry> @@ -53,8 +53,15 @@ <listitem> <para> Analyse les structures de tableau PHP. Peut lire depuis un fichier source PHP - ou depuis un tableau en m&eacute;moire. + ou depuis un tableau en mémoire. </para> + <warning> + <para> + Vu que les fichiers de configuration contenant des tableaux PHP sont justes inclus + en utilisant les méthodes standarts PHP, les commentaires de code et la structure + seront perdus lors de la sauvegarde. + </para> + </warning> </listitem> </varlistentry> <varlistentry> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml diff -u peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml:1.1 peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml:1.2 --- peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml:1.1 Thu Sep 14 17:14:21 2006 +++ peardoc/fr/package/database/db-dataobject/db-dataobject/selectadd.xml Sun Dec 10 07:23:12 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.database.db-dataobject.db-dataobject.selectadd"> <refnamediv> @@ -60,7 +60,7 @@ $person->selectAdd('id,name'); while ($person->fetch()) { -echo "$person->id} {$person->name}<BR>"; +echo "{$person->id} {$person->name}<br />"; } $person = new DataObjects_Person; @@ -68,7 +68,7 @@ $person->id = 12; $person->find(TRUE); -echo "$person->name} {$person->birthday_formated}<BR>"; +echo "$person->name} {$person->birthday_formated}<br />"; ]]> </programlisting> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/fileformats/contact-vcard-build/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/fr/package/fileformats/contact-vcard-build/intro.xml diff -u peardoc/fr/package/fileformats/contact-vcard-build/intro.xml:1.2 peardoc/fr/package/fileformats/contact-vcard-build/intro.xml:1.3 --- peardoc/fr/package/fileformats/contact-vcard-build/intro.xml:1.2 Thu Nov 16 07:37:21 2006 +++ peardoc/fr/package/fileformats/contact-vcard-build/intro.xml Sun Dec 10 07:23:12 2006 @@ -1,32 +1,518 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: moosh Status: ready --> -<!-- Credit: yannick Status: ready --> - - <refentry id="package.fileformats.contact-vcard-build.intro"> - <refnamediv> - <refname>Introduction</refname> - <refpurpose> - Construit (cr&eacute;e) et r&eacute;cup&egrave;re - des blocs de texte vCard 2.1 et 3.0. - </refpurpose> - </refnamediv> - <refsect1> - <title>Description de Contact_Vcard_Build</title> - <para> - Ce package vous permet de cr&eacute;er une vCard, - version 2.1 ou 3.0 ainsi que de - r&eacute;cup&eacute;rer le texte d'une vCard. - </para> - <para> - La documentation compl&egrave;te en ligne est disponible - <ulink - url="http://wiki.ciaweb.net/yawiki/index.php?wiki=Contact_Vcard" - >ici</ulink>. - </para> - </refsect1> - </refentry> - - +<?xml version="1.0" encoding="iso-8859-1" ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> + +<refentry id="package.fileformats.contact-vcard-build.intro"> + <refnamediv> + <refname>Introduction</refname> + <refpurpose> + Construit et récupère des blocs de texte vCard 2.1 et 3.0. + </refpurpose> + </refnamediv> + <refsect1> + <title>Description de Contact_Vcard_Build</title> + <para> + Permet de créer une vCard, version 2.1 ou 3.0, et de récupérer + le texte vCard. + </para> + </refsect1> + <refsect1> + <title>Instructions</title> + <itemizedlist> + <listitem> + <para> + Téléchargez et décompressez Contact_Vcard_Build depuis l'archive PEAR. + </para> + </listitem> + <listitem> + <para> + Incluez le fichier <filename>Contact_Vcard_Build.php</filename> dans votre script PHP. + </para> + </listitem> + <listitem> + <para> + Instanciez un nouvel objet <classname>Contact_Vcard_Build</classname> + (par défaut, la version vCard est 3.0, mais les vCards 2.1 sont également supportées). + </para> + </listitem> + <listitem> + <para> + Définissez ou ajoutez des valeurs et des paramètres que vous désirez dans la vCard. + </para> + </listitem> + <listitem> + <para> + Récupérez la vCard complète et utilisez la fonction <function>print_r</function> + pour voire le résultat. + </para> + </listitem> + </itemizedlist> + + <example> + <title>Exemple de code</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// inclut le fichier de la classe +require_once 'Contact_Vcard_Build.php'; + +// instancie un nouvel objet +// (par défaut, en version 3.0) +$vcard = new Contact_Vcard_Build(); + +// définission d'un nom formaté +$vcard->setFormattedName('Bolivar Shagnasty'); + +// définission de la partie structurée du nom +$vcard->setName('Shagnasty', 'Bolivar', 'Odysseus', + 'Mr.', 'III'); + +// ajout d'un email de travail. Notez que nous ajoutons la valeur +// d'abord, et le paramètre ensuite -- Contact_Vcard_Build +// est capable d'ajouter le paramètre à son emplacement correct. +$vcard->addEmail('boshag@example.com'); +$vcard->addParam('TYPE', 'WORK'); + +// ajout d'un email de domicile/préféré +$vcard->addEmail('bolivar@example.net'); +$vcard->addParam('TYPE', 'HOME'); +$vcard->addParam('TYPE', 'PREF'); + +// ajout d'une adresse de travail +$vcard->addAddress('POB 101', 'Suite 202', '123 Main', + 'Beverly Hills', 'CA', '90210', 'US'); +$vcard->addParam('TYPE', 'WORK'); + +// récupération de la vCard et affichage +$text = $vcard->fetch(); +echo '<pre>'; +print_r($text); +echo '</pre>'; +?> +]]></programlisting> + </example> + </refsect1> + + <refsect1> + <title>Differences entre vCard 2.1 et vCard 3.0</title> + <para> + La spécification <literal>2.1</literal> utilise les CRLF pour terminer les lignes + (<literal>\r\n</literal>). + Elle permet les composants et les paramètres suivants : + </para> + + <itemizedlist> + <listitem> + <para> + Paramètres : + </para> + <itemizedlist> + + <listitem> + <para> + <emphasis>TYPE</emphasis> : parmis DOM, INTL, POSTAL, PARCEL, HOME, WORK, + PREF, VOICE, FAX, MSG, CELL, PAGER, BBS, MODEM, CAR, ISDN, VIDEO, + AOL, APPLELINK, ATTMAIL, CIS, EWORLD, INTERNET, IBMMAIL, MCIMAIL, + POWERSHARE, PRODIGY, TLX, X400, GIF, CGM, WMF, BMP, MET, PMB, DIB, + PICT, TIFF, PDF, PS, JPEG, QTIME, MPEG, MPEG2, AVI, WAVE, AIFF, + PCM, X509, ou PGP. + </para> + </listitem> + + <listitem> + <para> + <emphasis>ENCODING</emphasis> : 7BIT, 8BIT, BASE64 ou QUOTED-PRINTABLE + </para> + </listitem> + + <listitem> + <para> + <emphasis>VALUE</emphasis> : INLINE, CONTENT-ID, CID, URL, VCARD + </para> + </listitem> + + <listitem> + <para> + <emphasis>CHARSET</emphasis> : un des jeux de caractères ISO. + </para> + </listitem> + + <listitem> + <para> + <emphasis>LANGUAGE</emphasis> : représente le langage, en utilisant les caractères + a-z, A-Z, 0-9, et le tiret (-). + </para> + </listitem> + + </itemizedlist> + </listitem> + + <listitem> + <para> + COmposants et méthodes + </para> + <itemizedlist> + <listitem> + <para> + VERSION (<function>setVersion</function>) + </para> + </listitem> + + <listitem> + <para> + FN (<function>setFormattedName</function>) + </para> + </listitem> + + <listitem> + <para> + N (<function>setName</function>) + </para> + </listitem> + + <listitem> + <para> + PHOTO (<function>setPhoto</function>) + </para> + </listitem> + + <listitem> + <para> + BDAY (<function>setBirthday</function>) + </para> + </listitem> + + <listitem> + <para> + ADR (<function>addAddress</function>) + </para> + </listitem> + + <listitem> + <para> + LABEL (<function>addLabel</function>) + </para> + </listitem> + + <listitem> + <para> + TEL (<function>addTelephone</function>) + </para> + </listitem> + + <listitem> + <para> + EMAIL (<function>addEmail</function>) + </para> + </listitem> + + <listitem> + <para> + MAILER (<function>setMailer</function>) + </para> + </listitem> + + <listitem> + <para> + TZ (<function>setTZ</function>) + </para> + </listitem> + + <listitem> + <para> + GEO (<function>setGeo</function>) + </para> + </listitem> + + <listitem> + <para> + TITLE (<function>setTitle</function>) + </para> + </listitem> + + <listitem> + <para> + ROLE (<function>setRole</function>) + </para> + </listitem> + + <listitem> + <para> + LOGO (<function>setLogo</function>) + </para> + </listitem> + + <listitem> + <para> + AGENT (<function>setAgent</function>) + </para> + </listitem> + + <listitem> + <para> + ORG (<function>addOrganization</function>) + </para> + </listitem> + + <listitem> + <para> + NOTE (<function>setNote</function>) + </para> + </listitem> + + <listitem> + <para> + REV (<function>setRevision</function>) + </para> + </listitem> + + <listitem> + <para> + SOUND (<function>setSound</function>) + </para> + </listitem> + + <listitem> + <para> + URL (<function>setURL</function>) + </para> + </listitem> + + <listitem> + <para> + KEY (<function>setKey</function>) + </para> + </listitem> + + </itemizedlist> + </listitem> + </itemizedlist> + + + + <para> + La spécification <literal>3.0</literal> utilisent les LF pour terminer les lignes + (<literal>\n</literal>). + Elle permet les composants et les paramètres suivants : + </para> + + <itemizedlist> + <listitem> + <para> + Paramètres : + </para> + <itemizedlist> + <listitem> + <para> + TYPE : n'importe quel type de la version 2.1, ou bien n'importe quelle valeur utilisant les caractères + a-z, A-Z, 0-9, et le tiret (-). + </para> + </listitem> + + <listitem> + <para> + ENCODING : 8BIT et B ("binary"). + </para> + </listitem> + + <listitem> + <para> + VALUE : BINARY, PHONE-NUMBER, TEXT, URI, UTC-OFFSET, ou VCARD. + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para> + Composants et méthodes : + </para> + <itemizedlist> + <listitem> + <para> + VERSION (<function>setVersion</function>) + </para> + </listitem> + + <listitem> + <para> + FN (<function>setFormattedName</function>) + </para> + </listitem> + + <listitem> + <para> + N (<function>setName</function>) + </para> + </listitem> + + <listitem> + <para> + NAME (<function>setSourceName</function>) + </para> + </listitem> + + <listitem> + <para> + SOURCE (<function>setSource</function>) + </para> + </listitem> + + <listitem> + <para> + NICKNAME (<function>addNickname</function>) + </para> + </listitem> + + <listitem> + <para> + PHOTO (<function>setPhoto</function>) + </para> + </listitem> + + <listitem> + <para> + BDAY (<function>setBirthday</function>) + </para> + </listitem> + + <listitem> + <para> + ADR (<function>addAddress</function>) + </para> + </listitem> + + <listitem> + <para> + LABEL (<function>addLabel</function>) + </para> + </listitem> + + <listitem> + <para> + TEL (<function>addTelephone</function>) + </para> + </listitem> + + <listitem> + <para> + EMAIL (<function>addEmail</function>) + </para> + </listitem> + + <listitem> + <para> + MAILER (<function>setMailer</function>) + </para> + </listitem> + + <listitem> + <para> + TZ (<function>setTZ</function>) + </para> + </listitem> + + <listitem> + <para> + GEO (<function>setGeo</function>) + </para> + </listitem> + + <listitem> + <para> + TITLE (<function>setTitle</function>) + </para> + </listitem> + + <listitem> + <para> + ROLE (<function>setRole</function>) + </para> + </listitem> + + <listitem> + <para> + LOGO (<function>setLogo</function>) + </para> + </listitem> + + <listitem> + <para> + AGENT (<function>setAgent</function>) + </para> + </listitem> + + <listitem> + <para> + ORG (<function>addOrganization</function>) + </para> + </listitem> + + <listitem> + <para> + CATEGORIES (<function>addCategories</function>) + </para> + </listitem> + + <listitem> + <para> + NOTE (<function>setNote</function>) + </para> + </listitem> + + <listitem> + <para> + PRODID (<function>setProductID</function>) + </para> + </listitem> + + <listitem> + <para> + REV (<function>setRevision</function>) + </para> + </listitem> + + <listitem> + <para> + SORT-STRING (<function>setSortString</function>) + </para> + </listitem> + + <listitem> + <para> + SOUND (<function>setSound</function>) + </para> + </listitem> + + <listitem> + <para> + UID (<function>setUniqueID</function>) + </para> + </listitem> + + <listitem> + <para> + URL (<function>setURL</function>) + </para> + </listitem> + + <listitem> + <para> + CLASS (<function>setClass</function>) + </para> + </listitem> + + <listitem> + <para> + KEY (<function>setKey</function>) + </para> + </listitem> + </itemizedlist> + </listitem> + </itemizedlist> + + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -46,4 +532,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/fr/package/html/html-template-it.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/html/html-template-it.xml diff -u peardoc/fr/package/html/html-template-it.xml:1.3 peardoc/fr/package/html/html-template-it.xml:1.4 --- peardoc/fr/package/html/html-template-it.xml:1.3 Thu Nov 30 19:31:34 2006 +++ peardoc/fr/package/html/html-template-it.xml Sun Dec 10 07:23:12 2006 @@ -1,24 +1,27 @@ -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.3 Maintainer: moosh Status: ready --> -<!-- Credits: ThomasMoulard --> +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: moosh Status: ready --> + <sect1 id="package.html.html-template-it"> <title>HTML_Template_IT</title> &package.html.html-template-it.intro; - &package.html.html-template-it.get; &package.html.html-template-it.html-template-it; - &package.html.html-template-it.loadtemplatefile; + &package.html.html-template-it.get; + &package.html.html-template-it.getglobalvariables; + &package.html.html-template-it.loadtemplatefile; &package.html.html-template-it.parse; &package.html.html-template-it.parsecurrentblock; &package.html.html-template-it.setcurrentblock; - &package.html.html-template-it.setroot; - &package.html.html-template-it.setoption; - &package.html.html-template-it.settemplate; - &package.html.html-template-it.setvariable; - &package.html.html-template-it.show; - &package.html.html-template-it.touchblock; - - </sect1> + &package.html.html-template-it.setroot; + &package.html.html-template-it.setoption; + &package.html.html-template-it.settemplate; + &package.html.html-template-it.setvariable; + &package.html.html-template-it.show; + &package.html.html-template-it.touchblock; + +</sect1> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -37,4 +40,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/fr/package/networking/net-ping/net-ping.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/fr/package/networking/net-ping/net-ping.xml diff -u peardoc/fr/package/networking/net-ping/net-ping.xml:1.2 peardoc/fr/package/networking/net-ping/net-ping.xml:1.3 --- peardoc/fr/package/networking/net-ping/net-ping.xml:1.2 Wed Jun 29 21:15:27 2005 +++ peardoc/fr/package/networking/net-ping/net-ping.xml Sun Dec 10 07:23:12 2006 @@ -1,5 +1,7 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: colder Status: ready --> +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> + <refentry id="package.networking.net-ping.net-ping"> <refnamediv> <refname>Net_Ping::Net_Ping()</refname> @@ -20,14 +22,12 @@ <refsect1 id="package.networking.net-ping.net-ping.desc"> &title.desc; <para> - Constructeur + Utilisez <classname>Net_Ping</classname>::<function>factory</function> + plutôt que d'utiliser ce constructeur directement. </para> - </refsect1> - <refsect1 id="package.networking.net-ping.net-ping.note"> - &title.note; - &note.canstatic; - </refsect1> + </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -46,5 +46,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/fr/package/networking/net-ping/ping.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/fr/package/networking/net-ping/ping.xml diff -u peardoc/fr/package/networking/net-ping/ping.xml:1.1 peardoc/fr/package/networking/net-ping/ping.xml:1.2 --- peardoc/fr/package/networking/net-ping/ping.xml:1.1 Thu Jun 2 18:24:01 2005 +++ peardoc/fr/package/networking/net-ping/ping.xml Sun Dec 10 07:23:12 2006 @@ -1,76 +1,76 @@ -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: colder Status: ready --> +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> + <refentry id="package.networking.net-ping.ping"> - <refnamediv> - <refname>Net_Ping::ping()</refname> - <refpurpose>Execute une commande Ping</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/Ping.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>&type.string; - <function>Net_Ping::ping</function></funcdef> - <paramdef>&type.string; - <parameter>host</parameter></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ping.ping.desc"> - &title.desc; - <para> - Execute une commande Ping. - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.ping.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>&type.string; $host</parameter> - Le nom du serveur ou une adresse IP - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.ping.return"> - &title.returns; - <para> - <parameter>&type.string;</parameter> - - Le message retourné par la commande Ping. - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.ping.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ping.ping.example"> - &title.example; - <example> - <title>Envoyer une requête Ping</title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>Net_Ping::ping()</refname> + <refpurpose>Exécute une commande Ping</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/Ping.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>&type.string; + <function>Net_Ping::ping</function></funcdef> + <paramdef>&type.string; + <parameter>host</parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ping.ping.desc"> + &title.desc; + <para> + Execute une commande Ping. + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.ping.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>&type.string; $host</parameter> - Le nom du serveur ou une adresse IP + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.ping.return"> + &title.returns; + <para> + <parameter>&type.string;</parameter> - + Le message retourné par la commande Ping. + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.ping.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ping.ping.example"> + &title.example; + <example> + <title>Envoyer une requête Ping</title> + <programlisting role="php"> +<![CDATA[ <?php - -require_once 'Net/Ping.php' ; - -$ping = new Net_Ping; -$ping->setArgs(array("count" => 5, - "size" => 32, - "ttl" => 512 - ) - ); -var_dump($ping->ping("example.com")); - +require_once "Net/Ping.php"; +$ping = Net_Ping::factory(); +if (PEAR::isError($ping)) { + echo $ping->getMessage(); +} else { + $ping->setArgs(array('count' => 2)); + var_dump($ping->ping('example.com')); +} ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -89,5 +89,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/fr/package/networking/net-ping/setargs.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/fr/package/networking/net-ping/setargs.xml diff -u peardoc/fr/package/networking/net-ping/setargs.xml:1.2 peardoc/fr/package/networking/net-ping/setargs.xml:1.3 --- peardoc/fr/package/networking/net-ping/setargs.xml:1.2 Fri Jul 22 06:24:44 2005 +++ peardoc/fr/package/networking/net-ping/setargs.xml Sun Dec 10 07:23:12 2006 @@ -1,131 +1,133 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: colder Status: ready --> +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> + <refentry id="package.networking.net-ping.setargs"> - <refnamediv> - <refname>Net_Ping::setArgs()</refname> - <refpurpose>Assigne les arguments pour la commande Ping</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/Ping.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>&type.bool; - <function>Net_Ping::setArgs</function></funcdef> - <paramdef>&type.array; - <parameter>$args</parameter></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ping.setargs.desc"> - &title.desc; - <para> - Assigne les arguments pour la commande Ping - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.setargs.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>&type.array; $args</parameter> - - un tableau contenant les arguments à assigner. - <table> - <title>Arguments disponibles</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Index</entry> - <entry>Description</entry> - <entry><emphasis>PAS</emphasis> supporté sous</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>count</quote></entry> - <entry>Nombre de paquets Ping à envoyer.</entry> - <entry></entry> - </row> - <row> - <entry><quote>quiet</quote></entry> - <entry>Niveau d'abondance textuelle de la châine retournée.</entry> - <entry>Windows</entry> - </row> - <row> - <entry><quote>iface</quote></entry> - <entry></entry> - <entry>FreeBSD, Linux, Windows</entry> - </row> - <row> - <entry><quote>ttl</quote></entry> - <entry></entry> - <entry></entry> - </row> - <row> - <entry><quote>timeout</quote></entry> - <entry>Temps à attendre avant de déclarer "injoignable"</entry> - <entry></entry> - </row> - <row> - <entry><quote>size</quote></entry> - <entry>Taille du paquet Ping</entry> - <entry>FreeBSD, Darwin, Linux, Windows</entry> - </row> - </tbody> - </tgroup> - </table> - - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.setargs.return"> - &title.returns; - <para> - <parameter>&type.bool;</parameter> - - &return.success-pearerror; - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.setargs.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Code d'erreur</entry> - <entry>Message d'erreur</entry> - <entry>Raison</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry>&null;</entry> - <entry> - <constant>PING_INVALID_ARGUMENTS</constant> - </entry> - <entry> - Un argument envoyé n'a pas été accepté. - </entry> - <entry> - Contrôlez l'orthographe du nom de l'argument et vérifiez qu'il est disponible sur votre système. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ping.setargs.note"> - &title.note; - &note.notstatic; - </refsect1> - </refentry> + <refnamediv> + <refname>Net_Ping::setArgs()</refname> + <refpurpose>Assigne les arguments pour la commande Ping</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/Ping.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>&type.bool; + <function>Net_Ping::setArgs</function></funcdef> + <paramdef>&type.array; + <parameter>$args</parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ping.setargs.desc"> + &title.desc; + <para> + Assigne les arguments pour la commande Ping + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.setargs.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>&type.array; $args</parameter> - + un tableau contenant les arguments à assigner. + <table> + <title>Arguments disponibles</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Index</entry> + <entry>Description</entry> + <entry><emphasis>PAS</emphasis> supporté sous</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>count</quote></entry> + <entry>Nombre de paquets Ping à envoyer.</entry> + <entry></entry> + </row> + <row> + <entry><quote>quiet</quote></entry> + <entry>Niveau d'abondance textuelle de la châine retournée.</entry> + <entry>Windows</entry> + </row> + <row> + <entry><quote>iface</quote></entry> + <entry></entry> + <entry>FreeBSD, Linux, Windows</entry> + </row> + <row> + <entry><quote>ttl</quote></entry> + <entry></entry> + <entry></entry> + </row> + <row> + <entry><quote>timeout</quote></entry> + <entry>Temps à attendre avant de déclarer "injoignable"</entry> + <entry></entry> + </row> + <row> + <entry><quote>size</quote></entry> + <entry>Taille du paquet Ping</entry> + <entry>FreeBSD, Darwin, Linux, Windows</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.setargs.return"> + &title.returns; + <para> + <parameter>&type.bool;</parameter> - + &return.success-pearerror; + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.setargs.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Code d'erreur</entry> + <entry>Message d'erreur</entry> + <entry>Raison</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry>&null;</entry> + <entry> + <constant>PING_INVALID_ARGUMENTS</constant> + </entry> + <entry> + Un argument envoyé n'a pas été accepté. + </entry> + <entry> + Contrôlez l'orthographe du nom de l'argument et vérifiez qu'il est disponible sur votre système. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ping.setargs.note"> + &title.note; + &note.notstatic; + </refsect1> +</refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -144,5 +146,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file
« previous php.pear.doc (#9038) next »