cvs: pear /Structures_DataGrid/DataGrid/Record DB.php DataObject.php
| From: | Andrew Nagy | Date: | Mon, 16 Aug 2004 16:00:31 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Record DB.php DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-22980@lists.php.net to get a copy of this message | ||
asnagy Mon Aug 16 12:00:31 2004 EDT
Modified files:
/pear/Structures_DataGrid/DataGrid/Record DB.php DataObject.php
Log:
Fixed bug #2128
http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Record/DB.php?r1=1.6&r2=1.7&ty=u
Index: pear/Structures_DataGrid/DataGrid/Record/DB.php
diff -u pear/Structures_DataGrid/DataGrid/Record/DB.php:1.6
pear/Structures_DataGrid/DataGrid/Record/DB.php:1.7
--- pear/Structures_DataGrid/DataGrid/Record/DB.php:1.6 Tue Aug 10 09:24:12 2004
+++ pear/Structures_DataGrid/DataGrid/Record/DB.php Mon Aug 16 12:00:31 2004
@@ -16,14 +16,14 @@
// | Author: Andrew Nagy <asnagy@webitecture.org> |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.6 2004/08/10 13:24:12 asnagy Exp $
+// $Id: DB.php,v 1.7 2004/08/16 16:00:31 asnagy Exp $
require_once 'Structures/DataGrid/Record.php';
/**
* Structures_DataGrid_Record_DB Class
*
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @access public
* @package Structures_DataGrid
@@ -41,7 +41,10 @@
*/
function Structures_DataGrid_Record_DB($data = null)
{
- $this->setRecord($data);
+ $result = $this->setRecord($data);
+ if (PEAR::isError($result)) {
+ PEAR::raiseError($result->toString());
+ }
}
/**
http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Record/DataObject.php?r1=1.7&r2=1.8&ty=u
Index: pear/Structures_DataGrid/DataGrid/Record/DataObject.php
diff -u pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.7
pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.8
--- pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.7 Mon Aug 16 11:50:08 2004
+++ pear/Structures_DataGrid/DataGrid/Record/DataObject.php Mon Aug 16 12:00:31 2004
@@ -16,14 +16,14 @@
// | Author: Andrew Nagy <asnagy@webitecture.org> |
// +----------------------------------------------------------------------+
//
-// $Id: DataObject.php,v 1.7 2004/08/16 15:50:08 asnagy Exp $
+// $Id: DataObject.php,v 1.8 2004/08/16 16:00:31 asnagy Exp $
require_once 'Structures/DataGrid/Record.php';
/**
* Structures_DataGrid_Record_DataObject Class
*
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @access public
* @package Structures_DataGrid
@@ -41,7 +41,10 @@
*/
function Structures_DataGrid_Record_DataObject($data = null)
{
- $this->setRecord($data);
+ $result = $this->setRecord($data);
+ if (PEAR::isError($result)) {
+ PEAR::raiseError($result->toString());
+ }
}
function setRecord($data)