summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 254e756)
raw | patch | inline | side by side (parent: 254e756)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jan 2010 12:59:08 +0000 (12:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jan 2010 12:59:08 +0000 (12:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15371 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc | [deleted file] | patch | blob | history |
diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc b/gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+/*
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id: class_groupManagement.inc 14766 2009-11-05 14:30:35Z hickert $$
+ *
+ * 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
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+class hotplugSelect extends management
+{
+
+ protected $skipFooter = TRUE;
+ protected $skipHeader = TRUE;
+
+ function __construct($config,$ui)
+ {
+ $this->config = $config;
+ $this->ui = $ui;
+
+ $this->storagePoints = array(get_ou("deviceRDN"));
+
+# // 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("selectHotplug-filter.xml", true, dirname(__FILE__)));
+ $filter->setObjectStorage($this->storagePoints);
+# }
+ $this->setFilter($filter);
+
+ // Build headpage
+ $headpage = new listing(get_template_path("selectHotplug-list.xml", true, dirname(__FILE__)));
+ $headpage->setFilter($filter);
+ parent::__construct($config, $ui, "hotplug", $headpage);
+ }
+
+ function save()
+ {
+ $act = $this->detectPostActions();
+ $headpage = $this->getHeadpage();
+ if(!isset($act['targets'])) return(array());
+ $ret = array();
+ foreach($act['targets'] as $dn){
+ $ret[] = $headpage->getEntry($dn);
+ }
+ return($ret);
+ }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc b/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/*
- * This code is part of GOsa (http://www.gosa-project.org)
- * Copyright (C) 2003-2008 GONICUS GmbH
- *
- * ID: $$Id: class_groupManagement.inc 14766 2009-11-05 14:30:35Z hickert $$
- *
- * 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
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-class hotplugSelect extends management
-{
-
- protected $skipFooter = TRUE;
- protected $skipHeader = TRUE;
-
- function __construct($config,$ui)
- {
- $this->config = $config;
- $this->ui = $ui;
-
- $this->storagePoints = array(get_ou("deviceRDN"));
-
-# // 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("selectHotplug-filter.xml", true, dirname(__FILE__)));
- $filter->setObjectStorage($this->storagePoints);
-# }
- $this->setFilter($filter);
-
- // Build headpage
- $headpage = new listing(get_template_path("selectHotplug-list.xml", true, dirname(__FILE__)));
- $headpage->setFilter($filter);
- parent::__construct($config, $ui, "hotplug", $headpage);
- }
-
- function save()
- {
- $act = $this->detectPostActions();
- $headpage = $this->getHeadpage();
- if(!isset($act['targets'])) return(array());
- $ret = array();
- foreach($act['targets'] as $dn){
- $ret[] = $headpage->getEntry($dn);
- }
- return($ret);
- }
-}
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>