Code

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

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

index 20b14e4a4627f8f32689ddf305bc2184bb61c4f2..fa71eb1e479cb9eebf3ff4ba926fbb7b9bc3e185 100644 (file)
 
 class DaemonEvent_installation_activation extends DaemonEvent
 {
-  public function __construct($config,$data = array())
-  {
-    DaemonEvent::__construct($config,$data);
-    $this->s_Menu_Name  = _("Installation activation");
-    $this->s_Event_Name = _("Installation activation");
-    $this->s_Schedule_Action  = "job_set_activated_for_installation";
-    $this->s_Trigger_Action   = "gosa_set_activated_for_installation";
-    $this->s_Queued_Action    = "set_activated_for_installation";
-    $this->s_Menu_Image = "images/true.png";
-    $this->s_List_Image = "images/true.png";
-  }
+    public function __construct($config,$data = array())
+    {
+        DaemonEvent::__construct($config,$data);
+        $this->s_Menu_Name  = _("Installation activation");
+        $this->s_Event_Name = _("Installation activation");
+        $this->s_Schedule_Action  = "job_set_activated_for_installation";
+        $this->s_Trigger_Action   = "gosa_set_activated_for_installation";
+        $this->s_Queued_Action    = "set_activated_for_installation";
+        $this->s_Menu_Image = "images/true.png";
+        $this->s_List_Image = "images/true.png";
+    }
 
-  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("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_installation_activation.tpl', TRUE, dirname(__FILE__)));
-    $display.= $this->get_footer();
-    return($display);
-  }
+        $smarty = get_smarty();
+        $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_installation_activation.tpl', TRUE, dirname(__FILE__)));
+        $display.= $this->get_footer();
+        return($display);
+    }
 
-  public function save_object()
-  {
-    DaemonEvent::save_object();
-  }
+    public function save_object()
+    {
+        DaemonEvent::save_object();
+    }
 } 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>