Code

Fixed post handling.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Jul 2010 09:34:18 +0000 (09:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Jul 2010 09:34:18 +0000 (09:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19070 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index f87bb8e10e68e41e67a776517e266b1c89938e48..2f2200592a91fd4868781014a0403cf7296bab91 100644 (file)
 
 class DaemonEvent_reinstall extends DaemonEvent
 {
-  var $progress = 0;  
-  var $status   = "";  
-  var $visible_for = SYSTEM_EVENT;
+    var $progress = 0;  
+    var $status   = "";  
+    var $visible_for = SYSTEM_EVENT;
 
-  public function __construct($config,$data = array())
-  {
-    DaemonEvent::__construct($config,$data);
-    $this->s_Menu_Name  = _("Reinstall");
-    $this->s_Event_Name = _("Reinstall");
-    $this->s_Schedule_Action = "job_trigger_action_reinstall";
-    $this->s_Trigger_Action= "job_trigger_action_reinstall";
-    $this->s_Queued_Action= "trigger_action_reinstall";
-    $this->s_Menu_Image = "plugins/goto/images/reinstall.png";
-    $this->s_List_Image = "plugins/goto/images/reinstall.png";
-  
-    if(!$this->is_new()){
-      if(isset($data['PROGRESS'])){
-        $this->progress = $data['PROGRESS'];
-      }
-      if(isset($data['STATUS'])){
-        $this->status = $data['STATUS'];
-      }
+    public function __construct($config,$data = array())
+    {
+        DaemonEvent::__construct($config,$data);
+        $this->s_Menu_Name  = _("Reinstall");
+        $this->s_Event_Name = _("Reinstall");
+        $this->s_Schedule_Action = "job_trigger_action_reinstall";
+        $this->s_Trigger_Action= "job_trigger_action_reinstall";
+        $this->s_Queued_Action= "trigger_action_reinstall";
+        $this->s_Menu_Image = "plugins/goto/images/reinstall.png";
+        $this->s_List_Image = "plugins/goto/images/reinstall.png";
+
+        if(!$this->is_new()){
+            if(isset($data['PROGRESS'])){
+                $this->progress = $data['PROGRESS'];
+            }
+            if(isset($data['STATUS'])){
+                $this->status = $data['STATUS'];
+            }
+        }
     }
-  }
 
-  public function execute()
-  {
-    DaemonEvent::execute();
+    public function execute()
+    {
+        DaemonEvent::execute();
 
-    $display = $this->get_header();
+        $display = $this->get_header();
 
-    $tmp = $this->data;
+        $tmp = $this->data;
 
-    /* Check if target add dialog is open */
-    if($this->is_target_list_open() && $this->is_new){
-      return($this->get_target_add_list());
-    }
+        /* Check if target add dialog is open */
+        if($this->is_target_list_open() && $this->is_new){
+            return($this->get_target_add_list());
+        }
 
-    $smarty = get_smarty();
-    $smarty->assign("status"      , $this->status);
-    $smarty->assign("progress"    , $this->progress);
-    $smarty->assign("data"        , $this->data);
-    $smarty->assign("target_list" , $this->get_target_list());
-    $smarty->assign("is_new"      , $this->is_new);
-    $smarty->assign("timestamp"   , $this->get_time_select());
-    $display.= $smarty->fetch(get_template_path('DaemonEvent_reinstall.tpl', TRUE, dirname(__FILE__)));
-    $display.= $this->get_footer();
-    return($display);
-  }
+        $smarty = get_smarty();
+        $smarty->assign("status"      , $this->status);
+        $smarty->assign("progress"    , $this->progress);
+        $smarty->assign("data"        , $this->data);
+        $smarty->assign("target_list" , $this->get_target_list());
+        $smarty->assign("is_new"      , $this->is_new);
+        $smarty->assign("timestamp"   , $this->get_time_select());
+        $display.= $smarty->fetch(get_template_path('DaemonEvent_reinstall.tpl', TRUE, dirname(__FILE__)));
+        $display.= $this->get_footer();
+        return($display);
+    }
 } 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>