cvs: phpdoc /en/reference/gnupg book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Sat, 22 Dec 2007 01:02:27 +0000
Subject: cvs: phpdoc /en/reference/gnupg book.xml constants.xml examples.xml reference.xml setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-723@lists.php.net to get a copy of this message
bjori Sat Dec 22 01:02:27 2007 UTC Modified files: /phpdoc/en/reference/gnupg book.xml examples.xml setup.xml constants.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from <extname>.intro to intro.<extname> - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved the examples to its own chapter NOTE: The chapter ID is gnupg.examples, the former gnupg.examples ID has been renamed to gnupg.examples-clearsign NOTE: The gnupg.keylistiterator section was moved to the examples.xml too and changed to be an <example>, not <section> - Moved the requiremnts section to setup.xml - Moved the configure sentity to setup.xml NOTE: The notes are still in refrence.xml, altough the gnupg.notes ID was removed

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gnupg/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/gnupg/book.xml diff -u /dev/null phpdoc/en/reference/gnupg/book.xml:1.2 --- /dev/null Sat Dec 22 01:02:27 2007 +++ phpdoc/en/reference/gnupg/book.xml Sat Dec 22 01:02:27 2007 @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl --> +<!-- State: beta --> + +<book xml:id="book.gnupg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>gnupg</title> + + <!-- {{{ preface --> + <preface xml:id="intro.gnupg"> + &reftitle.intro; + <para> + This module allows you to interact with <link + xlink:href="http://www.gnupg.org/">gnupg</link>. + </para> + </preface> + <!-- }}} --> + + &reference.gnupg.setup; + &reference.gnupg.constants; + &reference.gnupg.examples; + <!-- FIXME: Looks like this extension defines a class.. --> + &reference.gnupg.reference; + +</book> + +<!-- 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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gnupg/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/gnupg/examples.xml diff -u /dev/null phpdoc/en/reference/gnupg/examples.xml:1.2 --- /dev/null Sat Dec 22 01:02:27 2007 +++ phpdoc/en/reference/gnupg/examples.xml Sat Dec 22 01:02:27 2007 @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<chapter xml:id="gnupg.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="gnupg.examples-clearsign"> + <title>Clearsign text</title> + <para> + This example will clearsign a given text. + </para> + <example> + <title>gnupg clearsign example (procedural)</title> + <programlisting role="php"> +<![CDATA[ +<?php +// init gnupg +$res = gnupg_init(); +// not really needed. Clearsign is default +gnupg_setsignmode($res,GNUPG_SIG_MODE_CLEAR); +// add key with passphrase 'test' for signing +gnupg_addsignkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test"); +// sign +$signed = gnupg_sign($res,"just a test"); +echo $signed; +?> +]]> + </programlisting> + </example> + <example> + <title>gnupg clearsign example (OO)</title> + <programlisting role="php"> +<![CDATA[ +<?php +// new class +$gnupg = new gnupg(); +// not really needed. Clearsign is default +$gnupg->setsignmode(gnupg::SIG_MODE_CLEAR); +// add key with passphrase 'test' for signing +$gnupg->addsignkey("8660281B6051D071D94B5B230549F9DC851566DC","test"); +// sign +$signed = $gnupg->sign("just a test"); +echo $signed; +?> +]]> + </programlisting> + </example> + <example xml:id="gnupg.keylistiterator"> + <title>keylistiterator</title> + <para> + This extension also comes with an Iterator for your keyring. + </para> + <programlisting role="php"> +<![CDATA[ +<?php +// create a new iterator for listing all public keys that matches 'example' +$iterator = new gnupg_keylistiterator("example"); +foreach($iterator as $fingerprint => $userid){ + echo $fingerprint." -> ".$userid."\n"; +} +?> +]]> + </programlisting> + </example> + </section> +</chapter> + +<!-- 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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gnupg/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/gnupg/setup.xml diff -u /dev/null phpdoc/en/reference/gnupg/setup.xml:1.2 --- /dev/null Sat Dec 22 01:02:27 2007 +++ phpdoc/en/reference/gnupg/setup.xml Sat Dec 22 01:02:27 2007 @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="gnupg.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="gnupg.requirements"> + &reftitle.required; + <para> + The gnupg extension requires PHP 4.3. + To use this extension in an OO style, PHP 5 is required. + </para> + <para> + This extension requires the <link + xlink:href="http://www.gnupg.org/(en)/download/index.html#gpgme">gpgme + library</link> + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.gnupg.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="gnupg.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="gnupg.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- 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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gnupg/constants.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/gnupg/constants.xml diff -u phpdoc/en/reference/gnupg/constants.xml:1.4 phpdoc/en/reference/gnupg/constants.xml:1.5 --- phpdoc/en/reference/gnupg/constants.xml:1.4 Wed Jun 20 22:24:31 2007 +++ phpdoc/en/reference/gnupg/constants.xml Sat Dec 22 01:02:27 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id='gnupg.constants' xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5 $ --> +<appendix xml:id='gnupg.constants' xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <variablelist> <varlistentry> @@ -279,7 +279,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gnupg/reference.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/gnupg/reference.xml diff -u phpdoc/en/reference/gnupg/reference.xml:1.10 phpdoc/en/reference/gnupg/reference.xml:1.11 --- phpdoc/en/reference/gnupg/reference.xml:1.10 Mon Dec 10 17:06:03 2007 +++ phpdoc/en/reference/gnupg/reference.xml Sat Dec 22 01:02:27 2007 @@ -1,39 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- Purpose: utilspec.nontext --> -<!-- Membership: pecl --> -<!-- State: beta --> +<!-- $Revision: 1.11 $ --> + <reference xml:id="ref.gnupg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>gnupg &Functions;</title> - <titleabbrev>gnupg</titleabbrev> <partintro> - <section xml:id="gnupg.intro"> - &reftitle.intro; - <para> - This module allows you to interact with <link - xlink:href="http://www.gnupg.org/">gnupg</link>. - </para> - </section> - - <section xml:id="gnupg.requirements"> - &reftitle.required; - <para> - The gnupg extension requires PHP 4.3. - To use this extension in an OO style, PHP 5 is required. - </para> - <para> - This extension requires the <link - xlink:href="http://www.gnupg.org/(en)/download/index.html#gpgme">gpgme - library</link> - </para> - </section> - - &reference.gnupg.configure; - - &reference.gnupg.constants; - - <section xml:id="gnupg.notes"> &reftitle.notes; <para> This extension makes use of the keyring of the current user. This keyring @@ -49,69 +20,7 @@ ...). This documentation uses the fingerprint in all examples. </para> - </section> - - <section xml:id="gnupg.keylistiterator"> - <title>keylistiterator</title> - <para> - This extension also comes with an Iterator for your keyring. - <programlisting role="php"> -<![CDATA[ -<?php -// create a new iterator for listing all public keys that matches 'example' -$iterator = new gnupg_keylistiterator("example"); -foreach($iterator as $fingerprint => $userid){ - echo $fingerprint." -> ".$userid."\n"; -} -?> -]]> - </programlisting> - </para> - </section> - - <section xml:id="gnupg.examples"> - &reftitle.examples; - <para> - This example will clearsign a given text. - </para> - <example> - <title>gnupg clearsign example (procedural)</title> - <programlisting role="php"> -<![CDATA[ -<?php -// init gnupg -$res = gnupg_init(); -// not really needed. Clearsign is default -gnupg_setsignmode($res,GNUPG_SIG_MODE_CLEAR); -// add key with passphrase 'test' for signing -gnupg_addsignkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test"); -// sign -$signed = gnupg_sign($res,"just a test"); -echo $signed; -?> -]]> - </programlisting> - </example> - <example> - <title>gnupg clearsign example (OO)</title> - <programlisting role="php"> -<![CDATA[ -<?php -// new class -$gnupg = new gnupg(); -// not really needed. Clearsign is default -$gnupg->setsignmode(gnupg::SIG_MODE_CLEAR); -// add key with passphrase 'test' for signing -$gnupg->addsignkey("8660281B6051D071D94B5B230549F9DC851566DC","test"); -// sign -$signed = $gnupg->sign("just a test"); -echo $signed; -?> -]]> - </programlisting> - </example> - </section> - </partintro> + </partintro> &reference.gnupg.entities.functions;
« previous php.doc.cvs (#723) next »