Code

47c4ecf6e91f3bf938809d807d9621a21ec1f8b1
[gosa.git] / gosa-plugins / goto / addons / gotomasses / events / class_DaemonEvent_update.inc
1 <?php
4 class DaemonEvent_update extends DaemonEvent
5 {
6   public function __construct($config,$data = array())
7   {
8     DaemonEvent::__construct($config,$data);
9     $this->s_Menu_Name  = _("Software update");
10     $this->s_Event_Name = _("software update");
11     $this->s_Schedule_Action = "job_trigger_action_update";
12     $this->s_Trigger_Action= "gosa_trigger_action_update";
13     $this->s_Menu_Image = "images/time.png";
14     $this->s_List_Image = "images/time.png";
15   }
17   public function execute()
18   {
19     DaemonEvent::execute();
21     $display = $this->get_header();
23     $tmp = $this->data;
25     /* Check if target add dialog is open */
26     if($this->is_target_list_open() && $this->is_new){
27       return($this->get_target_add_list());
28     }
30     $smarty = get_smarty();
31     $smarty->assign("data"        , $this->data);
32     $smarty->assign("target_list" , $this->get_target_list());
33     $smarty->assign("is_new"      , $this->is_new);
34     $smarty->assign("timestamp"   , $this->get_time_select());
35     $display.= $smarty->fetch(get_template_path('DaemonEvent_update.tpl', TRUE, dirname(__FILE__)));
36     $display.= $this->get_footer();
37     return($display);
38   }
40   public function save_object()
41   {
42     DaemonEvent::save_object();
43   }
44
45 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
46 ?>