cvs: pear /HTML_Table Table.php

From: Date: Fri, 19 Jul 2002 15:21:27 +0000
Subject: cvs: pear /HTML_Table Table.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5197@lists.php.net to get a copy of this message
mansion Fri Jul 19 11:21:27 2002 EDT Modified files: /pear/HTML_Table Table.php Log: Fixed bug #17730 about raiseError. Index: pear/HTML_Table/Table.php diff -u pear/HTML_Table/Table.php:1.2 pear/HTML_Table/Table.php:1.3 --- pear/HTML_Table/Table.php:1.2 Thu Jun 20 06:47:03 2002 +++ pear/HTML_Table/Table.php Fri Jul 19 11:21:27 2002 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: Table.php,v 1.2 2002/06/20 10:47:03 mansion Exp $ +// $Id: Table.php,v 1.3 2002/07/19 15:21:27 mansion Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; @@ -92,7 +92,7 @@ { $commonVersion = 1.3; if (HTML_Common::apiVersion() < $commonVersion) { - return new PEAR_Error("HTML_Table version " . $this->apiVersion() . " requires " . + return $this->raiseError("HTML_Table version " . $this->apiVersion() . " requires " . "HTML_Common version $commonVersion or greater.", 0, PEAR_ERROR_TRIGGER); } HTML_Common::HTML_Common($attributes, $tabOffset); @@ -418,7 +418,7 @@ function addCol($contents = null, $attributes = null, $type = 'TD') { if (isset($contents) && !is_array($contents)) { - return new PEAR_Error("First parameter to HTML_Table::addCol must be an array"); + return $this->raiseError("First parameter to HTML_Table::addCol must be an array"); } $col = $this->_cols++; for ($counter = 0; $counter < count($contents); $counter++) { @@ -609,7 +609,7 @@ if ($this->_autoGrow) { $this->_rows = $row + $rowspan; } else { - return new PEAR_Error('Invalid table row reference[' . + return $this->raiseError('Invalid table row reference[' . $row . '] in HTML_Table::' . $method); } } @@ -617,7 +617,7 @@ if ($this->_autoGrow) { $this->_cols = $col + $colspan; } else { - return new PEAR_Error('Invalid table column reference[' . + return $this->raiseError('Invalid table column reference[' . $col . '] in HTML_Table::' . $method); } }

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