cvs: peardoc /en/package/structures/structures-datagrid intro.xml
| From: | Andrew Nagy | Date: | Wed, 29 Sep 2004 19:17:52 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4907@lists.php.net to get a copy of this message | ||
asnagy Wed Sep 29 15:17:52 2004 EDT
Modified files:
/peardoc/en/package/structures/structures-datagrid intro.xml
Log:
Refined content
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/intro.xml?r1=1.5&r2=1.6&ty=u
Index: peardoc/en/package/structures/structures-datagrid/intro.xml
diff -u peardoc/en/package/structures/structures-datagrid/intro.xml:1.5
peardoc/en/package/structures/structures-datagrid/intro.xml:1.6
--- peardoc/en/package/structures/structures-datagrid/intro.xml:1.5 Wed Sep 29 07:22:38 2004
+++ peardoc/en/package/structures/structures-datagrid/intro.xml Wed Sep 29 15:17:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="package.structures.structures-datagrid.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -10,8 +10,8 @@
<para>
<classname>Structures_DataGrid</classname> is a package with the purpose
of rendering input data in a table for a specific output format. Possible
- output formats are (X)<acronym>HTML</acronym>, <acronym>XML</acronym>
or
- Excel <filename>.xls</filename> files.
+ output formats are (X)<acronym>HTML</acronym>,
<acronym>XML</acronym>,
+ <acronym>XUL</acronym> or Excel <filename>.xls</filename>files.
</para>
<para>
The input data format is independent of the underlying data storage layer:
@@ -34,7 +34,6 @@
<refsect1>
<title>Where to start</title>
<para>
- The purpose behind SDG is to render a tabular structure of data.
So to begin, you will want to find a datasource, commonly you might use a
Database like MySQL or an XML document. You can then easily bind this
datasource to the datagrid, to do so you have 3 options. The first, is to
@@ -43,8 +42,15 @@
as a DB_DataObject or a DB_Result object. To do so, you can use the
bindDataSource method by creating a DataSource object.
The third way is to loop through your record set and add each record
- individually, this practice the least efficient.
+ individually, this practice is the least efficient.
</para>
+ <note>
+ <para>
+ If you bind the datagrid to a datasource that is an object such as a
+ DB_DataObject, you do not need to fetch the data as the DataGrid will
+ handle that for you.
+ </para>
+ </note>
</refsect1>
<refsect1>
<title>Render the output</title>
@@ -55,6 +61,13 @@
format the data should be rendered into. You can render the datagrid in
HTML, XML, XUL or an Excel Spreadsheet.
</para>
+ <note>
+ <para>
+ If you bind the datagrid to a datasource that is an object such as a
+ DB_DataObject, you do not need to fetch the data as the DataGrid will
+ handle that for you.
+ </para>
+ </note>
</refsect1>
</refentry>