cvs: pear /Structures_DataGrid/DataGrid/Renderer Common.php
| From: | Olivier Guilyardi | Date: | Mon, 27 Feb 2006 22:42:36 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Renderer Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38712@lists.php.net to get a copy of this message | ||
olivierg Mon Feb 27 22:42:36 2006 UTC
Modified files:
/pear/Structures_DataGrid/DataGrid/Renderer Common.php
Log:
Updated documentation for flatten() and render()
http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/Common.php?r1=1.16&r2=1.17&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/Renderer/Common.php
diff -u pear/Structures_DataGrid/DataGrid/Renderer/Common.php:1.16
pear/Structures_DataGrid/DataGrid/Renderer/Common.php:1.17
--- pear/Structures_DataGrid/DataGrid/Renderer/Common.php:1.16 Mon Feb 27 16:25:32 2006
+++ pear/Structures_DataGrid/DataGrid/Renderer/Common.php Mon Feb 27 22:42:36 2006
@@ -17,7 +17,7 @@
// | Olivier Guilyardi <olivier@samalyse.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.16 2006/02/27 16:25:32 wiesemann Exp $
+// $Id: Common.php,v 1.17 2006/02/27 22:42:36 olivierg Exp $
/**
* Structures_DataGrid_Renderer_Common Class
@@ -56,7 +56,7 @@
* added
*
*
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
* @author Olivier Guilyardi <olivier@samalyse.com>
* @access public
* @package Structures_DataGrid
@@ -356,6 +356,19 @@
*
* Drivers are required to implement this method.
*
+ * This method is meant to retrieve final output from the container.
+ *
+ * Usually the container is an object (ex: HTMLTable instance),
+ * and the final output a string.
+ *
+ * The driver knows how to retrieve such final output from a given
+ * container (ex: HTMLTable::toHTML()), and this is where to do it.
+ *
+ * Sometimes the container may not be an object, but the final output
+ * itself. In this case, this method should simply return the container.
+ *
+ * This method mustn't output anything directly to the standard output.
+ *
* @abstract
* @return mixed Output
* @access protected
@@ -466,10 +479,10 @@
}
/**
- * Renders the output from the render (e.g. echoes an HTML table, displays
- * an Excel spreadsheet, ...)
+ * Render to the standard output
*
- * This is quite an obsolete method...
+ * This method may be overloaded by renderer drivers in order to prepare
+ * writing to the standard output (like calling header(), etc...).
*
* @access public
*/