cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid faq.xml
/en/package/structures/structures-datagrid/structures-datagrid dump.xml enablestreaming.xml
/en/package/structures/structures-datagrid/structures-datagrid-datasource dbquery.xml mdb2.xml
/en/package/structures/structures-datagrid/structures-datagrid-renderer csv.xml

From: Date: Tue, 21 Nov 2006 21:07:44 +0000
Subject: cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid faq.xml
/en/package/structures/structures-datagrid/structures-datagrid dump.xml enablestreaming.xml
/en/package/structures/structures-datagrid/structures-datagrid-datasource dbquery.xml mdb2.xml
/en/package/structures/structures-datagrid/structures-datagrid-renderer csv.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8856@lists.php.net to get a copy of this message
wiesemann Tue Nov 21 21:07:44 2006 UTC Added files: /peardoc/en/package/structures/structures-datagrid/structures-datagrid enablestreaming.xml Modified files: /peardoc/en/package/structures structures-datagrid.xml /peardoc/en/package/structures/structures-datagrid faq.xml /peardoc/en/package/structures/structures-datagrid/structures-datagrid dump.xml /peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource dbquery.xml mdb2.xml /peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer csv.xml Log: - new page for new streaming feature - new FAQ for streaming feature - update DBQuery and MDB2 driver docs (UNION counting fix) - typo fixes

http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid.xml?r1=1.38&r2=1.39&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.38 peardoc/en/package/structures/structures-datagrid.xml:1.39 --- peardoc/en/package/structures/structures-datagrid.xml:1.38 Sat Oct 14 20:33:16 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Tue Nov 21 21:07:44 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.38 $ --> +<!-- $Revision: 1.39 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -39,6 +39,7 @@ &package.structures.structures-datagrid.installation; &package.structures.structures-datagrid.datasources; &package.structures.structures-datagrid.rendering; + &package.structures.structures-datagrid.streaming; &package.structures.structures-datagrid.formatter; &package.structures.structures-datagrid.example-simple; &package.structures.structures-datagrid.example-advanced; @@ -46,7 +47,7 @@ &package.structures.structures-datagrid.custom-renderers; </sect2> -<!-- DataGrid Documentation --> +<!-- DataGrid documentation --> <sect2 id="package.structures.structures-datagrid.class-structures-datagrid"> <title>Class Structures_DataGrid</title> &package.structures.structures-datagrid.structures-datagrid.structures-datagrid; @@ -56,6 +57,8 @@ &package.structures.structures-datagrid.structures-datagrid.binddatasource; &package.structures.structures-datagrid.structures-datagrid.build; &package.structures.structures-datagrid.structures-datagrid.datasourcefactory; +&package.structures.structures-datagrid.structures-datagrid.dump; +&package.structures.structures-datagrid.structures-datagrid.enablestreaming; &package.structures.structures-datagrid.structures-datagrid.fill; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyfield; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyname; @@ -81,7 +84,7 @@ &package.structures.structures-datagrid.structures-datagrid.sortrecordset; </sect2> -<!-- Column Documentation --> +<!-- Column documentation --> <sect2 id="package.structures.structures-datagrid.class-structures-datagrid-column"> <title>Class Structures_DataGrid_Column</title> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/faq.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/faq.xml diff -u peardoc/en/package/structures/structures-datagrid/faq.xml:1.3 peardoc/en/package/structures/structures-datagrid/faq.xml:1.4 --- peardoc/en/package/structures/structures-datagrid/faq.xml:1.3 Sun Oct 1 14:15:21 2006 +++ peardoc/en/package/structures/structures-datagrid/faq.xml Tue Nov 21 21:07:44 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.structures.structures-datagrid.faq"> <refnamediv> <refname>FAQ</refname> @@ -158,6 +158,27 @@ </para> </answer> </qandaentry> + <qandaentry> + <question> + <para> + Streaming is a nice feature. Why isn't streaming the default behaviour? + </para> + </question> + <answer> + <para> + Streaming support in Structures_DataGrid is intended to be used with + large datasets. But it can also be used with very small datasets without + loss of performance. + </para> + <para> + As always, there is an exception to this rule: When you're using one of the + DataSource drivers that fetch data from a database and you have queries that + need a lot of time for computation of the results, you should not use + streaming, as running such a complex query multiple times will need even + more time, of course. + </para> + </answer> + </qandaentry> </qandaset> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml?r1=1.9&r2=1.10&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml:1.9 peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml:1.10 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml:1.9 Wed Oct 25 10:29:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/dump.xml Tue Nov 21 21:07:44 2006 @@ -4,7 +4,7 @@ <function>Structures_DataGrid::dump</function> </refname> <refpurpose> - Method used for debuging purposes only. Displays a dump of the DataGrid + Method used for debugging purposes only. Displays a dump of the DataGrid object. </refpurpose> </refnamediv> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.3 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.4 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.3 Wed Oct 25 10:17:24 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml Tue Nov 21 21:07:44 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBQuery</refname> @@ -84,7 +84,7 @@ <para> If you use complex queries (e.g. with complex joins or with aliases), $datagrid-&gt;getRecordCount() might return a wrong result. For the case of - GROUP BY or DISTINCT in your queries, this driver already has special + GROUP BY, UNION, or DISTINCT in your queries, this driver already has special handling. However, if you observe wrong record counts, you need to specify a special query that returns only the number of records (e.g. 'SELECT COUNT(*) FROM ...') as an additional option 'count_query' to the bind() call. http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.3 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.4 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.3 Wed Oct 25 10:17:24 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml Tue Nov 21 21:07:44 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2"> <refnamediv> <refname>Structures_DataGrid_DataSource_MDB2</refname> @@ -84,7 +84,7 @@ <para> If you use complex queries (e.g. with complex joins or with aliases), $datagrid-&gt;getRecordCount() might return a wrong result. For the case of - GROUP BY or DISTINCT in your queries, this driver already has special + GROUP BY, UNION, or DISTINCT in your queries, this driver already has special handling. However, if you observe wrong record counts, you need to specify a special query that returns only the number of records (e.g. 'SELECT COUNT(*) FROM ...') as an additional option 'count_query' to the bind() call. http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml:1.3 peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml:1.4 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml:1.3 Thu Sep 21 11:58:25 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml Tue Nov 21 21:07:44 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.csv"> <refnamediv> <refname>Structures_DataGrid_Renderer_CSV</refname> @@ -114,9 +114,17 @@ <entry>true</entry> </row> <row> + <entry>saveToFile</entry> + <entry>boolean</entry> + <entry>Whether the output should be saved on the local filesystem. Please + note that the 'filename' option must be given if this optio is set to + true.</entry> + <entry>false</entry> + </row> + <row> <entry>useQuotes</entry> <entry>mixed</entry> - <entry>Whether or not to encapuslate the values with the enclosure value. + <entry>Whether or not to encapsulate the values with the enclosure value. true: always, false: never, &quot;auto&quot;: when needed</entry> <entry>&quot;auto&quot;</entry> </row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/enablestreaming.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/enablestreaming.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/enablestreaming.xml <refentry id="package.structures.structures-datagrid.structures-datagrid.enablestreaming"> <refnamediv> <refname> <function>Structures_DataGrid::enableStreaming</function> </refname> <refpurpose> Enable streaming support for reading from DataSources and writing with Renderers and set the buffer size (number of records) </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;Structures/DataGrid.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid::enableStreaming</function> </funcdef> <paramdef> integer <parameter> <optional>$bufferSize = 500</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.enablestreaming.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.enablestreaming.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$bufferSize</parameter> </term> <listitem> <para>Number of records that should be buffered</para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.enablestreaming.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.enablestreaming.note"> &title.note; &note.notstatic; </refsect1> </refentry>
« previous php.pear.doc (#8856) next »