cvs: peardoc /en/package/structures/structures-datagrid datasources.xml rendering.xml

From: Date: Sat, 30 Sep 2006 07:30:41 +0000
Subject: cvs: peardoc /en/package/structures/structures-datagrid datasources.xml rendering.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8548@lists.php.net to get a copy of this message
wiesemann Sat Sep 30 07:30:41 2006 UTC Modified files: /peardoc/en/package/structures/structures-datagrid datasources.xml rendering.xml Log: - remove outdated information; add links to the new pages with more up-to-date information - fix some errors (spacing, case) - add links to methods

http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/datasources.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/datasources.xml diff -u peardoc/en/package/structures/structures-datagrid/datasources.xml:1.6 peardoc/en/package/structures/structures-datagrid/datasources.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/datasources.xml:1.6 Thu Jun 29 22:04:28 2006 +++ peardoc/en/package/structures/structures-datagrid/datasources.xml Sat Sep 30 07:30:41 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.structures.structures-datagrid.datasources"> <!-- FIXME There's something very wrong in this document. It has a terrible style... And it contains obsolete informations. --> @@ -10,10 +10,10 @@ <refsect1> <title>Description</title> <para> - A DataSource has a rather self-explanatory name ; however, a - DataSource Driver in context to the DataGrid can become a very essential - key to your software. A DataSource Driver will interact with your data - source directly, such as a DB_DataObject or DB_Result object and handle + A DataSource has a rather self-explanatory name; however, a + DataSource driver in context to the DataGrid can become a very essential + key to your software. A DataSource driver will interact with your data + source directly, such as a DB_DataObject or a MDB2 query and handle all of the paging and sorting code for you, resulting in very few lines of code that you will need to write. </para> @@ -28,68 +28,27 @@ <link linkend="package.structures.structures-datagrid.structures-datagrid.bind"><function>bind</function></link> method will attempt to detect the datasource type and may not be 100% accurate. Because of this chance for error, you may - choose to use the bindDataSource method where you can specifically define - the datasource driver to use. This method is also the method of choice - if you are building your own custom DataSource Driver. + choose to use the <link + linkend="package.structures.structures-datagrid.structures-datagrid.binddatasource"><function>bindDataSource</function></link> + method where you can specifically define the datasource driver to use. + This method is also the method of choice if you are building your own + custom DataSource driver. </para> </refsect1> <refsect1> - <title>Currently Available DataSource Drivers</title> + <title>Currently available DataSource drivers</title> <para> - The following listed drivers are currently packaged in with Structures_DataGrid. + A list with the currently available DataSources can be found on the + <link linkend="package.structures.structures-datagrid.structures-datagrid-datasource">overview + page</link>. + </para> + <para> + Please also note the following FAQ entry: <link + linkend="package.structures.structures-datagrid.faq.content">Which + DataSource drivers are recommended?</link> </para> - <refsect2> - <title>PEAR::DB_DataObject Object</title> - <para> - The DataObject is the most optimal DataSource for the datagrid because - it allows the datagrid to only fetch the necessary records upon - rendering. Please note that when binding to a dataobject, do not run - the fetch method prior since the datagrid will run the fetch method - during the rendering. - </para> - </refsect2> - <refsect2> - <title>PEAR::DB_Result Object</title> - <para> - When using the DB_Result object, please keep in mind that the sorting - will not be automatic and must be done in the SQL directly. Also the - paging will not be optimized since your entire result set will be - limitied. It is best to implement the LIMIT clause manually unless - your database platform does not support this. - </para> - </refsect2> - <refsect2> - <title>XML File</title> - <para> - XML can simply be presented via the DataGrid. You can bind the - Datagrid to a URL directly or via the contents of the XML file. - </para> - </refsect2> - <refsect2> - <title>CSV File</title> - <para> - A CSV file can simply be presented via the DataGrid. You can bind the - Datagrid to a URL directly or via the contents of the CSV file. - </para> - </refsect2> - <refsect2> - <title>RSS File</title> - <para> - An RSS feed can simply be presented via the DataGrid. You can bind the - Datagrid to a URL directly or via the contents of the RSS file. - </para> - </refsect2> - <refsect2> - <title>Array</title> - <para> - The core data type that the datagrid uses is an Array. The Datagrid - maintains it's data in a 2-dimension associative array. The array keys - are uses as the column names. This of couse can be changed by - specifying the columns directly. - </para> - </refsect2> </refsect1> -</refentry> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/rendering.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/rendering.xml diff -u peardoc/en/package/structures/structures-datagrid/rendering.xml:1.2 peardoc/en/package/structures/structures-datagrid/rendering.xml:1.3 --- peardoc/en/package/structures/structures-datagrid/rendering.xml:1.2 Wed Jun 28 22:06:39 2006 +++ peardoc/en/package/structures/structures-datagrid/rendering.xml Sat Sep 30 07:30:41 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.structures.structures-datagrid.rendering"> <refnamediv> <refname>Rendering the output</refname> @@ -10,8 +10,8 @@ <para> The DataGrid offers the ability to build out your data in a grid format in an HTML table, which is the most common method due to the nature of - PHP. However, the DataGrid offers many other ways of outputting the - tabular data structure such as an Excel Spreadsheet or an XML document. + PHP. However, the DataGrid offers many other ways of outputting the + tabular data structure such as an Excel spreadsheet or an XML document. </para> </refsect1> <refsect1> @@ -19,70 +19,21 @@ <para> To use a different renderer other than the HTML Table, you can simply change the renderer by either defining the renderer in the Constructor - method or by using the setrenderer method. The parameter for defining - the renderer is specified by one of the renderer constants. + method or by using the <link + linkend="package.structures.structures-datagrid.structures-datagrid.setrenderer"><function>setRenderer</function></link> + method. The parameter for defining the renderer is specified by one of + the renderer constants. </para> </refsect1> <refsect1> - <title>Currently Available Renderers</title> + <title>Currently available renderers</title> <para> - The following listed are the renderers that are available in the - DataGrid package. + A list with the currently available renderers can be found on the + <link linkend="package.structures.structures-datagrid.structures-datagrid-renderer">overview + page</link>. </para> - <refsect2> - <title>HTML Table (Default)</title> - <para> - This renderer uses the PEAR::HTML_Table package to create an HTML table - of the data. - </para> - </refsect2> - <refsect2> - <title>XML</title> - <para> - This will allow you to render the datagrid as an XML document. - </para> - </refsect2> - <refsect2> - <title>Excel Spreadsheet</title> - <para> - This renderer uses the PEAR::Spreadsheet_Excel_Writer package to create - an Excel Spreadsheet. - </para> - </refsect2> - <refsect2> - <title>XUL</title> - <para> - XUL is a language developed by the Mozilla Foundation for creating rich - user-interfaces. One component of XUL is a DataGrid like structure. - With this renderer you can easily add an XUL listbox to you XUL - application. - </para> - </refsect2> - <refsect2> - <title>Console</title> - <para> - This renderer uses the PEAR::Console_Table package and will allow you - to create a console table very easily. - </para> - </refsect2> - <refsect2> - <title>Smarty</title> - <para> - With the use of the Smarty renderer you can add a DataGrid to your - Smarty template. - </para> - </refsect2> - <refsect2> - <title>CSV</title> - <para> - With this renderer you can convert the format of your data. With this - option you can, for example, input an XML file into the datagrid, - present it via HTML and then allow the end-user to download it via a - CSV file. This can lead to countless ways for converting data formats. - </para> - </refsect2> </refsect1> -</refentry> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.pear.doc (#8548) next »