cvs: peardoc /en/package/structures/structures-datagrid intro.xml
| From: | Andrew Nagy | Date: | Tue, 28 Sep 2004 17:46:13 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4891@lists.php.net to get a copy of this message | ||
asnagy Tue Sep 28 13:46:13 2004 EDT
Modified files:
/peardoc/en/package/structures/structures-datagrid intro.xml
Log:
Added more
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/intro.xml?r1=1.2&r2=1.3&ty=u
Index: peardoc/en/package/structures/structures-datagrid/intro.xml
diff -u peardoc/en/package/structures/structures-datagrid/intro.xml:1.2
peardoc/en/package/structures/structures-datagrid/intro.xml:1.3
--- peardoc/en/package/structures/structures-datagrid/intro.xml:1.2 Fri Sep 17 14:41:29 2004
+++ peardoc/en/package/structures/structures-datagrid/intro.xml Tue Sep 28 13:46:13 2004
@@ -1,46 +1,36 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
-
+<!-- $Revision: 1.3 $ -->
<refentry id="package.structures.structures-datagrid.intro">
-
- <refnamediv>
- <refname>Introduction</refname>
- <refpurpose>
- Renders input data in a table of different formats.
- </refpurpose>
- </refnamediv>
-
- <refsect1>
- <title>Description</title>
-
- <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.
- </para>
- <para>
- The input data format is independent of the underlying data storage
- layer: It does not matter if the data has been selected from a
- database, has been harvested from plain text files or converted from
- a web service call. The data can be sorted and paged, and each cell
- of the table can have a custom look by using <acronym>CSS</acronym>.
- </para>
-
- <note>
- <title>Example data</title>
- <para>
- Some examples in the following sections use data from the
- <literal>world</literal> database, available on the
- <ulink url="&url.mysql.world.download;">MySQL homepage</ulink>.
- (<ulink url="&url.mysql.world.setup">Setup Instructions for
- MySQL</ulink>; should work similar for other database systems.)
- </para>
- </note>
-
- </refsect1>
+ <refnamediv>
+ <refname>Introduction</refname>
+ <refpurpose>What can I do with Structures_DataGrid?</refpurpose>
+ </refnamediv>
+ <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
+ fetch your data into a 2 dimension array and pass it into the bind method.
+ The second way is to bind a record set that is not already an array, such
+ 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.
+ </para>
+ </refsect1>
+ <refsect2>
+ <title>Render the output</title>
+ <para>
+ Once your datagrid has been populated with your records, you have many
+ options on how to manipulate what is to be shown. You can sort the data,
+ choose to show only a certain amount of data per page and also choose what
+ format the data should be rendered into. You can render the datagrid in
+ HTML, XML, XUL or an Excel Spreadsheet.
+ </para>
+ </refsect2>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables: