From: hickert Date: Wed, 27 Jan 2010 12:59:08 +0000 (+0000) Subject: Updated filename X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30ae43ffeda4ccbec349615a1d00fc46f415f617;p=gosa.git Updated filename git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15371 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc b/gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc new file mode 100644 index 000000000..2c14359ba --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/class_hotplugSelect.inc @@ -0,0 +1,64 @@ +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 deleted file mode 100644 index 2c14359ba..000000000 --- a/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc +++ /dev/null @@ -1,64 +0,0 @@ -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: -?>