[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/class.datamine.php, 1.1.2.6
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/class.datamine.php, 1.1.2.6 |
Date: |
Sun, 23 May 2004 06:50:47 -0000 |
Update of /api
Modified Files:
Branch: proposal-branch
class.datamine.php
date: 2004/05/08 06:08:19; author: jengo; state: Exp; lines: +7 -5
Log Message:
For some odd reason, __sleep() and __wakeup() is making it NOT serialize the
object
=====================================================================
Index: api/class.datamine.php
diff -u api/class.datamine.php:1.1.2.5 api/class.datamine.php:1.1.2.6
--- api/class.datamine.php:1.1.2.5 Fri May 7 07:51:20 2004
+++ api/class.datamine.php Sat May 8 06:08:19 2004
@@ -103,7 +103,8 @@
list($app,$class,$id) =
explode('.',$row['dm_location_from']);
}
- $result[] = array(
+ $result[] = array
+ (
'type' => $app . '_' . $class,
'data' => execMethod($app . '.' .
$class . '._datamine_get',$id)
);
@@ -117,14 +118,14 @@
$args->set('location_from',REQUIRED,'any');
$args->set('location_to',REQUIRED,'any');
$args = $args->get(func_get_args());
-
+
$details = array
(
'dm_owner' =>
$GLOBALS['phpgw_data']['user']['id'],
'dm_location_from' => $args['location_from'],
'dm_location_to' => $args['location_to']
);
-
+
$sql = 'SELECT * FROM phpgw_datamine'
. ' WHERE dm_owner=' . $details['dm_owner']
. ' AND dm_location_from=' .
$GLOBALS['phpgw']->db->qstr($details['dm_location_from'])
@@ -133,7 +134,7 @@
{
return false;
}
-
+
if ($rs->EOF)
{
$sql =
$GLOBALS['phpgw']->db->GetInsertSQL($rs,$details);
@@ -142,6 +143,7 @@
{
$sql =
$GLOBALS['phpgw']->db->GetUpdateSQL($rs,$details);
}
+
return is_object($rs =
$GLOBALS['phpgw']->db->execute($sql));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/class.datamine.php, 1.1.2.6,
nomail <=