cvs: pear /Structures_DataGrid DataGrid.php
| From: | Olivier Guilyardi | Date: | Thu, 16 Mar 2006 20:15:37 +0000 |
| Subject: | cvs: pear /Structures_DataGrid DataGrid.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39130@lists.php.net to get a copy of this message | ||
olivierg Thu Mar 16 20:15:37 2006 UTC
Modified files:
/pear/Structures_DataGrid DataGrid.php
Log:
Added Smarty container detection
http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid.php?r1=1.48&r2=1.49&diff_format=u
Index: pear/Structures_DataGrid/DataGrid.php
diff -u pear/Structures_DataGrid/DataGrid.php:1.48 pear/Structures_DataGrid/DataGrid.php:1.49
--- pear/Structures_DataGrid/DataGrid.php:1.48 Thu Mar 16 14:05:48 2006
+++ pear/Structures_DataGrid/DataGrid.php Thu Mar 16 20:15:37 2006
@@ -18,7 +18,7 @@
// | Mark Wiesemann <wiesemann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: DataGrid.php,v 1.48 2006/03/16 14:05:48 olivierg Exp $
+// $Id: DataGrid.php,v 1.49 2006/03/16 20:15:37 olivierg Exp $
require_once 'PEAR.php';
@@ -75,7 +75,7 @@
* ?>
* </code>
*
- * @version $Revision: 1.48 $
+ * @version $Revision: 1.49 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @author Olivier Guilyardi <olivier@samalyse.com>
* @author Mark Wiesemann <wiesemann@php.net>
@@ -987,6 +987,8 @@
{
if (is_a($container, 'html_table') or is_subclass_of($container,
'html_table')) {
return DATAGRID_RENDER_TABLE;
+ } else if (is_a($container, 'smarty') or is_subclass_of($container,
'smarty')) {
+ return DATAGRID_RENDER_SMARTY;
} // FIXME: and so on...
return null;