Code

Fixed post handling.
[gosa.git] / gosa-plugins / goto / addons / goto / events / class_DaemonEvent_activate.inc
index 5e7224d04799338f646dc7a3632ff379f4747eac..a660c583cf86e6aed05954d02142731df9b063c6 100644 (file)
 
 class DaemonEvent_activate extends DaemonEvent
 {
-  var $visible_for = SYSTEM_EVENT;
-  public function __construct($config,$data = array())
-  {
-    DaemonEvent::__construct($config,$data);
-    $this->s_Menu_Name  = _("Unlock"); 
-    $this->s_Event_Name = _("Unlock"); 
-    $this->s_Schedule_Action = "job_trigger_action_activate";
-    $this->s_Trigger_Action= "gosa_trigger_action_activate";
-    $this->s_Queued_Action= "trigger_action_activate";
-    $this->s_Menu_Image = "images/lists/unlocked.png";
-    $this->s_List_Image = "images/lists/unlocked.png";
-  }
+    var $visible_for = SYSTEM_EVENT;
+    public function __construct($config,$data = array())
+    {
+        DaemonEvent::__construct($config,$data);
+        $this->s_Menu_Name  = _("Unlock"); 
+        $this->s_Event_Name = _("Unlock"); 
+        $this->s_Schedule_Action = "job_trigger_action_activate";
+        $this->s_Trigger_Action= "gosa_trigger_action_activate";
+        $this->s_Queued_Action= "trigger_action_activate";
+        $this->s_Menu_Image = "images/lists/unlocked.png";
+        $this->s_List_Image = "images/lists/unlocked.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_activate.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_activate.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:
 ?>