summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c9ba97)
raw | patch | inline | side by side (parent: 2c9ba97)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Sep 2010 11:51:10 +0000 (11:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Sep 2010 11:51:10 +0000 (11:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19870 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.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 68c7828aa27901a82b30228b78b0ce2db7bc83bc..6df4b513b13fefa03b148eb358578be1f92d4324 100644 (file)
// we've to map this 'base/dn' to the items 'id'.
private $mappingBaseToID = array();
+ private $rootItemID;
+ private $lastItemID = 1;
+
// Some plugin related memebers which are not member of
// the management class. See class plugin.
public $is_account = FALSE;
// Set current item to 'root', this is the minimum to get things running.
$idRoot = $this->addItem($root,'root',array());
+ $this->rootItemID = $idRoot;
$this->setCurrentItem($idRoot);
$this->setSelectedListItemID($idRoot);
}
// Get next free item slot.
- $id = count($this->allConfiguredItems);
+ $id = ($this->lastItemID ++);
$new = array(
'base' => $base,
'children' => array(),
$this->itemContainerSelector = new ItemSelector(
$this->getContainerList(),
$this->base,
- $this->allConfiguredItems[0]['base']);
+ $this->allConfiguredItems[$this->rootItemID]['base']);
}else{
$this->itemContainerSelector->setBases($this->getContainerList());
}
*/
function getContainerList($array = NULL)
{
- $array = ($array == NULL)?$this->allConfiguredItems[0]: $array;
+ $array = ($array == NULL)?$this->allConfiguredItems[$this->rootItemID]: $array;
$ret[$array['base']] = $array['type'];
if(count($array['children'])){
foreach($array['children'] as $subItem){
foreach($target as $id){
$this->removeItem($id);
}
- print_a($this->allConfiguredItems);
}