cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php

From: Date: Tue, 28 Feb 2006 10:48:08 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38735@lists.php.net to get a copy of this message
wiesemann Tue Feb 28 10:48:08 2006 UTC Modified files: /pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php Log: - phpdoc fix - don't use private variables, use public methods # spotted by Justin, thanks http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.81&r2=1.82&diff_format=u Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.81 pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.82 --- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.81 Mon Feb 27 16:25:32 2006 +++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Tue Feb 28 10:48:08 2006 @@ -18,7 +18,7 @@ // | Mark Wiesemann <wiesemann@php.net> | // +----------------------------------------------------------------------+ // -// $Id: HTMLTable.php,v 1.81 2006/02/27 16:25:32 wiesemann Exp $ +// $Id: HTMLTable.php,v 1.82 2006/02/28 10:48:08 wiesemann Exp $ require_once 'Structures/DataGrid/Renderer/Common.php'; require_once 'HTML/Table.php'; @@ -54,7 +54,7 @@ * - encoding : the content encoding. Default: ISO-8859-1 * * - * @version $Revision: 1.81 $ + * @version $Revision: 1.82 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @author Olivier Guilyardi <olivier@samalyse.com> * @author Mark Wiesemann <wiesemann@php.net> @@ -131,14 +131,15 @@ * * @deprecated Use the HTML_Table constructor directly instead * @access public - * @param string $name The CSS class to use for the table. + * @param string $attr The name of the attribute. + * @param string $value The value of the attribute. */ function setTableAttribute($attr, $value) { if (is_null($this->_container)) { $this->init(); } - $this->_container->_attributes[$attr] = $value; + $this->_container->updateAttributes(array($attr => $value)); } /**

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