cvs: peardoc /fr/package/fileformats/contact-vcard-parse intro.xml

From: Date: Sat, 11 Nov 2006 22:56:23 +0000
Subject: cvs: peardoc /fr/package/fileformats/contact-vcard-parse intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8770@lists.php.net to get a copy of this message
moosh Sat Nov 11 22:56:23 2006 UTC Modified files: /peardoc/fr/package/fileformats/contact-vcard-parse intro.xml Log: sync to en-1.3 cweiske : Converted Paul Jones' Wiki documentation for Contact_Vcard* into peardoc. http://cvs.php.net/viewvc.cgi/peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml diff -u peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml:1.3 peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml:1.4 --- peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml:1.3 Thu Nov 9 16:38:49 2006 +++ peardoc/fr/package/fileformats/contact-vcard-parse/intro.xml Sat Nov 11 22:56:23 2006 @@ -1,29 +1,81 @@ -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 Maintainer: moosh Status: ready --> - <refentry id="package.fileformats.contact-vcard-parse.intro"> - <refnamediv> - <refname>Introduction</refname> - <refpurpose> - Analyse des fichiers vCard 2.1 et 3.0. - </refpurpose> - </refnamediv> - <refsect1> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: moosh Status: to check --> +<refentry id="package.fileformats.contact-vcard-parse.intro"> + <refnamediv> + <refname>Introduction</refname> + <refpurpose> + Analyse des fichiers vCard 2.1 et 3.0. + Construit (cr&eacute;e) et r&eacute;cup&egrave;re les blocs + texte des vCard 2.1 et 3.0 text. + </refpurpose> + </refnamediv> + <refsect1 id="package.fileformats.contact-vcard-parse.intro.desc"> <title>Description de Contact_Vcard_Parse</title> - <para> - Ce package vous permet d'analyser des fichiers vCard ainsi que ces blocs - de texte et de r&eacute;cup&eacute;rer un tableau - d'&eacute;l&eacute;ments de chaque vCard - d'un fichier ou d'un texte. - </para> - <para> - La documentation compl&egrave;te en ligne est disponible - <ulink url="http://ciaweb.net/yawiki/index.php?area=Contact_Vcard">ici</ulink>. - </para> - </refsect1> - </refentry> - - + <para> + Voici quelques infos express pour les impatients. :-) + </para> + <itemizedlist> + <listitem> + <para> + R&eacute;cuperez Contact_Vcard_Parse depuis PEAR. + </para> + </listitem> + <listitem> + <para> + Ajoutez une inclusion de + <filename>Contact_Vcard_Parse.php</filename> dans votre script PHP. + </para> + </listitem> + <listitem> + <para> + Instantiez un nouvel objet <classname>Contact_Vcard_Parse</classname>. + </para> + </listitem> + <listitem> + <para> + Utilisez la m&eacute;thode <function>fromFile</function> pour parser + tout fichier qui pourrait contenir un ou plusieurs vCards in it; + essayez le fichier <filename>infoDeLaCarte.vcf</filename> pour commencer + <classname>Contact_Vcard_Parse</classname> fonctionne autant avec + les fichiers vCard 2.1 et 3.0 . + </para> + </listitem> + <listitem> + <para> + Utilisez un <function>print_r</function> pour voir + le tableau r&eacute;sultant du fichier pars&eacute;. + </para> + </listitem> + <listitem> + <para> + Utilisez ces donn&eacute;es comme vous le voulez, + par exemple en les pla&ccedil;ant dans une table. + </para> + </listitem> + </itemizedlist> + <example> + <title>Exemple de code</title> + <programlisting role="php"><![CDATA[ +<?php + // inclusion de la classe + require_once 'Contact_Vcard_Parse.php'; + // instantiez un objet du parseur + $parse = new Contact_Vcard_Parse(); + + // on parse le fichier vCard + // et on stocke les donn&eacute;es dans $cardinfo + $infoDeLaCarte = $parse->fromFile('exemple.vcf'); + + // regardez le tableau de la carte de visite + echo '<pre>'; + print_r($infoDeLaCarte); + echo '</pre>'; + +?>]]></programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml

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