cvs: pear /Structures_DataGrid DataGrid.php

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

« previous php.pear.cvs (#39167) next »