phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/custom/oppdater_utgaatt_objekt.php, 1.1.


From: nomail
Subject: [Phpgroupware-cvs] property/inc/custom/oppdater_utgaatt_objekt.php, 1.1.2.7
Date: Sun, 12 Dec 2004 23:38:38 +0100

Update of /property/inc/custom
Modified Files:
        Branch: proposed-0_9_18-branch
          oppdater_utgaatt_objekt.php

date: 2004/12/12 22:38:38;  author: sigurdne;  state: Exp;  lines: +9 -7

Log Message:
no message
=====================================================================
Index: property/inc/custom/oppdater_utgaatt_objekt.php
diff -u property/inc/custom/oppdater_utgaatt_objekt.php:1.1.2.6 
property/inc/custom/oppdater_utgaatt_objekt.php:1.1.2.7
--- property/inc/custom/oppdater_utgaatt_objekt.php:1.1.2.6     Thu Nov 18 
22:12:07 2004
+++ property/inc/custom/oppdater_utgaatt_objekt.php     Sun Dec 12 22:38:38 2004
@@ -27,6 +27,8 @@
 
        class oppdater_utgaatt_objekt
        {
+               var     $function_name = 'oppdater_utgaatt_objekt';
+
                function oppdater_utgaatt_objekt()
                {
                        $this->currentapp               = 
$GLOBALS['phpgw_info']['flags']['currentapp'];
@@ -34,10 +36,9 @@
                        $this->db                               = 
$GLOBALS['phpgw']->db;
                        $this->db2                              = $this->db;
                        $this->soadmin_location = 
CreateObject($this->currentapp.'.soadmin_location');
-                       $this->socommon                 = 
CreateObject($this->currentapp.'.socommon');
 
-                       $this->join                             = 
$this->socommon->join;
-                       $this->left_join                = 
$this->socommon->left_join;
+                       $this->join                             = 
$this->bocommon->join;
+                       $this->left_join                = 
$this->bocommon->left_join;
                }
 
                function pre_run($data='')
@@ -69,7 +70,7 @@
                        $link_data = array
                        (
                                'menuaction' => 
$this->currentapp.'.custom_functions.index',
-                               'function'      =>'oppdater_utgaatt_objekt',
+                               'function'      =>$this->function_name,
                                'execute'       => $execute,
                        );
 
@@ -191,13 +192,14 @@
 
                        $insert_values= array(
                                $cron,
-                               'oppdater_utgaatt_objekt',
+                               date($this->bocommon->datetimeformat),
+                               $this->function_name,
                                implode(',',(array_keys($msgbox_data)))
                                );
 
                        $insert_values  = 
$this->bocommon->validate_db_insert($insert_values);
 
-                       $sql = "INSERT INTO fm_cron_log (cron,process,message) "
+                       $sql = "INSERT INTO fm_cron_log 
(cron,cron_date,process,message) "
                                        . "VALUES ($insert_values)";
                        $this->db->query($sql,__LINE__,__FILE__);
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]