cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-renderer xul.xml
| From: | Mark Wiesemann | Date: | Sat, 25 Nov 2006 21:08:38 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-renderer xul.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8892@lists.php.net to get a copy of this message | ||
wiesemann Sat Nov 25 21:08:38 2006 UTC
Modified files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer
xul.xml
Log:
- sync doc block fix from source code
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml?r1=1.3&r2=1.4&diff_format=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml
diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.3
peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.4
--- peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.3 Sat
Nov 25 20:49:22 2006
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml Sat Nov
25 21:08:38 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry
id="package.structures.structures-datagrid.structures-datagrid-renderer.xul">
<refnamediv>
<refname>Structures_DataGrid_Renderer_XUL</refname>
@@ -88,10 +88,49 @@
<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>
</tbody>
</tgroup>
</table>
</refsect1>
+ <refsect1
id="package.structures.structures-datagrid.structures-datagrid-renderer.xul.notes">
+ <title>General notes</title>
+ <para>
+ This renderer class will render a XUL listbox.
+ For additional information on the XUL Listbox, refer to this url:
+ http://www.xulplanet.com/references/elemref/ref_listbox.html
+ </para>
+ <para>
+ You have to setup your XUL document, just as you would with an HTML
+ document. This driver will only generated the <listbox> element and
+ content.
+ </para>
+ <para>
+ Basic example:
+ <programlisting>
+<?php
+header('Content-type: application/vnd.mozilla.xul+xml');
+
+echo "<?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>\n";
+echo "<?xml-stylesheet href=\"myStyle.css\"
type=\"text/css\"?>\n";
+
+echo "<window title=\"MyDataGrid\"
+ xmlns=\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\">\n";
+
+// Instantiate your datagrid and setup its datasource, then call:
+$datagrid->setRenderer('XUL');
+$datagrid->render();
+
+echo "</window>\n";
+?>
+ </programlisting>
+ </para>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: