From 76402d212b4abc6f1a5acda4fe62afe17dbf0d91 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Jan 2010 17:21:59 +0000 Subject: [PATCH] Updated systemManagement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15132 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_systemManagement.inc | 53 ++++++++++--------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 1859951cf..3aa053fa5 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -51,29 +51,29 @@ class systemManagement extends management } $this->storagePoints = array_unique($sP); -# // Build filter -# if (session::global_is_set(get_class($this)."_filter")){ -# $filter= session::global_get(get_class($this)."_filter"); -# } else { - $filter = new filter(get_template_path("system-filter.xml", true)); - $filter->setObjectStorage($this->storagePoints); -# } - $this->setFilter($filter); - - // Build headpage - $headpage = new listing(get_template_path("system-list.xml", true)); - $headpage->setFilter($filter); - - $filter->setConverter('INCOMING', 'systemManagement::incomingFilterConverter'); - - // Add copy&paste and snapshot handler. - if ($this->config->boolValueIsTrue("main", "copyPaste")){ - $this->cpHandler = new CopyPasteHandler($this->config); - } - if($this->config->get_cfg_value("enableSnapshots") == "true"){ - $this->snapHandler = new SnapshotHandler($this->config); - } - parent::__construct($config, $ui, "systems", $headpage); + // Build filter + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { + $filter = new filter(get_template_path("system-filter.xml", true)); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("system-list.xml", true)); + $headpage->setFilter($filter); + $filter->setConverter('INCOMING', 'systemManagement::incomingFilterConverter'); + $this->registerAction("DaemonEvent_halt", "systemManagement::handleEvent"); + + // Add copy&paste and snapshot handler. + if ($this->config->boolValueIsTrue("main", "copyPaste")){ + $this->cpHandler = new CopyPasteHandler($this->config); + } + if($this->config->get_cfg_value("enableSnapshots") == "true"){ + $this->snapHandler = new SnapshotHandler($this->config); + } + parent::__construct($config, $ui, "systems", $headpage); } @@ -195,6 +195,12 @@ class systemManagement extends management } + /*! \brief Edit the selected system type. + * + * @param String 'action' The name of the action which was the used as trigger. + * @param Array 'target' A list of object dns, which should be affected by this method. + * @param Array 'all' A combination of both 'action' and 'target'. + */ function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") { if(count($target) == 1){ @@ -207,7 +213,6 @@ class systemManagement extends management } - /*! \brief Overridden render method of class mangement. * this allows us to add a release selection box. */ -- 2.30.2