cvs: pear /Structures_DataGrid/DataGrid/Renderer CSV.php XML.php

From: Date: Tue, 28 Feb 2006 10:53:25 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid/Renderer CSV.php XML.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38736@lists.php.net to get a copy of this message
wiesemann Tue Feb 28 10:53:25 2006 UTC Modified files: /pear/Structures_DataGrid/DataGrid/Renderer CSV.php XML.php Log: - move header() call from flatten() into render() (overloads render() in SDG_Renderer_Common) http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/CSV.php?r1=1.11&r2=1.12&diff_format=u Index: pear/Structures_DataGrid/DataGrid/Renderer/CSV.php diff -u pear/Structures_DataGrid/DataGrid/Renderer/CSV.php:1.11 pear/Structures_DataGrid/DataGrid/Renderer/CSV.php:1.12 --- pear/Structures_DataGrid/DataGrid/Renderer/CSV.php:1.11 Sat Feb 25 10:01:09 2006 +++ pear/Structures_DataGrid/DataGrid/Renderer/CSV.php Tue Feb 28 10:53:25 2006 @@ -18,7 +18,7 @@ // | Mark Wiesemann <wiesemann@php.net> | // +----------------------------------------------------------------------+ // -// $Id: CSV.php,v 1.11 2006/02/25 10:01:09 wiesemann Exp $ +// $Id: CSV.php,v 1.12 2006/02/28 10:53:25 wiesemann Exp $ require_once 'Structures/DataGrid/Renderer/Common.php'; @@ -34,7 +34,7 @@ * - useQuotes: (bool) Whether or not to encapuslate the values with quotes * (default: false) * - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @author Olivier Guilyardi <olivier@samalyse.com> * @author Mark Wiesemann <wiesemann@php.net> @@ -188,10 +188,19 @@ */ function flatten() { - header('Content-type: text/csv'); return $this->_container; } + /** + * Render to the standard output + * + * @access public + */ + function render() + { + header('Content-type: text/csv'); + parent::render(); + } } ?> http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/XML.php?r1=1.19&r2=1.20&diff_format=u Index: pear/Structures_DataGrid/DataGrid/Renderer/XML.php diff -u pear/Structures_DataGrid/DataGrid/Renderer/XML.php:1.19 pear/Structures_DataGrid/DataGrid/Renderer/XML.php:1.20 --- pear/Structures_DataGrid/DataGrid/Renderer/XML.php:1.19 Fri Feb 24 13:38:28 2006 +++ pear/Structures_DataGrid/DataGrid/Renderer/XML.php Tue Feb 28 10:53:25 2006 @@ -18,7 +18,7 @@ // | Mark Wiesemann <wiesemann@php.net> | // +----------------------------------------------------------------------+ // -// $Id: XML.php,v 1.19 2006/02/24 13:38:28 wiesemann Exp $ +// $Id: XML.php,v 1.20 2006/02/28 10:53:25 wiesemann Exp $ require_once 'Structures/DataGrid/Renderer/Common.php'; require_once 'XML/Util.php'; @@ -26,7 +26,7 @@ /** * Structures_DataGrid_Renderer_XML Class * - * @version $Revision: 1.19 $ + * @version $Revision: 1.20 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @author Olivier Guilyardi <olivier@samalyse.com> * @author Mark Wiesemann <wiesemann@php.net> @@ -106,10 +106,20 @@ */ function flatten() { - header('Content-type: text/xml'); return $this->_container; } + + /** + * Render to the standard output + * + * @access public + */ + function render() + { + header('Content-type: text/xml'); + parent::render(); + } } ?>

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