cvs: peardoc /en/package/structures/structures-datagrid example-advanced.xml example-simple.xml
/en/package/structures/structures-datagrid/structures-datagrid bindDataSource.xml
| From: | Martin Jansen | Date: | Thu, 30 Sep 2004 07:25:45 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid example-advanced.xml example-simple.xml /en/package/structures/structures-datagrid/structures-datagrid bindDataSource.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4908@lists.php.net to get a copy of this message | ||
mj Thu Sep 30 03:25:45 2004 EDT
Modified files:
/peardoc/en/package/structures/structures-datagrid
example-advanced.xml
example-simple.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid
bindDataSource.xml
Log:
* Fixed the build
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/example-advanced.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/en/package/structures/structures-datagrid/example-advanced.xml
diff -u peardoc/en/package/structures/structures-datagrid/example-advanced.xml:1.3
peardoc/en/package/structures/structures-datagrid/example-advanced.xml:1.4
--- peardoc/en/package/structures/structures-datagrid/example-advanced.xml:1.3 Wed Sep 29 15:04:56
2004
+++ peardoc/en/package/structures/structures-datagrid/example-advanced.xml Thu Sep 30 03:25:43 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="package.structures.structures-datagrid.example-advanced">
<refnamediv>
@@ -11,17 +11,18 @@
&title.desc;
<refsect2 id="package.structures.structures-datagrid.example-advanced.desc.bind">
+ <title>Binding to a DB_DataObject instance</title>
<para>
Follow this example if you are using data objects or more complex data
sources other than arrays. This example will show you how to bind to a
data source that is not an array using the
- <link
linkend="package.structures.structures-datagrid.structures_datagrid.bindDataSource">
+ <link
linkend="package.structures.structures_datagrid.structures_datagrid.bindDataSource">
<function>bindDataSource</function>
</link> method.
</para>
<example>
- <title>Binding to a DB_DataObject</title>
+ <title>DB_DataObject binding example</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -40,7 +41,10 @@
?>
]]>
</programlisting>
- Another way of doing this which is slightly less efficient but is simpler is:
+ <para>
+ Another way of doing this which is slightly less efficient but is
+ simpler is:
+ </para>
<programlisting role="php">
<![CDATA[
<?php
@@ -58,9 +62,11 @@
?>
]]>
</programlisting>
- The bind method will attempt to determine the nature of the object that you
- are passing. If it is able to determine that it is something that it
- recognizes, the datagrid will do the rest for you.
+ <para>
+ The bind method will attempt to determine the nature of the object that you
+ are passing. If it is able to determine that it is something that it
+ recognizes, the datagrid will do the rest for you.
+ </para>
</example>
</refsect2>
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/example-simple.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/en/package/structures/structures-datagrid/example-simple.xml
diff -u peardoc/en/package/structures/structures-datagrid/example-simple.xml:1.3
peardoc/en/package/structures/structures-datagrid/example-simple.xml:1.4
--- peardoc/en/package/structures/structures-datagrid/example-simple.xml:1.3 Wed Sep 29 15:04:56
2004
+++ peardoc/en/package/structures/structures-datagrid/example-simple.xml Thu Sep 30 03:25:43 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="package.structures.structures-datagrid.example-simple">
<refnamediv>
@@ -11,16 +11,18 @@
&title.desc;
<refsect2 id="package.structures.structures-datagrid.example-simple.desc.bind">
+ <title>Binding a result set</title>
+
<para>
To begin binding an existing record set of data to a DataGrid you can
easiy use the
- <link
linkend="package.structures.structures-datagrid.structures_datagrid.bind">
+ <link
linkend="package.structures.structures_datagrid.structures_datagrid.bind">
<function>bind</function>
</link> method.
</para>
<example>
- <title>Binding a result set</title>
+ <title>Binding example</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -39,7 +41,9 @@
?>
]]>
</programlisting>
- Or, another way of doing the same thing but more effecient is:
+ <para>
+ Or, another way of doing the same thing but more effecient is:
+ </para>
<programlisting role="php">
<![CDATA[
<?php
@@ -61,8 +65,6 @@
</programlisting>
</example>
- </refsect2>
-
</refsect2>
</refsect1>
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml?r1=1.2&r2=1.3&ty=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml
diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.2
peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.3
--- peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.2 Wed
Sep 29 11:08:25 2004
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml Thu Sep
30 03:25:45 2004
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry
id="package.structures.structures_datagrid.structures_datagrid.bindDataSource">
<refnamediv>
<refname>Structures_DataGrid::bindDataSource()</refname>
- <refpurpose>Binds a &class.structures-datagrid-datasource object to the
DataGrid.</refpurpose>
+ <refpurpose>Binds a Structures_DataGrid_DataSource object to the
DataGrid.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>bindDataSource</function></funcdef>
<paramdef>
- &class.structures-datagrid-datasource <parameter>$source</parameter>
+ Structures_DataGrid_DataSource <parameter>$source</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
@@ -20,17 +20,17 @@
<refsect1
id="package.structures.structures_datagrid.structures_datagrid.bindDataSource.desc">
&title.desc;
<para>
- Binds a &class.structures-datagrid-datasource object to the DataGrid.
+ Binds a <classname>Structures_DataGrid_DataSource</classname> object to the
DataGrid.
</para>
</refsect1>
- <refsect1
id="package.structures.structures_datagrid.structures_datagrid.bind.parameter">
+ <refsect1
id="package.structures.structures_datagrid.structures_datagrid.bindDataSource.parameter">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
- &class.structures-datagrid-datasource
+ <classname>Structures_DataGrid_DataSource</classname>
<parameter>$source</parameter>
</term>
<listitem>