cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid/structures-datagrid generatecolumns.xml
/en/package/structures/structures-datagrid/structures-datagrid-column format.xml
/en/package/structures/structures-datagrid/structures-datagrid-datasource array.xml csv.xml dataobject.xml db.xml dbquery.xml dbtable.xml excel.xml
mdb2.xml rss.xml xml.xml /en/package/structures/structures-datagrid/structures-datagrid-renderer htmleditform.xml
| From: | Mark Wiesemann | Date: | Fri, 15 Dec 2006 14:39:03 +0000 |
| Subject: | cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid/structures-datagrid generatecolumns.xml /en/package/structures/structures-datagrid/structures-datagrid-column format.xml /en/package/structures/structures-datagrid/structures-datagrid-datasource array.xml csv.xml dataobject.xml db.xml dbquery.xml dbtable.xml excel.xml mdb2.xml rss.xml xml.xml /en/package/structures/structures-datagrid/structures-datagrid-renderer htmleditform.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9073@lists.php.net to get a copy of this message | ||
wiesemann Fri Dec 15 14:39:03 2006 UTC
Added files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid
generatecolumns.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-column
format.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer
htmleditform.xml
Modified files:
/peardoc/en/package/structures structures-datagrid.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource
array.xml
csv.xml
dataobject.xml
db.xml
dbquery.xml
dbtable.xml
excel.xml
mdb2.xml
rss.xml
xml.xml
Log:
- sync source code changes to the manual
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid.xml?r1=1.40&r2=1.41&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.40 peardoc/en/package/structures/structures-datagrid.xml:1.41 --- peardoc/en/package/structures/structures-datagrid.xml:1.40 Fri Dec 8 18:19:36 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.40 $ --> +<!-- $Revision: 1.41 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -60,6 +60,7 @@ &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.generatecolumns; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyfield; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyname; &package.structures.structures-datagrid.structures-datagrid.getcolumncount; @@ -111,6 +112,7 @@ </refsect1> </refentry> &package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column; +&package.structures.structures-datagrid.structures-datagrid-column.format; &package.structures.structures-datagrid.structures-datagrid-column.formatter; &package.structures.structures-datagrid.structures-datagrid-column.getattributes; &package.structures.structures-datagrid.structures-datagrid-column.getautofillvalue; @@ -145,6 +147,7 @@ <title>Renderer drivers</title> &package.structures.structures-datagrid.structures-datagrid-renderer.console; &package.structures.structures-datagrid.structures-datagrid-renderer.csv; +&package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform; &package.structures.structures-datagrid.structures-datagrid-renderer.htmlsortform; &package.structures.structures-datagrid.structures-datagrid-renderer.htmltable; &package.structures.structures-datagrid.structures-datagrid-renderer.pager; http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.array"> <refnamediv> <refname>Structures_DataGrid_DataSource_Array</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.csv"> <refnamediv> <refname>Structures_DataGrid_DataSource_CSV</refname> @@ -73,7 +73,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -86,7 +87,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.dataobject"> <refnamediv> <refname>Structures_DataGrid_DataSource_DataObject</refname> @@ -75,14 +75,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.db"> <refnamediv> <refname>Structures_DataGrid_DataSource_DB</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml?r1=1.7&r2=1.8&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.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBQuery</refname> @@ -80,14 +80,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml?r1=1.7&r2=1.8&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBTable</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.excel"> <refnamediv> <refname>Structures_DataGrid_DataSource_Excel</refname> @@ -66,7 +66,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -79,7 +80,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml?r1=1.7&r2=1.8&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.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2"> <refnamediv> <refname>Structures_DataGrid_DataSource_MDB2</refname> @@ -80,14 +80,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.rss"> <refnamediv> <refname>Structures_DataGrid_DataSource_RSS</refname> @@ -60,14 +60,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.xml"> <refnamediv> <refname>Structures_DataGrid_DataSource_XML</refname> @@ -73,7 +73,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -88,7 +89,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml <refentry id="package.structures.structures-datagrid.structures-datagrid.generatecolumns"> <refnamediv> <refname> <function>Structures_DataGrid::generateColumns</function> </refname> <refpurpose>Generate columns from a fields list</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'Structures/DataGrid.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid::generateColumns</function> </funcdef> <paramdef> array <parameter> <optional>$fields = array()</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.desc"> &title.desc; <para>This is a shortcut for adding simple columns easily, instead of creating them manually and calling addColumn() for each.</para> <para>The generated columns are appended to the current column set.</para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$fields</parameter> </term> <listitem> <para> Fields and labels. Array of the form: array(field => label, ...) The default is an empty array, which means: all fields fetched from the datasource </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml <refentry id="package.structures.structures-datagrid.structures-datagrid-column.format"> <refnamediv> <refname> <function>Structures_DataGrid_Column::format</function> </refname> <refpurpose>Choose a format preset</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'Structures/DataGrid/Column.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid_Column::format</function> </funcdef> <paramdef> <parameter>$type</parameter> </paramdef> <paramdef> mixed <parameter>$type,...</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.desc"> &title.desc; <para>This method allows to associate an "automatic" predefined formatter to the column, for common needs as formatting dates, numbers, ...</para> <para> The currently supported predefined formatters are : <itemizedlist> <listitem> <para> dateFromTimestamp: format a UNIX timestamp according to the date()-like format string passed as second argument </para> </listitem> <listitem> <para> dateFromMysql : format a MySQL DATE, DATETIME, or TIMESTAMP MySQL according to the date() like format string passed as second argument </para> </listitem> <listitem> <para> number: format a number, according to the same optional 2nd, 3rd and 4th arguments that the number_format() PHP function accepts. </para> </listitem> <listitem> <para>printf: format using the printf expression passed as 2nd argument.</para> </listitem> <listitem> <para> printfURL: url-encode and format using the printf expression passed as 2nd argument </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type /> <parameter>$type</parameter> </term> <listitem> <para /> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$type,...</parameter> </term> <listitem> <para> Predefined formatter name, followed by formatter-specific parameters </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.example"> <title>Examples</title> <para> <example> <title>Common formats</title> <programlisting role="php"> <![CDATA[<?php // Format UNIX timestamps as english dates: $column->format('dateFromTimestamp', 'm/d/y'); // Format MySQL DATE, DATETIME or TIMESTAMP strings as french dates: $column->format('dateFromMysql', 'd/m/y'); // Format numbers with 3 decimals and no thousands separator: $column->format('number', 3, '.', ''); // Format numbers with 2 decimals: $column->format('number', 2); // Format using a printf expression: $column->format('printf', 'Number of potatoes: %d'); // Format an HTML link using a printf expression with url-encoding: $column->format('printfURL', '<a href="edit.php?key=%s">Edit</a>'); ?>]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform"> <refnamediv> <refname>Structures_DataGrid_Renderer_HTMLEditForm</refname> <refpurpose>HTML form to edit a record</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.modes"> <title>Supported operations modes</title> <para> This driver supports the following operation modes: </para> <table> <title>Supported operations modes of this driver</title> <tgroup cols="2"> <thead> <row> <entry>Mode</entry> <entry>Supported?</entry> </row> </thead> <tbody> <row> <entry>Container Support</entry> <entry>yes</entry> </row> <row> <entry>Output Buffering</entry> <entry>yes</entry> </row> <row> <entry>Direct Rendering</entry> <entry>no</entry> </row> <row> <entry>Streaming</entry> <entry>no</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.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>'ISO-8859-1'</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>textSubmit</entry> <entry>string</entry> <entry>Label for the submit button</entry> <entry>'Submit'</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.examples"> <title>Examples</title> <example> <title>Basic usage</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Structures/DataGrid.php'; $datagrid =& new Structures_DataGrid(); $datagrid->bind(...); // bind your data here $datagrid->setRenderer('HTMLEditForm'); $datagrid->render(); ?> ]]> </programlisting> </example> <example> <title>Usage with tableless renderer and DHTMLRules</title> <programlisting role="php"> <![CDATA[ <?php // don't forget to include the stylesheet to get a reasonable layout require_once 'Structures/DataGrid.php'; require_once 'HTML/QuickForm/DHTMLRulesTableless.php'; require_once 'HTML/QuickForm/Renderer/Tableless.php'; $datagrid =& new Structures_DataGrid(); $datagrid->bind(...); // bind your data here $datagrid->setRenderer('HTMLEditForm'); // create the form object, using DHTMLRules $form = new HTML_QuickForm_DHTMLRulesTableless('editform', null, null, null, null, true); $form->removeAttribute('name'); // for XHTML validity // to get a legend for the fieldset, we add a header element $form->addElement('header', 'header', 'EditForm example'); // fill() makes the renderer to generate the needed form elements $datagrid->fill($form, null, 'HTMLEditForm'); // we have to add a submit button ourselves $form->addElement('submit', null, 'Submit'); // to show the DHTMLRules functionality, we add a required rule // (we assume that there is an element with name 'id') $form->addRule('id', 'Please enter the ID.', 'required', null, 'client'); // to get validation onChange/onBlur events, we need the following call $form->getValidationScript(); // instantiate the tableless renderer and output the form $renderer =& new HTML_QuickForm_Renderer_Tableless(); $form->accept($renderer); echo $renderer->toHtml(); ?> ]]> </programlisting> </example> </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.xml?r1=1.40&r2=1.41&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.40 peardoc/en/package/structures/structures-datagrid.xml:1.41 --- peardoc/en/package/structures/structures-datagrid.xml:1.40 Fri Dec 8 18:19:36 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.40 $ --> +<!-- $Revision: 1.41 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -60,6 +60,7 @@ &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.generatecolumns; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyfield; &package.structures.structures-datagrid.structures-datagrid.getcolumnbyname; &package.structures.structures-datagrid.structures-datagrid.getcolumncount; @@ -111,6 +112,7 @@ </refsect1> </refentry> &package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column; +&package.structures.structures-datagrid.structures-datagrid-column.format; &package.structures.structures-datagrid.structures-datagrid-column.formatter; &package.structures.structures-datagrid.structures-datagrid-column.getattributes; &package.structures.structures-datagrid.structures-datagrid-column.getautofillvalue; @@ -145,6 +147,7 @@ <title>Renderer drivers</title> &package.structures.structures-datagrid.structures-datagrid-renderer.console; &package.structures.structures-datagrid.structures-datagrid-renderer.csv; +&package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform; &package.structures.structures-datagrid.structures-datagrid-renderer.htmlsortform; &package.structures.structures-datagrid.structures-datagrid-renderer.htmltable; &package.structures.structures-datagrid.structures-datagrid-renderer.pager; http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/array.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.array"> <refnamediv> <refname>Structures_DataGrid_DataSource_Array</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/csv.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.csv"> <refnamediv> <refname>Structures_DataGrid_DataSource_CSV</refname> @@ -73,7 +73,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -86,7 +87,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.dataobject"> <refnamediv> <refname>Structures_DataGrid_DataSource_DataObject</refname> @@ -75,14 +75,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/db.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.db"> <refnamediv> <refname>Structures_DataGrid_DataSource_DB</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml?r1=1.7&r2=1.8&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.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbquery.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbquery"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBQuery</refname> @@ -80,14 +80,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml?r1=1.7&r2=1.8&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/dbtable.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dbtable"> <refnamediv> <refname>Structures_DataGrid_DataSource_DBTable</refname> @@ -66,14 +66,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.excel"> <refnamediv> <refname>Structures_DataGrid_DataSource_Excel</refname> @@ -66,7 +66,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -79,7 +80,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml?r1=1.7&r2=1.8&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.7 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.8 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml:1.7 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/mdb2.xml Fri Dec 15 14:39:03 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.mdb2"> <refnamediv> <refname>Structures_DataGrid_DataSource_MDB2</refname> @@ -80,14 +80,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/rss.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.rss"> <refnamediv> <refname>Structures_DataGrid_DataSource_RSS</refname> @@ -60,14 +60,16 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.6 peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.7 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml:1.6 Sat Nov 25 22:33:59 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/xml.xml Fri Dec 15 14:39:03 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.structures-datagrid-datasource.xml"> <refnamediv> <refname>Structures_DataGrid_DataSource_XML</refname> @@ -73,7 +73,8 @@ <entry>generate_columns</entry> <entry>bool</entry> <entry>Generate Structures_DataGrid_Column objects with labels. See the - 'labels' option.</entry> + 'labels' option. DEPRECATED: use Structures_DataGrid::generateColumns() + instead</entry> <entry>false</entry> </row> <row> @@ -88,7 +89,8 @@ <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> + 'generate_columns' is true. Form: array(field => label, ...) + DEPRECATED: use Structures_DataGrid::generateColumns() instead</entry> <entry>array()</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/generatecolumns.xml <refentry id="package.structures.structures-datagrid.structures-datagrid.generatecolumns"> <refnamediv> <refname> <function>Structures_DataGrid::generateColumns</function> </refname> <refpurpose>Generate columns from a fields list</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'Structures/DataGrid.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid::generateColumns</function> </funcdef> <paramdef> array <parameter> <optional>$fields = array()</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.desc"> &title.desc; <para>This is a shortcut for adding simple columns easily, instead of creating them manually and calling addColumn() for each.</para> <para>The generated columns are appended to the current column set.</para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$fields</parameter> </term> <listitem> <para> Fields and labels. Array of the form: array(field => label, ...) The default is an empty array, which means: all fields fetched from the datasource </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.generatecolumns.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/format.xml <refentry id="package.structures.structures-datagrid.structures-datagrid-column.format"> <refnamediv> <refname> <function>Structures_DataGrid_Column::format</function> </refname> <refpurpose>Choose a format preset</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'Structures/DataGrid/Column.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid_Column::format</function> </funcdef> <paramdef> <parameter>$type</parameter> </paramdef> <paramdef> mixed <parameter>$type,...</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.desc"> &title.desc; <para>This method allows to associate an "automatic" predefined formatter to the column, for common needs as formatting dates, numbers, ...</para> <para> The currently supported predefined formatters are : <itemizedlist> <listitem> <para> dateFromTimestamp: format a UNIX timestamp according to the date()-like format string passed as second argument </para> </listitem> <listitem> <para> dateFromMysql : format a MySQL DATE, DATETIME, or TIMESTAMP MySQL according to the date() like format string passed as second argument </para> </listitem> <listitem> <para> number: format a number, according to the same optional 2nd, 3rd and 4th arguments that the number_format() PHP function accepts. </para> </listitem> <listitem> <para>printf: format using the printf expression passed as 2nd argument.</para> </listitem> <listitem> <para> printfURL: url-encode and format using the printf expression passed as 2nd argument </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type /> <parameter>$type</parameter> </term> <listitem> <para /> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$type,...</parameter> </term> <listitem> <para> Predefined formatter name, followed by formatter-specific parameters </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.example"> <title>Examples</title> <para> <example> <title>Common formats</title> <programlisting role="php"> <![CDATA[<?php // Format UNIX timestamps as english dates: $column->format('dateFromTimestamp', 'm/d/y'); // Format MySQL DATE, DATETIME or TIMESTAMP strings as french dates: $column->format('dateFromMysql', 'd/m/y'); // Format numbers with 3 decimals and no thousands separator: $column->format('number', 3, '.', ''); // Format numbers with 2 decimals: $column->format('number', 2); // Format using a printf expression: $column->format('printf', 'Number of potatoes: %d'); // Format an HTML link using a printf expression with url-encoding: $column->format('printfURL', '<a href="edit.php?key=%s">Edit</a>'); ?>]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.format.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform"> <refnamediv> <refname>Structures_DataGrid_Renderer_HTMLEditForm</refname> <refpurpose>HTML form to edit a record</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.modes"> <title>Supported operations modes</title> <para> This driver supports the following operation modes: </para> <table> <title>Supported operations modes of this driver</title> <tgroup cols="2"> <thead> <row> <entry>Mode</entry> <entry>Supported?</entry> </row> </thead> <tbody> <row> <entry>Container Support</entry> <entry>yes</entry> </row> <row> <entry>Output Buffering</entry> <entry>yes</entry> </row> <row> <entry>Direct Rendering</entry> <entry>no</entry> </row> <row> <entry>Streaming</entry> <entry>no</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.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>'ISO-8859-1'</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>textSubmit</entry> <entry>string</entry> <entry>Label for the submit button</entry> <entry>'Submit'</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.examples"> <title>Examples</title> <example> <title>Basic usage</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Structures/DataGrid.php'; $datagrid =& new Structures_DataGrid(); $datagrid->bind(...); // bind your data here $datagrid->setRenderer('HTMLEditForm'); $datagrid->render(); ?> ]]> </programlisting> </example> <example> <title>Usage with tableless renderer and DHTMLRules</title> <programlisting role="php"> <![CDATA[ <?php // don't forget to include the stylesheet to get a reasonable layout require_once 'Structures/DataGrid.php'; require_once 'HTML/QuickForm/DHTMLRulesTableless.php'; require_once 'HTML/QuickForm/Renderer/Tableless.php'; $datagrid =& new Structures_DataGrid(); $datagrid->bind(...); // bind your data here $datagrid->setRenderer('HTMLEditForm'); // create the form object, using DHTMLRules $form = new HTML_QuickForm_DHTMLRulesTableless('editform', null, null, null, null, true); $form->removeAttribute('name'); // for XHTML validity // to get a legend for the fieldset, we add a header element $form->addElement('header', 'header', 'EditForm example'); // fill() makes the renderer to generate the needed form elements $datagrid->fill($form, null, 'HTMLEditForm'); // we have to add a submit button ourselves $form->addElement('submit', null, 'Submit'); // to show the DHTMLRules functionality, we add a required rule // (we assume that there is an element with name 'id') $form->addRule('id', 'Please enter the ID.', 'required', null, 'client'); // to get validation onChange/onBlur events, we need the following call $form->getValidationScript(); // instantiate the tableless renderer and output the form $renderer =& new HTML_QuickForm_Renderer_Tableless(); $form->accept($renderer); echo $renderer->toHtml(); ?> ]]> </programlisting> </example> </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 -->