cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid/structures-datagrid-datasource README
array.xml csv.xml dataobject.xml db.xml dbquery.xml dbtable.xml mdb2.xml rss.xml xml.xml
/en/package/structures/structures-datagrid/structures-datagrid-renderer README console.xml csv.xml htmlsortform.xml htmltable.xml pager.xml smarty.xml
xls.xml xml.xml xul.xml

From: Date: Sat, 19 Aug 2006 17:48:25 +0000
Subject: cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid/structures-datagrid-datasource README
array.xml csv.xml dataobject.xml db.xml dbquery.xml dbtable.xml mdb2.xml rss.xml xml.xml
/en/package/structures/structures-datagrid/structures-datagrid-renderer README console.xml csv.xml htmlsortform.xml htmltable.xml pager.xml smarty.xml
xls.xml xml.xml xul.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8315@lists.php.net to get a copy of this message
wiesemann Sat Aug 19 17:48:25 2006 UTC Added files: /peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource README array.xml csv.xml dataobject.xml db.xml dbquery.xml dbtable.xml mdb2.xml rss.xml xml.xml /peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer README console.xml csv.xml htmlsortform.xml htmltable.xml pager.xml smarty.xml xls.xml xml.xml xul.xml Modified files: /peardoc/en/package/structures structures-datagrid.xml Log: - initial commit of (auto-generated) driver documentation files - activate them for the manual build

