philip Fri Feb 2 17:52:34 2007 UTC
Modified files:
/phpdoc/scripts xml_proto.php
Log:
WS for XML output, and added purpose (the description found within
the prototype sources) to the description role
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/xml_proto.php?r1=1.48&r2=1.49&diff_format=u
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.48 phpdoc/scripts/xml_proto.php:1.49
--- phpdoc/scripts/xml_proto.php:1.48 Sun Jan 28 17:27:34 2007
+++ phpdoc/scripts/xml_proto.php Fri Feb 2 17:52:34 2007
@@ -16,7 +16,7 @@
| Authors: Brad House <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: xml_proto.php,v 1.48 2007/01/28 17:27:34 philip Exp $
+ $Id: xml_proto.php,v 1.49 2007/02/02 17:52:34 philip Exp $
*/
/*
@@ -231,7 +231,7 @@
" <refnamediv>\n" .
" <refname>$funcname</refname>\n" .
" <refpurpose>$purpose</refpurpose>\n" .
- " </refnamediv>\n" .
+ " </refnamediv>\n\n" .
" <refsect1 role=\"description\">\n" .
" &reftitle.description;\n" .
" <methodsynopsis>\n" .
@@ -254,9 +254,12 @@
fwrite($fp, " <void/>\n");
}
- fwrite($fp, " </methodsynopsis>\n\n" .
- " &warn.undocumented.func;\n\n" .
- " </refsect1>\n" .
+ fwrite($fp, " </methodsynopsis>\n" .
+ " &warn.undocumented.func;\n" .
+ " <para>\n" .
+ " $purpose\n" .
+ " </para>\n" .
+ " </refsect1>\n\n" .
" <refsect1 role=\"parameters\">\n" .
" &reftitle.parameters;\n" .
" <para>\n"
@@ -277,7 +280,7 @@
$tmp .= " </variablelist>\n";
fwrite($fp, $tmp);
}
- fwrite ($fp, " </para>\n </refsect1>\n");
+ fwrite ($fp, " </para>\n\n </refsect1>\n");
fwrite($fp,
" <refsect1 role=\"returnvalues\">\n" .
" &reftitle.returnvalues;\n" .
@@ -295,7 +298,7 @@
" When does this function throw E_* level errors, or exceptions?\n" .
" </para>\n" .
" </refsect1>\n" .
- " -->\n\n"
+ " -->\n"
);
fwrite($fp,
"\n <!-- Use when a CHANGELOG exists\n" .
@@ -320,7 +323,7 @@
" </informaltable>\n" .
" </para>\n" .
" </refsect1>\n" .
- " -->\n\n"
+ " -->\n"
);
fwrite($fp,
"\n <!-- Use when examples exist\n" .
@@ -352,7 +355,7 @@
" </example>\n" .
" </para>\n" .
" </refsect1>\n" .
- " -->\n\n"
+ " -->\n"
);
fwrite($fp,
"\n <!-- Use when adding See Also links\n" .
@@ -365,7 +368,7 @@
" </simplelist>\n" .
" </para>\n" .
" </refsect1>\n" .
- " -->\n\n"
+ " -->\n"
);
fwrite($fp,
"\n</refentry>\n\n" .