1 <?php
3 class DaemonEvent_wakeup extends DaemonEvent
4 {
5 public function __construct($config,$data = array())
6 {
7 DaemonEvent::__construct($config,$data);
8 $this->s_Menu_Name = _("Wake up");
9 $this->s_Event_Name = _("Wake up");
10 $this->s_action = "trigger_action_wake";
11 $this->s_Menu_Image = "images/status_running.png";
12 }
14 public function execute()
15 {
16 DaemonEvent::execute();
18 $display = $this->get_header();
20 /* Check if target add dialog is open */
21 if($this->is_target_list_open()){
22 $display .= $this->get_target_list();
23 }else{
24 $smarty = get_smarty();
25 $smarty->assign("timestamp",$this->get_time_select());
26 $display.= $smarty->fetch(get_template_path('DaemonEvent_wakeup.tpl', TRUE, dirname(__FILE__)));
27 }
29 $display.= $this->get_footer();
30 return($display);
31 }
33 public function save_object()
34 {
35 DaemonEvent::save_object();
36 }
37 }
38 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
39 ?>