X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=gosa-plugins%2Fgoto%2Faddons%2Fgotomasses%2Fevents%2Fclass_DaemonEvent_update.inc;h=47c4ecf6e91f3bf938809d807d9621a21ec1f8b1;hb=a0fb61dfd338435c45bc99d83427eaecd8722dfb;hp=17e2290789c51c72b2d859b867f83586ea7a9c35;hpb=ec8864dddb2b51d05ae4d0c06486ab8c72e476ca;p=gosa.git diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_update.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_update.inc index 17e229078..47c4ecf6e 100644 --- a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_update.inc +++ b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_update.inc @@ -1,16 +1,46 @@ s_Menu_Name = _("Software update"); - $this->s_Event_Name = _("software update"); - $this->s_action = "trigger_action_update"; + $this->s_Menu_Name = _("Software update"); + $this->s_Event_Name = _("software update"); + $this->s_Schedule_Action = "job_trigger_action_update"; + $this->s_Trigger_Action= "gosa_trigger_action_update"; $this->s_Menu_Image = "images/time.png"; + $this->s_List_Image = "images/time.png"; + } + + public function execute() + { + DaemonEvent::execute(); + + $display = $this->get_header(); + + $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()); + } + + $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_update.tpl', TRUE, dirname(__FILE__))); + $display.= $this->get_footer(); + return($display); } + public function save_object() + { + DaemonEvent::save_object(); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>