cvs: peardoc /de/package php.xml /de/package/fileformats/contact-vcard-build intro.xml /de/package/fileformats/contact-vcard-parse intro.xml
| From: | Alexander Merz | Date: | Tue, 06 Feb 2007 20:57:35 +0000 |
| Subject: | cvs: peardoc /de/package php.xml /de/package/fileformats/contact-vcard-build intro.xml /de/package/fileformats/contact-vcard-parse intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9406@lists.php.net to get a copy of this message | ||
alexmerz Tue Feb 6 20:57:35 2007 UTC
Modified files:
/peardoc/de/package php.xml
/peardoc/de/package/fileformats/contact-vcard-build intro.xml
/peardoc/de/package/fileformats/contact-vcard-parse intro.xml
Log:
sync to en
http://cvs.php.net/viewvc.cgi/peardoc/de/package/php.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/de/package/php.xml diff -u peardoc/de/package/php.xml:1.5 peardoc/de/package/php.xml:1.6 --- peardoc/de/package/php.xml:1.5 Sun Jan 28 22:55:21 2007 +++ peardoc/de/package/php.xml Tue Feb 6 20:57:34 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: alexmerz Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: alexmerz Status: ready --> <chapter id="package.php"> @@ -12,6 +12,7 @@ &blankpagehack; + &package.php.php-archive; &package.php.phpdocumentor; &package.php.php-codesniffer; &package.php.php-compat; http://cvs.php.net/viewvc.cgi/peardoc/de/package/fileformats/contact-vcard-build/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/de/package/fileformats/contact-vcard-build/intro.xml diff -u peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.2 peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.3 --- peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.2 Mon Jun 13 13:40:24 2005 +++ peardoc/de/package/fileformats/contact-vcard-build/intro.xml Tue Feb 6 20:57:35 2007 @@ -1,28 +1,519 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: alexmerz Status: ready --> - <refentry id="package.fileformats.contact-vcard-build.intro"> - <refnamediv> - <refname>Einführung</refname> - <refpurpose> - Erzeugt und holt Textblöcke gemäß des vCard-Standards Version 2.1 und 3.0. - </refpurpose> - </refnamediv> - <refsect1> - <title>Beschreibung von Contact_Vcard_Build</title> - <para> - Das Package erlaubt die Erzeugung und das Einlesen von elektronischen Visitenkarten - gemäß des vCard-Standards der Versionen 2.1 oder 3.0. - </para> - <para> - Die vollständige Dokumentation ist verfügbar auf - <ulink url="http://wiki.ciaweb.net/yawiki/index.php?wiki=Contact_Vcard"> - http://wiki.ciaweb.net/yawiki/index.php?wiki=Contact_Vcard</ulink> - </para> - </refsect1> - </refentry> - - +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: alexmerz Status: ready --> +<refentry id="package.fileformats.contact-vcard-build.intro"> + <refnamediv> + <refname>Einführung</refname> + <refpurpose> + Erzeugt und holt Textblöcke gemäß des vCard-Standards Version 2.1 und 3.0. + </refpurpose> + </refnamediv> + <refsect1> + <title>Beschreibung von Contact_Vcard_Build</title> + <para> + Das Package erlaubt die Erzeugung und das Einlesen von elektronischen Visitenkarten + gemäß des vCard-Standards der Versionen 2.1 oder 3.0. + </para> + </refsect1> + <refsect1> + <title>Schnell-Einführung</title> + <itemizedlist> + <listitem> + <para> + Installieren Sie <classname>Contact_Vcard_Build</classname> von PEAR. + </para> + </listitem> + <listitem> + <para> + Inkludieren Sie <filename>Contact_Vcard_Build.php</filename> in Ihrem PHP-Skript. + </para> + </listitem> + <listitem> + <para> + Erzeugen Sie ein neues <classname>Contact_Vcard_Build</classname>-Objekt, + standardmäßig behandelt es vCard-Version 3.0, die Version 2.1 wird aber + ebenfalls unterstützt. + </para> + </listitem> + <listitem> + <para> + Setzen oder ergänzen Sie die Parameter, die Sie in der vCard benötigen. + </para> + </listitem> + <listitem> + <para> + Holen Sie die vollständige vCard, und verwenden Sie <function>print_r</function> + um sich ihren Inhalt anzuschauen. + </para> + </listitem> + </itemizedlist> + + <example> + <title>Beispiel-Code</title> + <programlisting role="php"><![CDATA[ +<?php + + // Die Klassendatei inkludieren + require_once 'Contact_Vcard_Build.php'; + + // Neues Objekt erzeugen für Version 3.0 + $vcard = new Contact_Vcard_Build(); + + // Einen formatierten Namen angeben + $vcard->setFormattedName('Bolivar Shagnasty'); + + // Den Namen in strukturierter Form übergeben + $vcard->setName('Shagnasty', 'Bolivar', 'Odysseus', + 'Mr.', 'III'); + + // Ergänzen einer Email-Adresse am Arbeitsplatz. Beachten Sie, dass + // die Adresse zuerst und dann ihre Bedeutung übergeben -- + // Contact_Vcard_Build ist clever genug beide Eigenschaften + // zusammen zu führen. + $vcard->addEmail('boshag@example.com'); + $vcard->addParam('TYPE', 'WORK'); + + // Ergänzen einer heimatlichen Email-Adresse, die auch bevorzugt + // verwendet werden soll + $vcard->addEmail('bolivar@example.net'); + $vcard->addParam('TYPE', 'HOME'); + $vcard->addParam('TYPE', 'PREF'); + + // Ergänzen einer Arbeitsaddresse + $vcard->addAddress('POB 101', 'Suite 202', '123 Main', + 'Beverly Hills', 'CA', '90210', 'US'); + $vcard->addParam('TYPE', 'WORK'); + + // Holen der vCard und die Ausgabe des Inhalts + $text = $vcard->fetch(); + echo '<pre>'; + print_r($text); + echo '</pre>'; +?> +]]></programlisting> + </example> + </refsect1> + <refsect1> + <title>Unterschiede zwischen vCard 2.1 und vCard 3.0</title> + <para> + Die <literal>2.1</literal>-Spezifikation benutzt CRLF um Zeilen zu beenden + (<literal>\r\n</literal>). Folgende Komponenten und Parameter sind + erlaubt: + </para> + + <itemizedlist> + <listitem> + <para> + Parameter: + </para> + <itemizedlist> + + <listitem> + <para> + <emphasis>TYPE</emphasis> darf sein 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, oder PGP. + </para> + </listitem> + + <listitem> + <para> + <emphasis>ENCODING</emphasis> darf sein 7BIT, 8BIT, BASE64, QUOTED-PRINTABLE + </para> + </listitem> + + <listitem> + <para> + <emphasis>VALUE</emphasis> darf sein INLINE, CONTENT-ID, CID, URL, VCARD + </para> + </listitem> + + <listitem> + <para> + <emphasis>CHARSET</emphasis> darf jede ISO-Zeichensatz sein. + </para> + </listitem> + + <listitem> + <para> + <emphasis>LANGUAGE</emphasis> darf jeden Wert enthalten, der + die Zeichen a-z, A-Z, 0-9 und Strich (-) enthält. + </para> + </listitem> + + </itemizedlist> + </listitem> + + <listitem> + <para> + Komponenten und zugeordnete Methoden + </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> + Die <literal>3.0</literal>-Spezifikation benutzt nur LF um Zeilen zu beenden + (<literal>\n</literal>). + Folgende Komponenten und Parameter sind erlaubt: + </para> + + <itemizedlist> + <listitem> + <para> + Parameter: + </para> + <itemizedlist> + <listitem> + <para> + TYPE darf jeden der 2.1 TYPE-Parameter aufnehmen und jeden anderen Wert + solange er nur die Zeichen a-z, A-Z, 0-9 und Strich (-) enthält. + </para> + </listitem> + + <listitem> + <para> + ENCODING darf 8BIT und B ("binary") sein. + </para> + </listitem> + + <listitem> + <para> + VALUE darf sein BINARY, PHONE-NUMBER, TEXT, URI, UTC-OFFSET oder VCARD. + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para> + Komponenten und Methoden: + </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: http://cvs.php.net/viewvc.cgi/peardoc/de/package/fileformats/contact-vcard-parse/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/de/package/fileformats/contact-vcard-parse/intro.xml diff -u peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.2 peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.3 --- peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.2 Mon Jun 13 13:40:24 2005 +++ peardoc/de/package/fileformats/contact-vcard-parse/intro.xml Tue Feb 6 20:57:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: alexmerz Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: alexmerz Status: ready --> <refentry id="package.fileformats.contact-vcard-parse.intro"> <refnamediv> <refname>Einführung</refname> @@ -9,22 +9,70 @@ </refpurpose> </refnamediv> <refsect1> - <title>Beschreibung Contact_Vcard_Parse</title> - <para> - Erlaubt die Auswertung von vCard-Dateien und Textblöcken - und liefert ein Array der Elemente für - jede vCard, die in einer Datei oder Textblock - gefunden wurde. - </para> - <para> - Die vollständige Dokumentation ist verfügbar auf - <ulink url="http://ciaweb.net/free/contact_vcard_parse.php"> - http://ciaweb.net/free/contact_vcard_parse.php</ulink> - </para> + <title>Beschreibung</title> + <itemizedlist> + <listitem> + <para> + Installieren Sie <classname>Contact_Vcard_Parse</classname> von PEAR. + </para> + </listitem> + <listitem> + <para> + Inkludieren Sie <filename>Contact_Vcard_Parse.php</filename> in Ihrem PHP-Skript. + </para> + </listitem> + <listitem> + <para> + Erzeugen Sie ein <classname>Contact_Vcard_Parse</classname>-Objekt. + </para> + </listitem> + <listitem> + <para> + Verwenden Sie die <function>fromFile</function>-Methode, um eine + Datei zu laden, die ein oder mehrere vCards enthält; führ eine + Test können Sie die Beispiel-Datei <filename>sample.vcf</filename> + verwenden. + <classname>Contact_Vcard_Parse</classname> kommt mit den + Standards vCard 2.1 und vCard3.0 vCard zu recht. + </para> + </listitem> + <listitem> + <para> + Benutzen Sie <function>print_r</function> um sich das erzeugte Daten-Array + zu betrachten, das von der Datei erzeugt wurde. + </para> + </listitem> + <listitem> + <para> + Die Daten können Sie zu eigenen Zwecken weiterverwenden. + </para> + </listitem> + </itemizedlist> + <example> + <title>Beispiel-Code</title> + <programlisting role="php"><![CDATA[ +<?php + // Inkludieren der Klassendatei + require_once 'Contact_Vcard_Parse.php'; + + // Erzeugen des Parser-Objektes + $parse = new Contact_Vcard_Parse(); + + // Parsen Sie die vCard-Datei und speichern der Daten + // in $cardinfo + $cardinfo = $parse->fromFile('sample.vcf'); + + // Betrachten der gelesenen Daten + echo '<pre>'; + print_r($cardinfo); + echo '</pre>'; + +?>]]></programlisting> + </example> </refsect1> </refentry> - + <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/peardoc/de/package/php.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/de/package/php.xml diff -u peardoc/de/package/php.xml:1.5 peardoc/de/package/php.xml:1.6 --- peardoc/de/package/php.xml:1.5 Sun Jan 28 22:55:21 2007 +++ peardoc/de/package/php.xml Tue Feb 6 20:57:34 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: alexmerz Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: alexmerz Status: ready --> <chapter id="package.php"> @@ -12,6 +12,7 @@ &blankpagehack; + &package.php.php-archive; &package.php.phpdocumentor; &package.php.php-codesniffer; &package.php.php-compat; http://cvs.php.net/viewvc.cgi/peardoc/de/package/fileformats/contact-vcard-build/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/de/package/fileformats/contact-vcard-build/intro.xml diff -u peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.2 peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.3 --- peardoc/de/package/fileformats/contact-vcard-build/intro.xml:1.2 Mon Jun 13 13:40:24 2005 +++ peardoc/de/package/fileformats/contact-vcard-build/intro.xml Tue Feb 6 20:57:35 2007 @@ -1,28 +1,519 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: alexmerz Status: ready --> - <refentry id="package.fileformats.contact-vcard-build.intro"> - <refnamediv> - <refname>Einführung</refname> - <refpurpose> - Erzeugt und holt Textblöcke gemäß des vCard-Standards Version 2.1 und 3.0. - </refpurpose> - </refnamediv> - <refsect1> - <title>Beschreibung von Contact_Vcard_Build</title> - <para> - Das Package erlaubt die Erzeugung und das Einlesen von elektronischen Visitenkarten - gemäß des vCard-Standards der Versionen 2.1 oder 3.0. - </para> - <para> - Die vollständige Dokumentation ist verfügbar auf - <ulink url="http://wiki.ciaweb.net/yawiki/index.php?wiki=Contact_Vcard"> - http://wiki.ciaweb.net/yawiki/index.php?wiki=Contact_Vcard</ulink> - </para> - </refsect1> - </refentry> - - +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: alexmerz Status: ready --> +<refentry id="package.fileformats.contact-vcard-build.intro"> + <refnamediv> + <refname>Einführung</refname> + <refpurpose> + Erzeugt und holt Textblöcke gemäß des vCard-Standards Version 2.1 und 3.0. + </refpurpose> + </refnamediv> + <refsect1> + <title>Beschreibung von Contact_Vcard_Build</title> + <para> + Das Package erlaubt die Erzeugung und das Einlesen von elektronischen Visitenkarten + gemäß des vCard-Standards der Versionen 2.1 oder 3.0. + </para> + </refsect1> + <refsect1> + <title>Schnell-Einführung</title> + <itemizedlist> + <listitem> + <para> + Installieren Sie <classname>Contact_Vcard_Build</classname> von PEAR. + </para> + </listitem> + <listitem> + <para> + Inkludieren Sie <filename>Contact_Vcard_Build.php</filename> in Ihrem PHP-Skript. + </para> + </listitem> + <listitem> + <para> + Erzeugen Sie ein neues <classname>Contact_Vcard_Build</classname>-Objekt, + standardmäßig behandelt es vCard-Version 3.0, die Version 2.1 wird aber + ebenfalls unterstützt. + </para> + </listitem> + <listitem> + <para> + Setzen oder ergänzen Sie die Parameter, die Sie in der vCard benötigen. + </para> + </listitem> + <listitem> + <para> + Holen Sie die vollständige vCard, und verwenden Sie <function>print_r</function> + um sich ihren Inhalt anzuschauen. + </para> + </listitem> + </itemizedlist> + + <example> + <title>Beispiel-Code</title> + <programlisting role="php"><![CDATA[ +<?php + + // Die Klassendatei inkludieren + require_once 'Contact_Vcard_Build.php'; + + // Neues Objekt erzeugen für Version 3.0 + $vcard = new Contact_Vcard_Build(); + + // Einen formatierten Namen angeben + $vcard->setFormattedName('Bolivar Shagnasty'); + + // Den Namen in strukturierter Form übergeben + $vcard->setName('Shagnasty', 'Bolivar', 'Odysseus', + 'Mr.', 'III'); + + // Ergänzen einer Email-Adresse am Arbeitsplatz. Beachten Sie, dass + // die Adresse zuerst und dann ihre Bedeutung übergeben -- + // Contact_Vcard_Build ist clever genug beide Eigenschaften + // zusammen zu führen. + $vcard->addEmail('boshag@example.com'); + $vcard->addParam('TYPE', 'WORK'); + + // Ergänzen einer heimatlichen Email-Adresse, die auch bevorzugt + // verwendet werden soll + $vcard->addEmail('bolivar@example.net'); + $vcard->addParam('TYPE', 'HOME'); + $vcard->addParam('TYPE', 'PREF'); + + // Ergänzen einer Arbeitsaddresse + $vcard->addAddress('POB 101', 'Suite 202', '123 Main', + 'Beverly Hills', 'CA', '90210', 'US'); + $vcard->addParam('TYPE', 'WORK'); + + // Holen der vCard und die Ausgabe des Inhalts + $text = $vcard->fetch(); + echo '<pre>'; + print_r($text); + echo '</pre>'; +?> +]]></programlisting> + </example> + </refsect1> + <refsect1> + <title>Unterschiede zwischen vCard 2.1 und vCard 3.0</title> + <para> + Die <literal>2.1</literal>-Spezifikation benutzt CRLF um Zeilen zu beenden + (<literal>\r\n</literal>). Folgende Komponenten und Parameter sind + erlaubt: + </para> + + <itemizedlist> + <listitem> + <para> + Parameter: + </para> + <itemizedlist> + + <listitem> + <para> + <emphasis>TYPE</emphasis> darf sein 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, oder PGP. + </para> + </listitem> + + <listitem> + <para> + <emphasis>ENCODING</emphasis> darf sein 7BIT, 8BIT, BASE64, QUOTED-PRINTABLE + </para> + </listitem> + + <listitem> + <para> + <emphasis>VALUE</emphasis> darf sein INLINE, CONTENT-ID, CID, URL, VCARD + </para> + </listitem> + + <listitem> + <para> + <emphasis>CHARSET</emphasis> darf jede ISO-Zeichensatz sein. + </para> + </listitem> + + <listitem> + <para> + <emphasis>LANGUAGE</emphasis> darf jeden Wert enthalten, der + die Zeichen a-z, A-Z, 0-9 und Strich (-) enthält. + </para> + </listitem> + + </itemizedlist> + </listitem> + + <listitem> + <para> + Komponenten und zugeordnete Methoden + </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> + Die <literal>3.0</literal>-Spezifikation benutzt nur LF um Zeilen zu beenden + (<literal>\n</literal>). + Folgende Komponenten und Parameter sind erlaubt: + </para> + + <itemizedlist> + <listitem> + <para> + Parameter: + </para> + <itemizedlist> + <listitem> + <para> + TYPE darf jeden der 2.1 TYPE-Parameter aufnehmen und jeden anderen Wert + solange er nur die Zeichen a-z, A-Z, 0-9 und Strich (-) enthält. + </para> + </listitem> + + <listitem> + <para> + ENCODING darf 8BIT und B ("binary") sein. + </para> + </listitem> + + <listitem> + <para> + VALUE darf sein BINARY, PHONE-NUMBER, TEXT, URI, UTC-OFFSET oder VCARD. + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para> + Komponenten und Methoden: + </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: http://cvs.php.net/viewvc.cgi/peardoc/de/package/fileformats/contact-vcard-parse/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/de/package/fileformats/contact-vcard-parse/intro.xml diff -u peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.2 peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.3 --- peardoc/de/package/fileformats/contact-vcard-parse/intro.xml:1.2 Mon Jun 13 13:40:24 2005 +++ peardoc/de/package/fileformats/contact-vcard-parse/intro.xml Tue Feb 6 20:57:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: alexmerz Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: alexmerz Status: ready --> <refentry id="package.fileformats.contact-vcard-parse.intro"> <refnamediv> <refname>Einführung</refname> @@ -9,22 +9,70 @@ </refpurpose> </refnamediv> <refsect1> - <title>Beschreibung Contact_Vcard_Parse</title> - <para> - Erlaubt die Auswertung von vCard-Dateien und Textblöcken - und liefert ein Array der Elemente für - jede vCard, die in einer Datei oder Textblock - gefunden wurde. - </para> - <para> - Die vollständige Dokumentation ist verfügbar auf - <ulink url="http://ciaweb.net/free/contact_vcard_parse.php"> - http://ciaweb.net/free/contact_vcard_parse.php</ulink> - </para> + <title>Beschreibung</title> + <itemizedlist> + <listitem> + <para> + Installieren Sie <classname>Contact_Vcard_Parse</classname> von PEAR. + </para> + </listitem> + <listitem> + <para> + Inkludieren Sie <filename>Contact_Vcard_Parse.php</filename> in Ihrem PHP-Skript. + </para> + </listitem> + <listitem> + <para> + Erzeugen Sie ein <classname>Contact_Vcard_Parse</classname>-Objekt. + </para> + </listitem> + <listitem> + <para> + Verwenden Sie die <function>fromFile</function>-Methode, um eine + Datei zu laden, die ein oder mehrere vCards enthält; führ eine + Test können Sie die Beispiel-Datei <filename>sample.vcf</filename> + verwenden. + <classname>Contact_Vcard_Parse</classname> kommt mit den + Standards vCard 2.1 und vCard3.0 vCard zu recht. + </para> + </listitem> + <listitem> + <para> + Benutzen Sie <function>print_r</function> um sich das erzeugte Daten-Array + zu betrachten, das von der Datei erzeugt wurde. + </para> + </listitem> + <listitem> + <para> + Die Daten können Sie zu eigenen Zwecken weiterverwenden. + </para> + </listitem> + </itemizedlist> + <example> + <title>Beispiel-Code</title> + <programlisting role="php"><![CDATA[ +<?php + // Inkludieren der Klassendatei + require_once 'Contact_Vcard_Parse.php'; + + // Erzeugen des Parser-Objektes + $parse = new Contact_Vcard_Parse(); + + // Parsen Sie die vCard-Datei und speichern der Daten + // in $cardinfo + $cardinfo = $parse->fromFile('sample.vcf'); + + // Betrachten der gelesenen Daten + echo '<pre>'; + print_r($cardinfo); + echo '</pre>'; + +?>]]></programlisting> + </example> </refsect1> </refentry> - + <!-- Keep this comment at the end of the file Local variables: