cvs: phpdoc /en/reference/rpmreader book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Philip Olson | Date: | Fri, 21 Dec 2007 20:17:04 +0000 |
| Subject: | cvs: phpdoc /en/reference/rpmreader book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-691@lists.php.net to get a copy of this message | ||
philip Fri Dec 21 20:17:04 2007 UTC
Modified files:
/phpdoc/en/reference/rpmreader book.xml setup.xml examples.xml
reference.xml constants.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml, setup.xml, and examples.xml
- Moved from reference.xml to book.xml:
- The intro text (partintro), and link to various pages
- Moved from reference.xml to setup.xml:
- The rest: requirements, installation, configuration, and resources
- Changed the constants section to be an <appendix>
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/rpmreader/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/book.xml diff -u /dev/null phpdoc/en/reference/rpmreader/book.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/book.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl --> +<!-- State: beta --> + +<book xml:id="book.rpmreader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>RPM Header Reading</title> + + <!-- {{{ preface --> + <preface xml:id="intro.rpmreader"> + &reftitle.intro; + <para> + This module allows you to read the meta information stored in the + headers of a <link xlink:href="&url.redhat;">RedHat</link> + Package Manager (<link xlink:href="&url.rpm;">RPM</link>) + file. + </para> + </preface> + <!-- }}} --> + + &reference.rpmreader.setup; + &reference.rpmreader.constants; + &reference.rpmreader.examples; + &reference.rpmreader.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/rpmreader/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/setup.xml diff -u /dev/null phpdoc/en/reference/rpmreader/setup.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/setup.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="rpmreader.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="rpmreader.requirements"> + &reftitle.required; + <para> + The RPMReader extension requires PHP 5. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.rpmreader.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="rpmreader.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="rpmreader.resources"> + &reftitle.resources; + <para> + There is one resource type used by the RPMReader module. The + resource is a file pointer which identifies the RPM file with + which to work. + </para> + </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/rpmreader/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/examples.xml diff -u /dev/null phpdoc/en/reference/rpmreader/examples.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/examples.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="rpmreader.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +&reftitle.examples; + <section xml:id="rpmreader.examples-basic"> + <title>Basic usage</title> + <para> + This example will open an RPM file and read the name, version, and + release from the RPM file, echo the results, and close the RPM file. + </para> + <example> + <title>Basic RPMReader Example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$filename = "/path/to/file.rpm"; + +// open file +$rpmr = rpm_open($filename); + +// get "Name" tag +$name = rpm_get_tag($rpmr, RPMREADER_NAME); + +// get "Version" tag +$ver = rpm_get_tag($rpmr, RPMREADER_VERSION); + +// get "Release" tag +$rel = rpm_get_tag($rpmr, RPMREADER_RELEASE); + +echo "$name-$ver-$rel<br>\n"; + +// close file +rpm_close($rpmr); + +?> +]]> + </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/rpmreader/reference.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/rpmreader/reference.xml diff -u phpdoc/en/reference/rpmreader/reference.xml:1.4 phpdoc/en/reference/rpmreader/reference.xml:1.5 --- phpdoc/en/reference/rpmreader/reference.xml:1.4 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/rpmreader/reference.xml Fri Dec 21 20:17:04 2007 @@ -1,81 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- Purpose: utilspec.nontext --> -<!-- Membership: pecl --> -<!-- State: beta --> +<!-- $Revision: 1.5 $ --> <reference xml:id="ref.rpmreader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>RPM Header Reading &Functions;</title> <titleabbrev>RPMReader</titleabbrev> - <partintro> - <section xml:id="rpmreader.intro"> - &reftitle.intro; - <para> - This module allows you to read the meta information stored in the - headers of a <link xlink:href="&url.redhat;">RedHat</link> - Package Manager (<link xlink:href="&url.rpm;">RPM</link>) - file. - </para> - </section> - - <section xml:id="rpmreader.requirements"> - &reftitle.required; - <para> - The RPMReader extension requires PHP 5. - </para> - </section> - - &reference.rpmreader.configure; - - <section xml:id="rpmreader.resources"> - &reftitle.resources; - <para> - There is one resource type used by the RPMReader module. The - resource is a file pointer which identifies the RPM file with - which to work. - </para> - </section> - - &reference.rpmreader.constants; - - <section xml:id="rpmreader.examples"> - &reftitle.examples; - <para> - This example will open an RPM file and read the name, version, and - release from the RPM file, echo the results, and close the RPM file. - </para> - <example> - <title>Basic RPMReader Example</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$filename = "/path/to/file.rpm"; - -// open file -$rpmr = rpm_open($filename); - -// get "Name" tag -$name = rpm_get_tag($rpmr, RPMREADER_NAME); - -// get "Version" tag -$ver = rpm_get_tag($rpmr, RPMREADER_VERSION); - -// get "Release" tag -$rel = rpm_get_tag($rpmr, RPMREADER_RELEASE); - -echo "$name-$ver-$rel<br>\n"; - -// close file -rpm_close($rpmr); - -?> -]]> - </programlisting> - </example> - </section> - </partintro> - &reference.rpmreader.entities.functions; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/rpmreader/constants.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/rpmreader/constants.xml diff -u phpdoc/en/reference/rpmreader/constants.xml:1.3 phpdoc/en/reference/rpmreader/constants.xml:1.4 --- phpdoc/en/reference/rpmreader/constants.xml:1.3 Sun Oct 28 00:06:38 2007 +++ phpdoc/en/reference/rpmreader/constants.xml Fri Dec 21 20:17:04 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="rpmreader.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4 $ --> +<appendix xml:id="rpmreader.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -1219,7 +1219,7 @@ </varlistentry> </variablelist> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/rpmreader/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/book.xml diff -u /dev/null phpdoc/en/reference/rpmreader/book.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/book.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl --> +<!-- State: beta --> + +<book xml:id="book.rpmreader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>RPM Header Reading</title> + + <!-- {{{ preface --> + <preface xml:id="intro.rpmreader"> + &reftitle.intro; + <para> + This module allows you to read the meta information stored in the + headers of a <link xlink:href="&url.redhat;">RedHat</link> + Package Manager (<link xlink:href="&url.rpm;">RPM</link>) + file. + </para> + </preface> + <!-- }}} --> + + &reference.rpmreader.setup; + &reference.rpmreader.constants; + &reference.rpmreader.examples; + &reference.rpmreader.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/rpmreader/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/setup.xml diff -u /dev/null phpdoc/en/reference/rpmreader/setup.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/setup.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="rpmreader.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="rpmreader.requirements"> + &reftitle.required; + <para> + The RPMReader extension requires PHP 5. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.rpmreader.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="rpmreader.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="rpmreader.resources"> + &reftitle.resources; + <para> + There is one resource type used by the RPMReader module. The + resource is a file pointer which identifies the RPM file with + which to work. + </para> + </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/rpmreader/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/rpmreader/examples.xml diff -u /dev/null phpdoc/en/reference/rpmreader/examples.xml:1.2 --- /dev/null Fri Dec 21 20:17:04 2007 +++ phpdoc/en/reference/rpmreader/examples.xml Fri Dec 21 20:17:04 2007 @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="rpmreader.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +&reftitle.examples; + <section xml:id="rpmreader.examples-basic"> + <title>Basic usage</title> + <para> + This example will open an RPM file and read the name, version, and + release from the RPM file, echo the results, and close the RPM file. + </para> + <example> + <title>Basic RPMReader Example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$filename = "/path/to/file.rpm"; + +// open file +$rpmr = rpm_open($filename); + +// get "Name" tag +$name = rpm_get_tag($rpmr, RPMREADER_NAME); + +// get "Version" tag +$ver = rpm_get_tag($rpmr, RPMREADER_VERSION); + +// get "Release" tag +$rel = rpm_get_tag($rpmr, RPMREADER_RELEASE); + +echo "$name-$ver-$rel<br>\n"; + +// close file +rpm_close($rpmr); + +?> +]]> + </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/rpmreader/reference.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/rpmreader/reference.xml diff -u phpdoc/en/reference/rpmreader/reference.xml:1.4 phpdoc/en/reference/rpmreader/reference.xml:1.5 --- phpdoc/en/reference/rpmreader/reference.xml:1.4 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/rpmreader/reference.xml Fri Dec 21 20:17:04 2007 @@ -1,81 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- Purpose: utilspec.nontext --> -<!-- Membership: pecl --> -<!-- State: beta --> +<!-- $Revision: 1.5 $ --> <reference xml:id="ref.rpmreader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>RPM Header Reading &Functions;</title> <titleabbrev>RPMReader</titleabbrev> - <partintro> - <section xml:id="rpmreader.intro"> - &reftitle.intro; - <para> - This module allows you to read the meta information stored in the - headers of a <link xlink:href="&url.redhat;">RedHat</link> - Package Manager (<link xlink:href="&url.rpm;">RPM</link>) - file. - </para> - </section> - - <section xml:id="rpmreader.requirements"> - &reftitle.required; - <para> - The RPMReader extension requires PHP 5. - </para> - </section> - - &reference.rpmreader.configure; - - <section xml:id="rpmreader.resources"> - &reftitle.resources; - <para> - There is one resource type used by the RPMReader module. The - resource is a file pointer which identifies the RPM file with - which to work. - </para> - </section> - - &reference.rpmreader.constants; - - <section xml:id="rpmreader.examples"> - &reftitle.examples; - <para> - This example will open an RPM file and read the name, version, and - release from the RPM file, echo the results, and close the RPM file. - </para> - <example> - <title>Basic RPMReader Example</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$filename = "/path/to/file.rpm"; - -// open file -$rpmr = rpm_open($filename); - -// get "Name" tag -$name = rpm_get_tag($rpmr, RPMREADER_NAME); - -// get "Version" tag -$ver = rpm_get_tag($rpmr, RPMREADER_VERSION); - -// get "Release" tag -$rel = rpm_get_tag($rpmr, RPMREADER_RELEASE); - -echo "$name-$ver-$rel<br>\n"; - -// close file -rpm_close($rpmr); - -?> -]]> - </programlisting> - </example> - </section> - </partintro> - &reference.rpmreader.entities.functions; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/rpmreader/constants.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/rpmreader/constants.xml diff -u phpdoc/en/reference/rpmreader/constants.xml:1.3 phpdoc/en/reference/rpmreader/constants.xml:1.4 --- phpdoc/en/reference/rpmreader/constants.xml:1.3 Sun Oct 28 00:06:38 2007 +++ phpdoc/en/reference/rpmreader/constants.xml Fri Dec 21 20:17:04 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="rpmreader.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4 $ --> +<appendix xml:id="rpmreader.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -1219,7 +1219,7 @@ </varlistentry> </variablelist> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: