From a003dde9b47a73132c8160e8fd9d80e03d15145f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Oct 2010 07:44:45 +0000 Subject: [PATCH] Updated listing class -We can now list items and packages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20122 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../DeviceConfig-filter.xml | 2 +- .../class_filterConfigManagement.inc | 54 +++++++++++++++++++ .../class_newConfigManagement.inc | 2 +- 3 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 gosa-core/plugins/admin/newConfigManagement/class_filterConfigManagement.inc diff --git a/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-filter.xml b/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-filter.xml index 183ddd4ce..7a0c28d27 100644 --- a/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-filter.xml +++ b/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-filter.xml @@ -13,7 +13,7 @@ default - DeviceItems + ConfigManagement $ diff --git a/gosa-core/plugins/admin/newConfigManagement/class_filterConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_filterConfigManagement.inc new file mode 100644 index 000000000..e6e431347 --- /dev/null +++ b/gosa-core/plugins/admin/newConfigManagement/class_filterConfigManagement.inc @@ -0,0 +1,54 @@ + 1); + $entry[] = 'cn'; + $entry['id'] = array($item['id'], 'count' => 1); + $entry[] = 'id'; + $entry['description'] = array($item['type'], 'count' => 1); + $entry[] = 'description'; + $entry['objectClass'] = array($item['type'],'count' => 1); + $entry[] = 'objectClass'; + $entry['count'] = 5; + $ret[] = $entry; + } + + if($recursive && isset($item['children']) && count($item['children'])){ + foreach($item['children'] as $item){ + filterDeviceItems::addEntry($ret, $item, $recursive,$filter); + } + } + + } +} + +?> diff --git a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc index f1eb09d3a..adb8ddf20 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc @@ -121,7 +121,7 @@ class newConfigManagement extends plugin // to allow the configFilter to access it and display the // packages and items. $item = $this->dataModel->getItemByPath($this->selectedRelease); - print_a($item); + session::set('CONFIG_ITEM', $item); return($this->listing->renderList()); } -- 2.30.2