Code

Updated reinstall event.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Feb 2008 11:05:19 +0000 (11:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Feb 2008 11:05:19 +0000 (11:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9167 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc
gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc

index 76d1e5f2abb27199ed962947dcda86c9d9005b25..400f13c1b950bb6f96a7e7b665882e2714c9cfe8 100644 (file)
@@ -77,6 +77,9 @@ class DaemonEvent
       foreach($attrs as $to => $from){
         $this->$to = $data[$from];
       }
+      if(isset($data['TIMESTAMP'])){
+        $this->timestamp = $this->_event_to_timestamp($data['TIMESTAMP']);
+      }
     }
   }
 
index 9d499762e0279af14f3fd16690fdb26473a0e510..f2d029d1a9a239c16aff954d06cc412f833148dd 100644 (file)
@@ -2,8 +2,8 @@
 
 class DaemonEvent_reinstall extends DaemonEvent
 {
-  var $progress = -1;  
-  var $status   = "none";  
+  var $progress = 0;  
+  var $status   = "";  
 
   public function __construct($config,$data = array())
   {
@@ -21,7 +21,7 @@ class DaemonEvent_reinstall extends DaemonEvent
         $this->progress = $data['PROGRESS'];
       }
       if(isset($data['STATUS'])){
-        $this->progress = $data['STATUS'];
+        $this->status = $data['STATUS'];
       }
     }
   }
@@ -65,7 +65,7 @@ class DaemonEvent_reinstall extends DaemonEvent
   {
     $ret = DaemonEvent::save();
     foreach(array("progress","status") as $attr){
-#      $ret[$attr] = $this->$attr;
+      $ret[$attr] = $this->$attr;
     }
     return($ret);
   }