Code

a1528b5795a9e421ce8d652fade20114e3a80273
[gosa.git] / gosa-plugins / goto / addons / gotomasses / events / class_DaemonEvent_notify.inc
1 <?php
2 class DaemonEvent_notify extends DaemonEvent
3 {
4   public function __construct($config,$data = array())
5   {
6     DaemonEvent::__construct($config,$data);
7     $this->s_Menu_Name  = _("Send message");
8     $this->s_Event_Name = _("Send message");
9     $this->s_Schedule_Action = "job_trigger_action_notify";
10     $this->s_Trigger_Action= "job_trigger_action_notify";
11     $this->s_Queued_Action= "trigger_action_notify";
12     $this->s_Menu_Image = "images/status_stopped.png";
13     $this->s_List_Image = "images/status_stopped.png";
14   }
16   public function execute()
17   {
18     DaemonEvent::execute();
20     $display = $this->get_header();
22     $tmp = $this->data;
24     /* Check if target add dialog is open */
25     if($this->is_target_list_open() && $this->is_new){
26       return($this->get_target_add_list());
27     }
29     $smarty = get_smarty();
30     $smarty->assign("data"        , $this->data);
31     $smarty->assign("target_list" , $this->get_target_list());
32     $smarty->assign("is_new"      , $this->is_new);
33     $smarty->assign("timestamp"   , $this->get_time_select());
34     $display.= $smarty->fetch(get_template_path('DaemonEvent_notify.tpl', TRUE, dirname(__FILE__)));
35     $display.= $this->get_footer();
36     return($display);
37   }
39   public function save_object()
40   {
41     DaemonEvent::save_object();
42   }
43
44 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
45 ?>