From: hickert Date: Fri, 29 Feb 2008 08:35:28 +0000 (+0000) Subject: Upated event class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=032436e0a8f9cbaa7fe0dcbbdf3ccab0adbdeade;p=gosa.git Upated event class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9199 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc index e964f0ac1..a5f55534f 100644 --- a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc +++ b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc @@ -3,7 +3,7 @@ /* This code is part of GOsa (http://www.gosa-project.org) Copyright (C) 2008 Fabian Hickert -G + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -19,6 +19,8 @@ G Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +define("SCHEDULED_EVENT",1); +define("TRIGGERED_EVENT",2); /*! \brief This is the event base class \author Fabian Hickert @@ -48,6 +50,8 @@ class DaemonEvent protected $status = "unknown";// The current event status protected $is_new = TRUE; // Is TRUE if this is a new event + protected $mode = SCHEDULED_EVENT; // Default action is sheduled. + /* Sub dialog hanlding */ protected $target_divlist = NULL; // The divlist used by the target add dialog protected $target_add_list_used = FALSE; // Indicates that the target add list was used. @@ -57,6 +61,17 @@ class DaemonEvent protected $workstation_list = array(); // Used as cache in the target list. protected $server_list = array(); // Used as cache in the target list. + + function set_type($type) + { + $this->mode = $type; + } + + + function get_type() + { + return($this->mode); + } /*! \brief Class contructor. @param Array GOsa configuration object.