cvs: peardoc /en/package/structures/structures-bibtex intro.xml
| From: | Elmar Pitschke | Date: | Sat, 15 Jul 2006 16:08:53 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-bibtex intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8148@lists.php.net to get a copy of this message | ||
hugoki Sat Jul 15 16:08:53 2006 UTC
Modified files:
/peardoc/en/package/structures/structures-bibtex intro.xml
Log:
- Some "real" Documentation
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-bibtex/intro.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/structures/structures-bibtex/intro.xml
diff -u peardoc/en/package/structures/structures-bibtex/intro.xml:1.1
peardoc/en/package/structures/structures-bibtex/intro.xml:1.2
--- peardoc/en/package/structures/structures-bibtex/intro.xml:1.1 Tue Jul 11 13:09:54 2006
+++ peardoc/en/package/structures/structures-bibtex/intro.xml Sat Jul 15 16:08:53 2006
@@ -1,21 +1,43 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.structures.structures-bibtex.intro">
<refnamediv>
<refname>Introduction</refname>
<refpurpose>
- Parsing BibTex Data to an array and exporting to BibTex and RTF.
+ Introduction to <classname>Structures_BibTex</classname>
</refpurpose>
</refnamediv>
- <refsect1>
- <title>Structures_BibTex Description</title>
+
+ <refsect1 id="package.structures.structures-bibtex.intro.overview">
+ <title>Overview</title>
<para>
- Provides methods to access information stored in a BibTex file.
+ This package provides methods to access information stored in a BibTex file. During parsing it
+ is possible to let the data be validated. In addition. the creation of BibTex Strings as well
+ as RTF Strings is also supported.
</para>
+ </refsect1>
- <para>
- Unfortunately, complete documentation is not available at the moment.
- </para>
+ <refsect1 id="package.structures.structures-bibtex.intro.examples">
+ <title>A few examples</title>
+
+ <example>
+ <title>Loading a BibTex File and printing the parsed array</title>
+ <programlisting role="php">
+ <![CDATA[
+require_once ('Structures/BibTex.php');
+$foo = new Structures_BibTex();
+$ret=$foo->loadFile('foo.bib');
+if (PEAR::isError($ret)) {
+ print $ret->getMessage();
+ die();
+}
+$foo->parse();
+print '<pre>';
+print_r($foo->data);
+print '</pre>';
+ ]]>
+ </programlisting>
+ </example>
</refsect1>
</refentry>