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

From: Date: Thu, 07 Apr 2005 15:36:11 +0000
Subject: cvs: peardoc /en/package/structures/structures-datagrid rendering.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5887@lists.php.net to get a copy of this message
asnagy Thu Apr 7 11:36:11 2005 EDT Added files: /peardoc/en/package/structures/structures-datagrid rendering.xml Log: Intial Checkin http://cvs.php.net/co.php/peardoc/en/package/structures/structures-datagrid/rendering.xml?r=1.1&p=1 Index: peardoc/en/package/structures/structures-datagrid/rendering.xml +++ peardoc/en/package/structures/structures-datagrid/rendering.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.rendering"> <refnamediv> <refname>Rendering the output</refname> <refpurpose>What formats can I render the output?</refpurpose> </refnamediv> <refsect1> <title>Description</title> <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. </para> </refsect1> <refsect1> <title>How do I change the formatter?</title> <para> To use a different formatter other than the HTML Table, you can simply change the formatter by either defining the formatter in the Constructor method or by using the setFormatter method. The parameter for defining the formatter is specified by one of the formatter constants. </para> </refsect1> <refsect1> <title>Currently Available Renderers</title> <para> The following listed are the renderers that are available in the DataGrid package. </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> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.pear.doc (#5887) next »