http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid.xml?r1=1.34&r2=1.35&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.34 peardoc/en/package/structures/structures-datagrid.xml:1.35 --- peardoc/en/package/structures/structures-datagrid.xml:1.34 Fri Aug 18 22:29:02 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Sat Aug 19 17:48:24 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.34 $ --> +<!-- $Revision: 1.35 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -120,7 +120,6 @@ &package.structures.structures-datagrid.structures-datagrid-column.setorderby; </sect2> -<!-- <sect2 id="package.structures.structures-datagrid.structures-datagrid-datasource"> <title>DataSource drivers</title> &package.structures.structures-datagrid.structures-datagrid-datasource.array; @@ -146,7 +145,6 @@ &package.structures.structures-datagrid.structures-datagrid-renderer.xml; &package.structures.structures-datagrid.structures-datagrid-renderer.xul; </sect2> ---> </sect1> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.array"> <refnamediv> <refname>Structures_DataGrid_DataSource_Array</refname> <refpurpose>Array Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.array.desc"> <title>Description</title> <para> This class is a data source driver for a 2D Array </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.array.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.csv"> <refnamediv> <refname>Structures_DataGrid_DataSource_CSV</refname> <refpurpose>Comma Seperated Value (CSV) Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.csv.desc"> <title>Description</title> <para> This class is a data source driver for a CSV File. It will also support any other delimiter. </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.csv.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>delimiter</entry> <entry>string</entry> <entry>Field delimiter</entry> <entry>','</entry> </row> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>header</entry> <entry>bool</entry> <entry>Whether the CSV file (or string) contains a header row</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dataobject"> <refnamediv> <refname>Structures_DataGrid_DataSource_DataObject</refname> <refpurpose>PEAR::DB_DataObject Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dataobject.desc"> <title>Description</title> <para> This class is a data source driver for a PEAR::DB::DB_DataObject object </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dataobject.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>fields_property</entry> <entry>string</entry> <entry>The name of a property that you can set within your DataObject. This property is expected to contain the same kind of information as the 'fields' option. If the 'fields' option is set, this one will not be used.</entry> <entry>'fb_fieldsToRender'</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> <row> <entry>labels_property</entry> <entry>string</entry> <entry>The name of a property that you can set within your DataObject. This property is expected to contain the same kind of information as the 'labels' option. If the 'labels' option is set, this one will not be used.</entry> <entry>'fb_fieldsLabels'</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.db"> <refnamediv> <refname>Structures_DataGrid_DataSource_DB</refname> <refpurpose>PEAR::DB Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.db.desc"> <title>Description</title> <para> This class is a data source driver for the PEAR::DB::DB_Result object </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.db.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBQuery</refname> <refpurpose>PEAR::DB SQL Query Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery.desc"> <title>Description</title> <para> This class is a data source driver for the PEAR::DB object </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>dbc</entry> <entry>object</entry> <entry>A PEAR::DB instance that will be used by this driver. Either this or the 'dsn' option is required.</entry> <entry></entry> </row> <row> <entry>dsn</entry> <entry>string</entry> <entry>A PEAR::DB dsn string. The DB connection will be established by this driver. Either this or the 'dbc' option is required.</entry> <entry></entry> </row> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery.notes"> <title>General notes</title> <para> You need to specify either a DB instance or a DB compatible dsn string as an option to use this driver. </para> <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 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. </para> <para> You can specify a ORDER BY statement in your query. Please be aware that this sorting statement is then used in *every* query before the sorting options that come from a renderer (e.g. by clicking on the column header when using the HTML_Table renderer which is sent in the HTTP request). If you want to give a default sorting statement that is only used if there is no sorting query in the HTTP request, then use $datagrid-&gt;setDefaultSort(). </para> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBTable</refname> <refpurpose>PEAR::DB_Table Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable.desc"> <title>Description</title> <para> This class is a data source driver for the PEAR::DB_Table object </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> <row> <entry>view</entry> <entry>string</entry> <entry>The view from $sql array in your DB_Table object. This option is required.</entry> <entry></entry> </row> <row> <entry>where</entry> <entry>string</entry> <entry>A where clause for the SQL query.</entry> <entry>null</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable.notes"> <title>General notes</title> <para> If you use aliases in the select part of your view, the count() method from DB_Table and, therefore, $datagrid-&gt;getRecordCount() might return a wrong result. To avoid this, DB_Table uses a special query for counting if it is given via a view that needs to be named as '__count_' followed by the name of the view that this counting view belongs to. (For example: if you have a view named 'all', the counting view needs to be named as '__count_all'.) </para> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2"> <refnamediv> <refname>Structures_DataGrid_DataSource_MDB2</refname> <refpurpose>PEAR::MDB2 SQL Query Data Source Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2.desc"> <title>Description</title> <para> This class is a data source driver for the PEAR::MDB2 object </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>dbc</entry> <entry>object</entry> <entry>A PEAR::MDB2 instance that will be used by this driver. Either this or the 'dsn' option is required.</entry> <entry></entry> </row> <row> <entry>dsn</entry> <entry>string</entry> <entry>A PEAR::MDB2 dsn string. The MDB2 connection will be established by this driver. Either this or the 'dbc' option is required.</entry> <entry></entry> </row> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2.notes"> <title>General notes</title> <para> You need to specify either a MDB2 instance or a MDB2 compatible dsn string as an option to use this driver. </para> <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 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. </para> <para> You can specify a ORDER BY statement in your query. Please be aware that this sorting statement is then used in *every* query before the sorting options that come from a renderer (e.g. by clicking on the column header when using the HTML_Table renderer which is sent in the HTTP request). If you want to give a default sorting statement that is only used if there is no sorting query in the HTTP request, then use $datagrid-&gt;setDefaultSort(). </para> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.rss"> <refnamediv> <refname>Structures_DataGrid_DataSource_RSS</refname> <refpurpose>RSS data source driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.rss.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.xml"> <refnamediv> <refname>Structures_DataGrid_DataSource_XML</refname> <refpurpose>XML data source driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.xml.desc"> <title>Description</title> <para> This driver accepts the following options: </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.xml.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>fieldAttribute</entry> <entry>string</entry> <entry>Which attribute of the XML source should be used as column field name (only used if the XML source has attributes).</entry> <entry>null</entry> </row> <row> <entry>fields</entry> <entry>array</entry> <entry>Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...)</entry> <entry>array()</entry> </row> <row> <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the 'labels' option.</entry> <entry>false</entry> </row> <row> <entry>labelAttribute</entry> <entry>string</entry> <entry>Which attribute of the XML source should be used as column label (only used if 'generate_columns' is true and the XML source has attributes).</entry> <entry>null</entry> </row> <row> <entry>labels</entry> <entry>array</entry> <entry>Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...)</entry> <entry>array()</entry> </row> <row> <entry>xpath</entry> <entry>string</entry> <entry>XPath to a subset of the XML data.</entry> <entry>''</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/console.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/console.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/console.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.console"> <refnamediv> <refname>Structures_DataGrid_Renderer_Console</refname> <refpurpose>Console Table Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.console.desc"> <title>Description</title> <para> This renderer generates nicely formatted and padded ASCII tables. </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.console.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/csv.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.csv"> <refnamediv> <refname>Structures_DataGrid_Renderer_CSV</refname> <refpurpose>CSV Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.csv.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>delimiter</entry> <entry>string</entry> <entry>Field delimiter</entry> <entry>','</entry> </row> <row> <entry>enclosure</entry> <entry>string</entry> <entry>Field enclosure</entry> <entry>a double quotation mark: "</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>lineBreak</entry> <entry>string</entry> <entry>The character(s) to use for line breaks</entry> <entry>'\n'</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>useQuotes</entry> <entry>mixed</entry> <entry>Whether or not to encapuslate the values with the enclosure value. true: always, false: never, "auto": when needed</entry> <entry>"auto"</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmlsortform.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmlsortform.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmlsortform.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.htmlsortform"> <refnamediv> <refname>Structures_DataGrid_Renderer_HTMLSortForm</refname> <refpurpose>Multiple fields sorting form rendering driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmlsortform.desc"> <title>Description</title> <para> This driver renders a form (using HTML_QuickForm) so that the user can select several fields and directions to sort the datagrid by. </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmlsortform.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>directionStyle</entry> <entry>string</entry> <entry>Whether to render the direction form elements as "select" or "radio" elements</entry> <entry>"select"</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>sortFieldsNum</entry> <entry>int</entry> <entry>How many fields the user will be able to sort by. This has no effect if the backend does not support sorting by multiple fields.</entry> <entry>3</entry> </row> <row> <entry>textAscending</entry> <entry>string</entry> <entry>Label for the ASC direction</entry> <entry>"Ascending"</entry> </row> <row> <entry>textChoose</entry> <entry>string</entry> <entry>What to display in the select box when no field is selected (first option)</entry> <entry>"Choose..."</entry> </row> <row> <entry>textDescending</entry> <entry>string</entry> <entry>Label for the DESC direction</entry> <entry>"Descending"</entry> </row> <row> <entry>textSortBy</entry> <entry>string</entry> <entry>Label for the first field</entry> <entry>"Sort by:"</entry> </row> <row> <entry>textSubmit</entry> <entry>string</entry> <entry>Label for the submit button</entry> <entry>"Submit"</entry> </row> <row> <entry>textThenBy</entry> <entry>string</entry> <entry>Label for the second and following fields</entry> <entry>"Then by:"</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmltable.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmltable.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmltable.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.htmltable"> <refnamediv> <refname>Structures_DataGrid_Renderer_HTMLTable</refname> <refpurpose>HTML Table Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmltable.desc"> <title>Description</title> <para> Driver for rendering the DataGrid as an HTMLTable </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmltable.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>columnAttributes</entry> <entry>array</entry> <entry>Column cells attributes. This is an array of the form: array(fieldName => array(attribute => value, ...) ...)</entry> <entry>array()</entry> </row> <row> <entry>convertEntities</entry> <entry>bool</entry> <entry>Whether or not to convert html entities. This calls htmlspecialchars().</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>emptyRowAttributes</entry> <entry>array</entry> <entry>An associative array containing the attributes for empty rows.</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>evenRowAttributes</entry> <entry>array</entry> <entry>An associative array containing each attribute of the even rows.</entry> <entry>array()</entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>headerAttributes</entry> <entry>array</entry> <entry>Attributes for the header row. This is an array of the form: array(attribute => value, ...)</entry> <entry>array()</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>oddRowAttributes</entry> <entry>array</entry> <entry>An associative array containing each attribute of the odd rows.</entry> <entry>array()</entry> </row> <row> <entry>selfPath</entry> <entry>string</entry> <entry>The complete path for sorting and paging links.</entry> <entry>$_SERVER['PHP_SELF']</entry> </row> <row> <entry>sortIconASC</entry> <entry>string</entry> <entry>The icon to define that sorting is currently ascending. Can be text or HTML to define an image.</entry> <entry>''</entry> </row> <row> <entry>sortIconDESC</entry> <entry>string</entry> <entry>The icon to define that sorting is currently descending. Can be text or HTML to define an image.</entry> <entry>''</entry> </row> <row> <entry>sortingResetsPaging</entry> <entry>bool</entry> <entry>Whether sorting HTTP queries reset paging.</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/pager.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/pager.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/pager.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.pager"> <refnamediv> <refname>Structures_DataGrid_Renderer_Pager</refname> <refpurpose>Pager rendering driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.pager.desc"> <title>Description</title> <para> This driver provides generic paging. This driver has full container support. You can use the Structures_DataGrid::fill() method with it. It buffers output, you can use Structures_DataGrid::getOutput() </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.pager.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>pagerOptions</entry> <entry>array</entry> <entry>Options passed to Pager::factory(). Basic defaults are: mode: Sliding, delta: 5, separator: "|", prevImg: "<<", nextImg: ">>". The extraVars and excludeVars options are populated according to the Renderer common extraVars and excludeVars options. You may also specify some variables to be added or excluded here. The totalItems, perPage, urlVar, and currentPage options are set accordingly to the data statistics reported by the DataGrid and DataSource. You may overload these values here if you know what your are doing.</entry> <entry></entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty"> <refnamediv> <refname>Structures_DataGrid_Renderer_Smarty</refname> <refpurpose>Smarty Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>columnAttributes</entry> <entry>array</entry> <entry>Column cells attributes. This is an array of the form: array(fieldName => array(attribute => value, ...) ...)</entry> <entry>array()</entry> </row> <row> <entry>convertEntities</entry> <entry>bool</entry> <entry>Whether or not to convert html entities. This calls htmlspecialchars().</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>selfPath</entry> <entry>string</entry> <entry>The complete path for sorting and paging links.</entry> <entry>$_SERVER['PHP_SELF']</entry> </row> <row> <entry>sortingResetsPaging</entry> <entry>bool</entry> <entry>Whether sorting HTTP queries reset paging.</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty.notes"> <title>General notes</title> <para> This driver does not support the render() method, it only is able to &quot;fill&quot; a Smarty object, by calling Smarty::assign() and Smarty::register_function(). </para> <para> It's up to you to called Smarty::display() after the Smarty object has been filled. </para> <para> This driver assigns the following Smarty variables: - $columnSet: array of columns specifications structure: array ( 0 =&gt; array ( 'name' =&gt; field name, 'label' =&gt; column label, 'link' =&gt; sorting link, 'attributes' =&gt; attributes string, ), ... ) - $recordSet: array of records values - $currentPage: current page (starting from 1) - $recordLimit: number of rows per page - $pagesNum: number of pages - $columnsNum: number of columns - $recordsNum: number of records in the current page - $totalRecordsNum: total number of records - $firstRecord: first record number (starting from 1) - $lastRecord: last record number (starting from 1) - $currentSort: array with column names and the directions used for sorting </para> <para> This driver also registers a Smarty custom function named getPaging that can be called from Smarty templates with {getPaging} in order to print paging links. This function accepts any of the Pager::factory() options as parameters. </para> <para> Template example, featuring sorting and paging: </para> <para> <programlisting> &lt;!-- Show paging links using the custom getPaging function --&gt; {getPaging prevImg=&quot;&lt;&lt;&quot; nextImg=&quot;&gt;&gt;&quot; separator=&quot; | &quot; delta=&quot;5&quot;} &lt;p&gt;Showing records {$firstRecord} to {$lastRecord} from {$totalRecordsNum}, page {$currentPage} of {$pagesNum}&lt;/p&gt; &lt;table cellspacing=&quot;0&quot;&gt; &lt;!-- Build header --&gt; &lt;tr&gt; {section name=col loop=$columnSet} &lt;th {$columnSet[col].attributes}&gt; &lt;!-- Check if the column is sortable --&gt; {if $columnSet[col].link != &quot;&quot;} &lt;a href=&quot;{$columnSet[col].link}&quot;&gt;{$columnSet[col].label}&lt;/a&gt; {else} {$columnSet[col].label} {/if} &lt;/th&gt; {/section} &lt;/tr&gt; &lt;!-- Build body --&gt; {section name=row loop=$recordSet} &lt;tr {if $smarty.section.row.iteration is even}bgcolor=&quot;#EEEEEE&quot;{/if}&gt; {section name=col loop=$recordSet[row]} &lt;td {$columnSet[col].attributes}&gt;{$recordSet[row][col]}&lt;/td&gt; {/section} &lt;/tr&gt; {/section} &lt;/table&gt; </programlisting> </para> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.xls"> <refnamediv> <refname>Structures_DataGrid_Renderer_XLS</refname> <refpurpose>Excel Spreadsheet Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.xls.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>bodyFormat</entry> <entry>mixed</entry> <entry>The format for body cells (either 0 or a Spreadsheet_Excel_Writer_Format object) Please see the NOTE ABOUT FORMATTING below.</entry> <entry>0 [= "no format"]</entry> </row> <row> <entry>border</entry> <entry>int</entry> <entry>Border drawn around the whole datagrid: 0 => none, 1 => thin, 2 => thick (NOT IMPLEMENTED YET)</entry> <entry>0</entry> </row> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>filename</entry> <entry>string</entry> <entry>The filename of the spreadsheet</entry> <entry>'spreadsheet.xls'</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>headerBorder</entry> <entry>int</entry> <entry>Border between the header and body: 0 => none, 1 => thin, 2 => thick (NOT IMPLEMENTED YET)</entry> <entry>0</entry> </row> <row> <entry>headerFormat</entry> <entry>mixed</entry> <entry>The format for header cells (either 0 or a Spreadsheet_Excel_Writer_Format object) Please see the NOTE ABOUT FORMATTING below.</entry> <entry>0 [= "no format"]</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>sendToBrowser</entry> <entry>bool</entry> <entry>Should the spreadsheet be send to the browser? (true = send to browser, false = write to a file)</entry> <entry>true</entry> </row> <row> <entry>startCol</entry> <entry>int</entry> <entry>The Worksheet column number to start rendering at</entry> <entry>0</entry> </row> <row> <entry>startRow</entry> <entry>int</entry> <entry>The Worksheet row number to start rendering at</entry> <entry>0</entry> </row> <row> <entry>worksheet</entry> <entry>object</entry> <entry>Optional reference to a Spreadsheet_Excel_Writer_Worksheet object. You can leave this to null except if your workbook contains several worksheets and you want to fill a specific one.</entry> <entry>null</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.xls.notes"> <title>General notes</title> <para> This driver does not support the flatten() method. You can not retrieve its output with DataGrid::getOutput(). You can either render it directly to the browser or save it to a file. See the &quot;sendToBrowser&quot; and &quot;filename&quot; options. </para> <para> This driver has container support. You can use Structures_DataGrid::fill() with it; that's even recommended. </para> <para> NOTE ABOUT FORMATTING: </para> <para> You can specify some formatting with the 'headerFormat' and 'bodyFormat' options, or with setBodyFormat() and setHeaderFormat(). </para> <para> But beware of the following from the Spreadsheet_Excel_Writer manual: &quot;Formats can't be created directly by a new call. You have to create a format using the addFormat() method from a Workbook, which associates your Format with this Workbook (you can't use the Format with another Workbook).&quot; </para> <para> What this means is that if you want to pass a format to this driver you have to &quot;derive&quot; the Format object out of the workbook used in the driver. </para> <para> The easiest way to do this is: </para> <para> <programlisting> // Create a workbook $workbook = new Spreadsheet_Excel_Writer(); // Specify that spreadsheet must be sent the browser $workbook-&gt;send('test.xls'); // Create your format $format_bold =&amp; $workbook-&gt;addFormat(); $format_bold-&gt;setBold(); // Fill the workbook, passing the format as an option $options = array('headerFormat' =&gt; &amp;$format_bold); $datagrid-&gt;fill($workbook, $options); </programlisting> </para> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xml.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xml.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xml.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.xml"> <refnamediv> <refname>Structures_DataGrid_Renderer_XML</refname> <refpurpose>XML Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.xml.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fieldAttribute</entry> <entry>string</entry> <entry>The name of the attribute for the field name. null stands for no attribute</entry> <entry>null</entry> </row> <row> <entry>fieldTag</entry> <entry>string</entry> <entry>The name of the tag for each field inside a row, without brackets. The special value '{field}' is replaced by the field name.</entry> <entry>'{field}'</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>labelAttribute</entry> <entry>string</entry> <entry>The name of the attribute for the column label. null stands for no attribute</entry> <entry>null</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> <row> <entry>outerTag</entry> <entry>string</entry> <entry>The name of the tag for the datagrid, without brackets</entry> <entry>'DataGrid'</entry> </row> <row> <entry>rowTag</entry> <entry>string</entry> <entry>The name of the tag for each row, without brackets</entry> <entry>'Row'</entry> </row> <row> <entry>useXMLDecl</entry> <entry>bool</entry> <entry>Whether the XML declaration string should be added to the output. The encoding attribute value will get set from the common "encoding" option. If you need to further customize the XML declaration (version, etc..), then please set "useXMLDecl" to false, and add your own declaration string.</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </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 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.xul"> <refnamediv> <refname>Structures_DataGrid_Renderer_XUL</refname> <refpurpose>XUL Rendering Driver</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.xul.options"> <title>Options</title> <para> This driver accepts the following options: </para> <table> <title>Options for this driver</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default Value</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>Whether to build the footer.</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>Whether to build the header.</entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>What value to put by default into empty cells.</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry>Per-column default cell value. This is an array of the form: array(fieldName => value, ...).</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry>The content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1.</entry> <entry></entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>Variables to be removed from the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>Variables to be added to the generated HTTP queries.</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>Ensures that all pages have the same number of rows.</entry> <entry>false</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry>By default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.</entry> <entry>array()</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>Whether to right-align numeric values.</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </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 (#8315) next »