summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b91a8d5)
raw | patch | inline | side by side (parent: b91a8d5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 09:57:21 +0000 (09:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 09:57:21 +0000 (09:57 +0000) |
.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19827 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19827 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/Config/class_filterDeviceItems.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc
index 7ae103d7762b0a03b9aad652a48d9066301b27b7..21a4f89ccca4d14484cff5d0e19f337ee015e301 100644 (file)
private $itemContainerSelector = NULL;
+ private $base ;
+
/*! \brief Constructs the device configuration plugin
* @param Config The GOsa configuration object.
*/
// Set storage points - We do not have any - We just create a fake list which lists all items
$this->storagePoints = array("");
$this->itemContainerSelector = new releaseSelector(array('cn=root'=>''), 'cn=root', 'cn=root');
+ $this->base = "cn=root";
$this->navigationList= new sortableListing();
$this->navigationList->setDeleteable(true);
$filter = $this->getFilter();
$headpage = $this->getHeadpage();
$this->itemContainerSelector->update();
- $headpage->setBase('test');
$headpage->update();
$smarty = get_smarty();
$smarty->assign("RELEASE", $this->itemContainerSelector->render());
// Collect item container list to be able to render the fake-base selector
$this->itemContainerSelector->setBases($this->getContainerList());
$this->itemContainerSelector->update(true);
-
-# print_a($this->getContainerList());
+ $this->itemContainerSelector->setBase($this->base);
// Build filter
if (session::global_is_set(get_class($this)."_filter")){
}
$this->setFilter($filter);
-
// Load service xml file and fill in placeholders
$contents =file_get_contents(get_template_path("goto/Config/DeviceConfig-list.xml", true));
# $template = "
#
# $contents = preg_replace("/%SERVICES%/",$serviceList, $contents);
$headpage = new listing($contents,TRUE);
+ $headpage->setBase($this->base);
$headpage->setFilter($filter);
parent::__construct($this->config, $this->ui, "services", $headpage);
$item = $this->navigationList->getData($action['targets'][0]);
$this->setCurrentItem($item['name']);
}
+
+ $this->itemContainerSelector->update();
+ $this->base = $this->itemContainerSelector->getBase();
}
/*! \brief Forward plugin acls
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_filterDeviceItems.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_filterDeviceItems.inc
index 61ddfdb0551eafe6eba31c5084fc7bbf389fc69d..b8a14b3e9fda83e55481595e225d903c340d3710 100644 (file)
static function query($base, $scope, $filter, $attributes, $category, $objectStorage= "")
{
+ print_a(array($base, $scope, $filter, $attributes, $category, $objectStorage));
$ret = array();
$entry = array();