cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid structures-datagrid-column.xml
structures-datagrid-datasource.xml structures-datagrid-renderer-htmltable.xml structures-datagrid.ent
/en/package/structures/structures-datagrid/structures-datagrid removecolumn.xml /en/package/structures/structures-datagrid/structures-datagrid-column
formatter.xml
| From: | Mark Wiesemann | Date: | Sun, 20 Aug 2006 22:04:22 +0000 |
| Subject: | cvs: peardoc /en/package/structures structures-datagrid.xml /en/package/structures/structures-datagrid structures-datagrid-column.xml structures-datagrid-datasource.xml structures-datagrid-renderer-htmltable.xml structures-datagrid.ent /en/package/structures/structures-datagrid/structures-datagrid removecolumn.xml /en/package/structures/structures-datagrid/structures-datagrid-column formatter.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8330@lists.php.net to get a copy of this message | ||
wiesemann Sun Aug 20 22:04:22 2006 UTC
Added files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid
removecolumn.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-column
formatter.xml
Removed files:
/peardoc/en/package/structures/structures-datagrid
structures-datagrid-column.xml
structures-datagrid-datasource.xml
structures-datagrid-renderer-htmltable.xml
structures-datagrid.ent
Modified files:
/peardoc/en/package/structures structures-datagrid.xml
Log:
- added docs for two new files
- more clean-up of unused files
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid.xml?r1=1.35&r2=1.36&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.35 peardoc/en/package/structures/structures-datagrid.xml:1.36 --- peardoc/en/package/structures/structures-datagrid.xml:1.35 Sat Aug 19 17:48:24 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Sun Aug 20 22:04:22 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.35 $ --> +<!-- $Revision: 1.36 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -69,6 +69,7 @@ &package.structures.structures-datagrid.structures-datagrid.getpagecount; &package.structures.structures-datagrid.structures-datagrid.getrecordcount; &package.structures.structures-datagrid.structures-datagrid.getrenderer; +&package.structures.structures-datagrid.structures-datagrid.removecolumn; &package.structures.structures-datagrid.structures-datagrid.render; &package.structures.structures-datagrid.structures-datagrid.setcurrentpage; &package.structures.structures-datagrid.structures-datagrid.setdatasourceoption; @@ -107,6 +108,7 @@ </refsect1> </refentry> &package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column; +&package.structures.structures-datagrid.structures-datagrid-column.formatter; &package.structures.structures-datagrid.structures-datagrid-column.getattributes; &package.structures.structures-datagrid.structures-datagrid-column.getautofillvalue; &package.structures.structures-datagrid.structures-datagrid-column.getfield; http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid.removecolumn"> <refnamediv> <refname><function>Structures_DataGrid::removeColumn</function></refname> <refpurpose>Remove a column</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Structures/DataGrid.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Structures_DataGrid::removeColumn</function></funcdef> <paramdef> <parameter>&$column</parameter></paramdef> <paramdef>object <parameter>$column</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type></type> <parameter>&$column</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.object; <parameter>$column</parameter> </term> <listitem> <para> The Structures_DataGrid_Column object (reference to) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.example"> <title>Examples</title> <para><example><title>Remove an unneeded column</title><programlisting role="php-highlighted"><?php $datagrid =& new <link linkend="package.structures.structures-datagrid.structures-datagrid.structures-datagrid">Structures_DataGrid</link>(); // Replace this with your database access informations: $bindOptions['dsn'] = "mysql://foo:bar@host/world"; // The City table contains 5 fields: ID, Name, CountryCode, District and Population $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.bind">bind</link>("SELECT * FROM City ORDER BY Population", $bindOptions); // We want to remove the ID field, so we retrieve a reference to the Column: $column =& $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.getcolumnbyfield">getColumnByField</link>('ID'); // And we drop that column: $datagrid->dropColumn($column); // This will only render 4 fields: Name, CountryCode, District and Population: $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.render">render</link>(); ?> </programlisting> </example></para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.note"> &title.note; ¬e.notstatic; </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-column/formatter.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/formatter.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/formatter.xml <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.formatter"> <refnamediv> <refname><function>Structures_DataGrid_Column::formatter</function></refname> <refpurpose>Formatter</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Structures/DataGrid/Column.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Structures_DataGrid_Column::formatter</function></funcdef> <paramdef> <parameter>$record</parameter></paramdef> <paramdef> <parameter>$row</parameter></paramdef> <paramdef> <parameter>$col</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.desc"> &title.desc; <para>This method is not meant to be called by user-space code.</para> <para>Calls a predefined function to develop custom output for the column. The defined function can accept parameters so that each cell in the column can be unique based on the record. The function will also automatically receive the record array as a parameter. All parameters passed into the function will be in one array.</para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type></type> <parameter>$record</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type></type> <parameter>$row</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type></type> <parameter>$col</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.note"> &title.note; ¬e.notstatic; </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.35&r2=1.36&diff_format=u Index: peardoc/en/package/structures/structures-datagrid.xml diff -u peardoc/en/package/structures/structures-datagrid.xml:1.35 peardoc/en/package/structures/structures-datagrid.xml:1.36 --- peardoc/en/package/structures/structures-datagrid.xml:1.35 Sat Aug 19 17:48:24 2006 +++ peardoc/en/package/structures/structures-datagrid.xml Sun Aug 20 22:04:22 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.35 $ --> +<!-- $Revision: 1.36 $ --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -69,6 +69,7 @@ &package.structures.structures-datagrid.structures-datagrid.getpagecount; &package.structures.structures-datagrid.structures-datagrid.getrecordcount; &package.structures.structures-datagrid.structures-datagrid.getrenderer; +&package.structures.structures-datagrid.structures-datagrid.removecolumn; &package.structures.structures-datagrid.structures-datagrid.render; &package.structures.structures-datagrid.structures-datagrid.setcurrentpage; &package.structures.structures-datagrid.structures-datagrid.setdatasourceoption; @@ -107,6 +108,7 @@ </refsect1> </refentry> &package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column; +&package.structures.structures-datagrid.structures-datagrid-column.formatter; &package.structures.structures-datagrid.structures-datagrid-column.getattributes; &package.structures.structures-datagrid.structures-datagrid-column.getautofillvalue; &package.structures.structures-datagrid.structures-datagrid-column.getfield; http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/removecolumn.xml <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid.removecolumn"> <refnamediv> <refname><function>Structures_DataGrid::removeColumn</function></refname> <refpurpose>Remove a column</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Structures/DataGrid.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Structures_DataGrid::removeColumn</function></funcdef> <paramdef> <parameter>&$column</parameter></paramdef> <paramdef>object <parameter>$column</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type></type> <parameter>&$column</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.object; <parameter>$column</parameter> </term> <listitem> <para> The Structures_DataGrid_Column object (reference to) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.example"> <title>Examples</title> <para><example><title>Remove an unneeded column</title><programlisting role="php-highlighted"><?php $datagrid =& new <link linkend="package.structures.structures-datagrid.structures-datagrid.structures-datagrid">Structures_DataGrid</link>(); // Replace this with your database access informations: $bindOptions['dsn'] = "mysql://foo:bar@host/world"; // The City table contains 5 fields: ID, Name, CountryCode, District and Population $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.bind">bind</link>("SELECT * FROM City ORDER BY Population", $bindOptions); // We want to remove the ID field, so we retrieve a reference to the Column: $column =& $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.getcolumnbyfield">getColumnByField</link>('ID'); // And we drop that column: $datagrid->dropColumn($column); // This will only render 4 fields: Name, CountryCode, District and Population: $datagrid-><link linkend="package.structures.structures-datagrid.structures-datagrid.render">render</link>(); ?> </programlisting> </example></para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.removecolumn.note"> &title.note; ¬e.notstatic; </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-column/formatter.xml?view=markup&rev=1.1 Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/formatter.xml +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-column/formatter.xml <!-- $Revision: 1.1 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.formatter"> <refnamediv> <refname><function>Structures_DataGrid_Column::formatter</function></refname> <refpurpose>Formatter</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Structures/DataGrid/Column.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Structures_DataGrid_Column::formatter</function></funcdef> <paramdef> <parameter>$record</parameter></paramdef> <paramdef> <parameter>$row</parameter></paramdef> <paramdef> <parameter>$col</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.desc"> &title.desc; <para>This method is not meant to be called by user-space code.</para> <para>Calls a predefined function to develop custom output for the column. The defined function can accept parameters so that each cell in the column can be unique based on the record. The function will also automatically receive the record array as a parameter. All parameters passed into the function will be in one array.</para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type></type> <parameter>$record</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type></type> <parameter>$row</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type></type> <parameter>$col</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.formatter.note"> &title.note; ¬e.notstatic; </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 -->