cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid sortrecordset.xml
| From: | Andrew Nagy | Date: | Fri, 28 Jan 2005 15:31:08 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid sortrecordset.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5490@lists.php.net to get a copy of this message | ||
asnagy Fri Jan 28 10:31:08 2005 EDT
Modified files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid
sortrecordset.xml
Log:
added example
http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml
diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml:1.1
peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml:1.2
--- peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml:1.1 Tue
Dec 21 14:57:36 2004
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/sortrecordset.xml Fri Jan
28 10:31:08 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry
id="package.structures.structures_datagrid.structures_datagrid.sortrecordset">
<refnamediv>
@@ -60,6 +60,28 @@
</variablelist>
</para>
</refsect1>
+
+ <refsect1
id="package.structures.structures_datagrid.structures_datagrid.sortrecordset.example">
+ &title.example;
+ <example>
+ <title>Sorting a record set.</title>
+ <programlisting role="php">
+ <![CDATA[
+<?php
+require_once 'Structures/DataGrid.php';
+
+$dg =& new Structures_DataGrid();
+
+// ... get my data and bind it to the $dg ...
+
+$dg->sortRecordSet('lname', 'ASC');
+
+$dg->render();
+?>
+ ]]>
+ </programlisting>
+ </example>
+ </refsect1>
</refentry>