Re: First PHP Documentor Generation
| From: | Greg Beaver | Date: | Sat, 21 Feb 2004 01:40:00 +0000 |
| Subject: | Re: First PHP Documentor Generation | ||
| References: | 1 2 3 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-2623@lists.php.net to get a copy of this message | ||
Hi David,
Nice first attempt. A little known fact about the peardoc2 converter: you have to modify a value in phpDocumentor.ini. This file is located in the php_dir
pear config-get php_dir
Change Program_Root to XML
Program_Root = XML
This will cause:
<funcsynopsisinfo>
require_once 'XML/Parser.php';
</funcsynopsisinfo>
instead of what it currently has. I didn't notice this until using the peardoc2 converter for ages, so don't feel bad - there is no other way to get the XML/ in front of it because of the way phpDocumentor determines what the top-level directory is. This will, of course, change in a future version.
Greg
David Costa wrote:
Hello Everyone, After spending some time with php documentor I have now my first generation of XML docs. Looks fine to me. On my development box I have the possibility to run make test, so I would not commit anything that could possibly brake up the manual build ;) Any in house pear-guru willing to take a peak ? I would really appreciate some feedback so perhaps tomorrow I can move on with more ;D Ta muchly ------------------------------------------------------------------------ <!-- $Revision 1.0$ --> <refentry id="package.xml.xml-parser.xml-parser.endhandler"> <refnamediv> <refname><function>XML_Parser::endHandler</function></refname> <refpurpose></refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis><funcsynopsisinfo> require_once '/Parser.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_Parser::endHandler</function></funcdef> <paramdef>mixed <parameter>$xp</parameter></paramdef> <paramdef>mixed <parameter>$elem</parameter></paramdef> </funcprototype></funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-parser.xml-parser.endhandler.desc">&title.desc; ¬documented;</refsect1> <refsect1 id="package.xml.xml-parser.xml-parser.endhandler.param"> &title.param; <para><variablelist> <varlistentry> <term> &type.mixed; <parameter>$xp</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$elem</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist></para> </refsect1> <refsect1 id="package.xml.xml-parser.xml-parser.endhandler.throws"> &title.throws;<para> <emphasis>throws</emphasis> no exceptions thrown</para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.endhandler.abstract"> &title.abstract;<para> <emphasis>abstract</emphasis> </para> </refsect1><refsect1 id="package.xml.xml-parser.xml-parser.endhandler.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- 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 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 --> ------------------------------------------------------------------------ <!-- $Revision: 1.1 $ --> <sect1 id="package.xml.xml-parser"> <title>xml-parser</title> <refentry id="package.xml.xml-parser.xml-parser-summary"> <refnamediv> <refname>Class Summary <classname>XML_Parser</classname></refname> <refpurpose>XML Parser class. This is an XML parser based on PHP's "xml" extension, based on the bundled expat library.</refpurpose> </refnamediv> <refsect1> <title>XML Parser class. This is an XML parser based on PHP's "xml" extension, based on the bundled expat library.</title> ¬documented; </refsect1> <refsect1> <title>Class Trees for <classname>XML_Parser</classname></title> <para> <itemizedlist> <listitem><para> PEAR <itemizedlist> <listitem><para> XML_Parser</para></listitem></itemizedlist> </para></listitem> </itemizedlist> </para> </refsect1> </refentry> &package.xml.xml-parser.xml-parser.xml-parser; &package.xml.xml-parser.xml-parser.endhandler; &package.xml.xml-parser.xml-parser.funcendhandler; &package.xml.xml-parser.xml-parser.funcstarthandler; &package.xml.xml-parser.xml-parser.parse; &package.xml.xml-parser.xml-parser.parsestring; &package.xml.xml-parser.xml-parser.setinput; &package.xml.xml-parser.xml-parser.setinputfile; &package.xml.xml-parser.xml-parser.setmode; &package.xml.xml-parser.xml-parser.starthandler; <refentry id="package.xml.xml-parser.xml-parser-error-summary"> <refnamediv> <refname>Class Summary <classname>XML_Parser_Error</classname></refname> <refpurpose></refpurpose> </refnamediv> <refsect1> <title></title> ¬documented; </refsect1> <refsect1> <title>Class Trees for <classname>XML_Parser_Error</classname></title> <para> <itemizedlist> <listitem><para> PEAR_Error <itemizedlist> <listitem><para> XML_Parser_Error</para></listitem></itemizedlist> </para></listitem> </itemizedlist> </para> </refsect1> </refentry> &package.xml.xml-parser.xml-parser-error.xml-parser-error; </sect1> <!-- Generated by phpDocumentor v 1.3.0RC2 http://www.phpdoc.org --> <!-- 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 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 --> ------------------------------------------------------------------------ <!-- $Revision: 1.0 $ --> <refentry id="package.xml.xml-parser.xml-parser.parse"> <refnamediv> <refname><function>XML_Parser::parse</function></refname> <refpurpose>Central parsing function.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis><funcsynopsisinfo> require_once '/Parser.php'; </funcsynopsisi nfo> <funcprototype> <funcdef>boolean <function>XML_Parser::parse</function></funcdef><paramdef></paramdef></funcprototype> </funcsynopsis> </refsynopsisdiv><refsect1 id="package.xml.xml-parser.xml-parser.parse.desc">&title.desc; ¬documented;</refsect1> <refsect1 id="package.xml.xml-parser.xml-parser.parse.returns"> &title.returns;<para> <emphasis>returns</emphasis> true on success</para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.parse.see"> &title.see;<para> <emphasis>see</emphasis> <link linkend="package.xml.xml-parser.xml-parser.parsestring"><function>XML_Parser::parseString</function></link></para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.parse.throws"> &title.throws;<para> <emphasis>throws</emphasis> XML_Parser_Error</para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.parse.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- 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 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 --> ------------------------------------------------------------------------ <!-- $Revision 1.0 $ --> <refentry id="package.xml.xml-parser.xml-parser.parsestring"> <refnamediv> <refname><function>XML_Parser::parseString</function></refname> <refpurpose>Parses a string.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis><funcsynopsisinfo> require_once '/Parser.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>XML_Parser::parseString</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> <paramdef>boolean <parameter> <optional>$eof = &false;</optional></parameter></paramdef> </funcprototype></funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-parser.xml-parser.parsestring.desc">&title.desc; ¬documented;</refsect1> <refsect1 id="package.xml.xml-parser.xml-parser.parsestring.param"> &title.param; <para><variablelist> <varlistentry> <term> &type.string; <parameter>$data</parameter> </term> <listitem> <para> XML data </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$eof</parameter> </term> <listitem> <para> ??? </para> </listitem> </varlistentry> </variablelist></para> </refsect1> <refsect1 id="package.xml.xml-parser.xml-parser.parsestring.returns"> &title.returns;<para> <emphasis>returns</emphasis> true on success or a string with the xml parser error</para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.parsestring.throws"> &title.throws;<para> <emphasis>throws</emphasis> XML_Parser_Error</para></refsect1><refsect1 id="package.xml.xml-parser.xml-parser.parsestring.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- 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 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 --> ------------------------------------------------------------------------ David Costa