[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/custom synkroniser_med_boei.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property/inc/custom synkroniser_med_boei.php |
Date: |
Tue, 16 Jan 2007 13:23:12 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Changes by: Sigurd Nes <sigurdne> 07/01/16 13:23:12
Modified files:
inc/custom : synkroniser_med_boei.php
Log message:
transactions
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/custom/synkroniser_med_boei.php?cvsroot=phpgroupware&r1=1.6&r2=1.7
Patches:
Index: synkroniser_med_boei.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/custom/synkroniser_med_boei.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- synkroniser_med_boei.php 8 Jan 2007 11:48:26 -0000 1.6
+++ synkroniser_med_boei.php 16 Jan 2007 13:23:12 -0000 1.7
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage custom
- * @version $Id: synkroniser_med_boei.php,v 1.6 2007/01/08 11:48:26
sigurdne Exp $
+ * @version $Id: synkroniser_med_boei.php,v 1.7 2007/01/16 13:23:12
sigurdne Exp $
*/
/**
@@ -193,6 +193,8 @@
'owner_id' => 6
);
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
for ($i=0; $i<count($owner); $i++)
{
@@ -205,6 +207,9 @@
$owner_msg[]=$owner[$i]['org_name'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
+
$msg = count($owner) . ' eier er lagt til: ' .
@implode(",", $owner_msg);
$this->receipt['message'][]=array('msg'=> $msg);
unset ($owner);
@@ -231,6 +236,9 @@
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
for ($i=0; $i<count($gate); $i++)
{
@@ -243,6 +251,9 @@
$gate_msg[]=$gate[$i]['descr'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
+
$msg = count($gate) . ' gateadresser er lagt til: ' .
@implode(",", $gate_msg);
$this->receipt['message'][]=array('msg'=> $msg);
unset ($gate);
@@ -272,6 +283,9 @@
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
for ($i=0; $i<count($objekt); $i++)
{
@@ -284,6 +298,8 @@
$obj_msg[]=$objekt[$i]['loc1'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
$msg = count($objekt) . ' Objekt er lagt til: ' .
@implode(",", $obj_msg);
$this->receipt['message'][]=array('msg'=> $msg);
@@ -312,6 +328,9 @@
);
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
for ($i=0; $i<count($bygg); $i++)
{
@@ -324,6 +343,9 @@
$bygg_msg[]=$bygg[$i]['location_code'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
+
$msg = count($bygg) . ' Bygg er lagt til: ' .
@implode(",", $bygg_msg);
$this->receipt['message'][]=array('msg'=> $msg);
unset ($bygg);
@@ -357,6 +379,9 @@
);
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
for ($i=0; $i<count($seksjon); $i++)
{
@@ -369,6 +394,9 @@
$seksjon_msg[]=$seksjon[$i]['location_code'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
+
$msg = count($seksjon) . ' Seksjon er lagt til: ' .
@implode(",", $seksjon_msg);
$this->receipt['message'][]=array('msg'=> $msg);
unset ($seksjon);
@@ -416,6 +444,9 @@
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
for ($i=0; $i<count($leieobjekt); $i++)
{
@@ -429,6 +460,9 @@
$leieobjekt_msg[]=$leieobjekt[$i]['location_code'];
}
+ $this->db->transaction_commit();
+ $this->db_boei->transaction_commit();
+
$msg = count($leieobjekt) . ' Leieobjekt er lagt til: '
. @implode(",", $leieobjekt_msg);
$this->receipt['message'][]=array('msg'=> $msg);
unset ($leieobjekt);
@@ -493,6 +527,9 @@
$this->db_boei->query($sql,__LINE__,__FILE__);
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
$i=0;
while ($this->db_boei->next_record())
{
@@ -511,6 +548,9 @@
$i++;
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
$msg = $i . ' Leieobjekt er oppdatert';
$this->receipt['message'][]=array('msg'=> $msg);
return $msg;
@@ -527,8 +567,10 @@
$this->db_boei->query($sql,__LINE__,__FILE__);
- $i=0;
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+ $i=0;
while ($this->db_boei->next_record())
{
$sql2 = " UPDATE fm_location1 SET "
@@ -546,6 +588,8 @@
$this->db_boei2->query($sql2,__LINE__,__FILE__);
$i++;
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
$msg = $i . ' Objekt er oppdatert';
$this->receipt['message'][]=array('msg'=> $msg);
@@ -564,8 +608,10 @@
$this->db_boei->query($sql,__LINE__,__FILE__);
- $i=0;
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+ $i=0;
while ($this->db_boei->next_record())
{
$sql2 = " UPDATE fm_location2 SET "
@@ -578,6 +624,8 @@
$this->db_boei2->query($sql2,__LINE__,__FILE__);
$i++;
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
$msg = $i . ' Bygg er oppdatert';
$this->receipt['message'][]=array('msg'=> $msg);
@@ -599,6 +647,9 @@
$i=0;
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
+
while ($this->db_boei->next_record())
{
$sql2 = " UPDATE fm_location3 SET "
@@ -611,6 +662,8 @@
$this->db_boei2->query($sql2,__LINE__,__FILE__);
$i++;
}
+ $this->db->transaction_begin();
+ $this->db_boei->transaction_begin();
$msg = $i . ' Seksjoner er oppdatert';
$this->receipt['message'][]=array('msg'=> $msg);